@@ -24,7 +24,7 @@ |
||
| 24 | 24 | 'group' => 'text', |
| 25 | 25 | 'label' => 'text' |
| 26 | 26 | ]; |
| 27 | - protected $table = '[prefix]permissions'; |
|
| 27 | + protected $table = '[prefix]permissions'; |
|
| 28 | 28 | /** |
| 29 | 29 | * Array of all permissions for quick selecting |
| 30 | 30 | * @var array |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | use |
| 26 | 26 | CRUD, |
| 27 | 27 | Singleton; |
| 28 | - protected $data_model = [ |
|
| 28 | + protected $data_model = [ |
|
| 29 | 29 | 'id' => 'int:0', |
| 30 | 30 | 'user' => 'int:0', |
| 31 | 31 | 'date' => 'int:0', |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | use |
| 26 | 26 | CRUD, |
| 27 | 27 | Singleton; |
| 28 | - protected $data_model = [ |
|
| 28 | + protected $data_model = [ |
|
| 29 | 29 | 'id' => 'int:0', |
| 30 | 30 | 'user' => 'int:0', |
| 31 | 31 | 'date' => 'int:0', |
@@ -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 |
@@ -9,9 +9,9 @@ |
||
| 9 | 9 | * Time of start of execution, is used as current time |
| 10 | 10 | */ |
| 11 | 11 | define('MICROTIME', microtime(true)); //In seconds (float) |
| 12 | -define('TIME', floor(MICROTIME)); //In seconds (integer) |
|
| 12 | +define('TIME', floor(MICROTIME)); //In seconds (integer) |
|
| 13 | 13 | chdir(__DIR__.'/..'); |
| 14 | -define('DIR', getcwd()); //Root directory |
|
| 14 | +define('DIR', getcwd()); //Root directory |
|
| 15 | 15 | /** |
| 16 | 16 | * Defining of basic constants with paths to system directories |
| 17 | 17 | */ |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | Header set Content-Type application/octet-stream |
| 72 | 72 | </ifModule> |
| 73 | 73 | |
| 74 | -HTACCESS |
|
| 74 | +htaccess |
|
| 75 | 75 | ); |
| 76 | 76 | } |
| 77 | 77 | if (!is_dir(CACHE)) { |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | AddEncoding gzip .css |
| 100 | 100 | AddEncoding gzip .html |
| 101 | 101 | |
| 102 | -HTACCESS |
|
| 102 | +htaccess |
|
| 103 | 103 | ); |
| 104 | 104 | } |
| 105 | 105 | if (!is_dir(LOGS)) { |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | <<<HTACCESS |
| 116 | 116 | Allow From All |
| 117 | 117 | |
| 118 | -HTACCESS |
|
| 118 | +htaccess |
|
| 119 | 119 | ); |
| 120 | 120 | } |
| 121 | 121 | /** |
@@ -273,7 +273,7 @@ discard block |
||
| 273 | 273 | ); |
| 274 | 274 | $base_target_file_name = basename($base_target_file_path); |
| 275 | 275 | // Replace first script with combined file |
| 276 | - $data = str_replace( |
|
| 276 | + $data = str_replace( |
|
| 277 | 277 | $scripts_to_replace[0], |
| 278 | 278 | "<script src=\"$base_target_file_name.js?$content_md5\"></script>", |
| 279 | 279 | $data |
@@ -377,7 +377,7 @@ discard block |
||
| 377 | 377 | ); |
| 378 | 378 | $base_target_file_name = basename($base_target_file_path); |
| 379 | 379 | // Replace first link or style with combined file |
| 380 | - $data = str_replace( |
|
| 380 | + $data = str_replace( |
|
| 381 | 381 | $links_and_styles_to_replace[0], |
| 382 | 382 | "<link rel=\"import\" type=\"css\" href=\"$base_target_file_name.css?$content_md5\">", |
| 383 | 383 | $data |
@@ -101,7 +101,7 @@ |
||
| 101 | 101 | 'alias' => "cs\\custom\\$_custom_class", |
| 102 | 102 | 'path' => $custom_class |
| 103 | 103 | ]; |
| 104 | - $next_alias = "cs\\custom\\$custom_class"; |
|
| 104 | + $next_alias = "cs\\custom\\$custom_class"; |
|
| 105 | 105 | } |
| 106 | 106 | $modified_classes[$class] = [ |
| 107 | 107 | 'aliases' => $aliases, |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | if ($User->guest()) { |
| 23 | 23 | throw new ExitException(403); |
| 24 | 24 | } |
| 25 | - $fields = [ |
|
| 25 | + $fields = [ |
|
| 26 | 26 | 'id', |
| 27 | 27 | 'login', |
| 28 | 28 | 'username', |
@@ -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/engines/$namespace/$class_name.php")]) || //Core engines |
|
| 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/engines/$namespace/$class_name.php")]) || //Core engines |
|
| 161 | 161 | strlen($file = @$file_index_map[str_replace('//', '/', "components/$namespace/$class_name.php")]) //Classes in modules and plugins |
| 162 | 162 | ) { |
| 163 | 163 | /** @noinspection UntrustedInclusionInspection */ |
@@ -279,7 +279,7 @@ discard block |
||
| 279 | 279 | * @throws Exception |
| 280 | 280 | */ |
| 281 | 281 | protected static function initialize_system_config ($cdb, $source, $site_name, $url, $admin_email, $language, $domain, $timezone, $mode) { |
| 282 | - $config = [ |
|
| 282 | + $config = [ |
|
| 283 | 283 | 'name' => $site_name, |
| 284 | 284 | 'url' => [$url], |
| 285 | 285 | 'admin_email' => $admin_email, |