@@ -9,8 +9,8 @@ |
||
9 | 9 | use |
10 | 10 | cs\Config; |
11 | 11 | /** |
12 | - * Class for getting of db and storage configuration of module |
|
13 | - */ |
|
12 | + * Class for getting of db and storage configuration of module |
|
13 | + */ |
|
14 | 14 | class Module_Properties { |
15 | 15 | const ENABLED = 1; |
16 | 16 | const DISABLED = 0; |
@@ -9,8 +9,8 @@ |
||
9 | 9 | use |
10 | 10 | cs\Singleton\Base; |
11 | 11 | /** |
12 | - * @inheritdoc |
|
13 | - */ |
|
12 | + * @inheritdoc |
|
13 | + */ |
|
14 | 14 | trait Singleton { |
15 | 15 | use Base; |
16 | 16 | } |
@@ -108,7 +108,7 @@ |
||
108 | 108 | * If match was not found - mirror is not allowed! |
109 | 109 | */ |
110 | 110 | if ($this->mirror_index === -1) { |
111 | - throw new ExitException("Mirror $this->host not allowed", 400); |
|
111 | + throw new ExitException("mirror $this->host not allowed", 400); |
|
112 | 112 | } |
113 | 113 | $results = $this->analyze_route_path($this->path); |
114 | 114 | $this->handle_redirect($Config, $results['path_normalized']); |
@@ -10,16 +10,16 @@ |
||
10 | 10 | ArrayAccess, |
11 | 11 | SimpleXMLElement; |
12 | 12 | /** |
13 | - * False_class is used for chained calling, when some method may return false. |
|
14 | - * |
|
15 | - * Usage of class is simple, just return his instance instead of real boolean <i>false</i>. |
|
16 | - * On every call of any method or getting of any property or getting any element of array instance of the this class will be returned. |
|
17 | - * Access to anything of this class instance will be casted to boolean <i>false</i> |
|
18 | - * |
|
19 | - * Inherits SimpleXMLElement in order to be casted from object to boolean as <i>false</i> |
|
20 | - * |
|
21 | - * @property string $error |
|
22 | - */ |
|
13 | + * False_class is used for chained calling, when some method may return false. |
|
14 | + * |
|
15 | + * Usage of class is simple, just return his instance instead of real boolean <i>false</i>. |
|
16 | + * On every call of any method or getting of any property or getting any element of array instance of the this class will be returned. |
|
17 | + * Access to anything of this class instance will be casted to boolean <i>false</i> |
|
18 | + * |
|
19 | + * Inherits SimpleXMLElement in order to be casted from object to boolean as <i>false</i> |
|
20 | + * |
|
21 | + * @property string $error |
|
22 | + */ |
|
23 | 23 | class False_class extends SimpleXMLElement implements ArrayAccess { |
24 | 24 | /** |
25 | 25 | * Use this method to obtain correct instance |
@@ -9,8 +9,8 @@ |
||
9 | 9 | use |
10 | 10 | cs\Language; |
11 | 11 | /** |
12 | - * Class for simplified work with translations, when using common prefix |
|
13 | - */ |
|
12 | + * Class for simplified work with translations, when using common prefix |
|
13 | + */ |
|
14 | 14 | class Prefix { |
15 | 15 | /** |
16 | 16 | * @var string |
@@ -43,7 +43,7 @@ |
||
43 | 43 | "public_key" : "@public_key" |
44 | 44 | } |
45 | 45 | |
46 | -CONFIG; |
|
46 | +config; |
|
47 | 47 | /** |
48 | 48 | * @param string $source |
49 | 49 | * @param string $target |
@@ -154,10 +154,10 @@ discard block |
||
154 | 154 | * Try to load classes from different places. If not found in one place - try in another. |
155 | 155 | */ |
156 | 156 | if ( |
157 | - strlen($file = @$file_index_map[str_replace('//', '/', "core/classes/$namespace/$class_name.php")]) || //Core classes |
|
157 | + strlen($file = @$file_index_map[str_replace('//', '/', "core/classes/$namespace/$class_name.php")]) || //Core classes |
|
158 | 158 | strlen($file = @$file_index_map[str_replace('//', '/', "core/thirdparty/$namespace/$class_name.php")]) || //Third party classes |
159 | - strlen($file = @$file_index_map[str_replace('//', '/', "core/traits/$namespace/$class_name.php")]) || //Core traits |
|
160 | - strlen($file = @$file_index_map[str_replace('//', '/', "core/drivers/$namespace/$class_name.php")]) || //Core drivers |
|
159 | + strlen($file = @$file_index_map[str_replace('//', '/', "core/traits/$namespace/$class_name.php")]) || //Core traits |
|
160 | + strlen($file = @$file_index_map[str_replace('//', '/', "core/drivers/$namespace/$class_name.php")]) || //Core drivers |
|
161 | 161 | strlen($file = @$file_index_map[str_replace('//', '/', "$namespace/$class_name.php")]) //Classes in modules |
162 | 162 | ) { |
163 | 163 | require_once "$source/fs/$file"; |
@@ -263,7 +263,7 @@ discard block |
||
263 | 263 | * @throws RuntimeException |
264 | 264 | */ |
265 | 265 | protected static function initialize_system_config ($cdb, $source, $site_name, $url, $admin_email, $language, $domain, $timezone, $mode) { |
266 | - $config = [ |
|
266 | + $config = [ |
|
267 | 267 | 'site_name' => $site_name, |
268 | 268 | 'url' => [$url], |
269 | 269 | 'admin_email' => $admin_email, |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | php $argv[0] -i |
178 | 178 | php $argv[0] -sn Web-site -i |
179 | 179 | |
180 | -HELP; |
|
180 | +help; |
|
181 | 181 | return; |
182 | 182 | } |
183 | 183 | |
@@ -217,4 +217,4 @@ discard block |
||
217 | 217 | Login: $admin_login |
218 | 218 | Password: $options[admin_password] |
219 | 219 | |
220 | -SUCCESS; |
|
220 | +success; |
@@ -120,7 +120,7 @@ |
||
120 | 120 | if (isset($_POST['site_url'])) { |
121 | 121 | $url = $_POST['site_url']; |
122 | 122 | } else { |
123 | - $https = @$_SERVER['HTTPS'] ? $_SERVER['HTTPS'] !== 'off' : ( |
|
123 | + $https = @$_SERVER['HTTPS'] ? $_SERVER['HTTPS'] !== 'off' : ( |
|
124 | 124 | @$_SERVER['REQUEST_SCHEME'] === 'https' || |
125 | 125 | @$_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https' |
126 | 126 | ); |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | 'in' => [h::span('Regular user'), h::span('Expert')], |
40 | 40 | 'onclick' => <<<JS |
41 | 41 | var items = document.querySelectorAll('.expert'), i; for (i = 0; i < items.length; i++) items[i].style.display = this.value == '0' ? 'table-row' : ''; |
42 | -JS |
|
42 | +js |
|
43 | 43 | ] |
44 | 44 | ) |
45 | 45 | ). |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | <p style="color: red">$warning</p> |
186 | 186 | <button onclick="location.href = '/';">Go to website</button> |
187 | 187 | </table> |
188 | -HTML; |
|
188 | +html; |
|
189 | 189 | } |
190 | 190 | |
191 | 191 | if (count(explode('/', $_SERVER['REQUEST_URI'])) > 3) { |
@@ -53,7 +53,7 @@ |
||
53 | 53 | } |
54 | 54 | ) |
55 | 55 | ); |
56 | -$themes = array_values( |
|
56 | +$themes = array_values( |
|
57 | 57 | array_filter( |
58 | 58 | get_files_list(ROOT.'/themes', false, 'd'), |
59 | 59 | function ($theme) { |