Add visibility to class constants (PHP >= 7.1)

This commit is contained in:
Molkobain
2020-08-26 19:02:53 +02:00
parent 8bdaec0129
commit b5c97e35bf
32 changed files with 154 additions and 151 deletions

View File

@@ -34,14 +34,14 @@ use utils;
class GlobalSearch extends UIBlock
{
// Overloaded constants
const BLOCK_CODE = 'ibo-global-search';
const HTML_TEMPLATE_REL_PATH = 'components/global-search/layout';
const JS_TEMPLATE_REL_PATH = 'components/global-search/layout';
const JS_FILES_REL_PATH = [
public const BLOCK_CODE = 'ibo-global-search';
public const HTML_TEMPLATE_REL_PATH = 'components/global-search/layout';
public const JS_TEMPLATE_REL_PATH = 'components/global-search/layout';
public const JS_FILES_REL_PATH = [
'js/components/global-search.js',
];
const DEFAULT_ENDPOINT_REL_URL = 'pages/UI.php?operation=full_text';
public const DEFAULT_ENDPOINT_REL_URL = 'pages/UI.php?operation=full_text';
/** @var string $sEndpoint Absolute endpoint URL of the search form */
protected $sEndpoint;