@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | 'storage' => 'json', |
82 | 82 | 'components' => 'json' |
83 | 83 | ]; |
84 | - protected $table = '[prefix]config'; |
|
84 | + protected $table = '[prefix]config'; |
|
85 | 85 | protected function cdb () { |
86 | 86 | return 0; |
87 | 87 | } |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | return $multilingual_options; |
179 | 179 | } |
180 | 180 | ); |
181 | - $this->core = $multilingual_options + $this->core; |
|
181 | + $this->core = $multilingual_options + $this->core; |
|
182 | 182 | } |
183 | 183 | /** |
184 | 184 | * Get core options item |
@@ -62,7 +62,7 @@ |
||
62 | 62 | 'ip' => 'text', |
63 | 63 | 'data' => 'json' |
64 | 64 | ]; |
65 | - protected $table = '[prefix]sessions'; |
|
65 | + protected $table = '[prefix]sessions'; |
|
66 | 66 | /** |
67 | 67 | * Returns database index |
68 | 68 | * |
@@ -22,7 +22,7 @@ |
||
22 | 22 | 'group' => 'text', |
23 | 23 | 'label' => 'text' |
24 | 24 | ]; |
25 | - protected $table = '[prefix]permissions'; |
|
25 | + protected $table = '[prefix]permissions'; |
|
26 | 26 | /** |
27 | 27 | * Array of all permissions for quick selecting |
28 | 28 | * |
@@ -51,7 +51,7 @@ |
||
51 | 51 | */ |
52 | 52 | public function stream_read ($length) { |
53 | 53 | fseek($this->stream, $this->position); |
54 | - $bytes = fread($this->stream, $length); |
|
54 | + $bytes = fread($this->stream, $length); |
|
55 | 55 | $this->position += strlen($bytes); |
56 | 56 | return $bytes; |
57 | 57 | } |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | $verbosity => true |
123 | 123 | ] |
124 | 124 | ); |
125 | - $output = new Output; |
|
125 | + $output = new Output; |
|
126 | 126 | $Application->setAutoExit(false); |
127 | 127 | $status_code = $Application->run($input, $output); |
128 | 128 | $description = $output->get_buffer(); |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | 'repositories' => [], |
194 | 194 | 'require' => [] |
195 | 195 | ]; |
196 | - $Config = Config::instance(); |
|
196 | + $Config = Config::instance(); |
|
197 | 197 | foreach (array_keys($Config->components['modules']) as $module) { |
198 | 198 | if ( |
199 | 199 | $module == $component_name && |
@@ -245,13 +245,13 @@ discard block |
||
245 | 245 | return; |
246 | 246 | } |
247 | 247 | |
248 | - $package = array_filter( |
|
248 | + $package = array_filter( |
|
249 | 249 | $package, |
250 | 250 | function ($value) { |
251 | 251 | return $value !== []; |
252 | 252 | } |
253 | 253 | ); |
254 | - $composer['repositories'][] = [ |
|
254 | + $composer['repositories'][] = [ |
|
255 | 255 | 'type' => 'package', |
256 | 256 | 'package' => $package |
257 | 257 | ]; |
@@ -25,7 +25,7 @@ |
||
25 | 25 | $page = $_GET['page'] ?? 1; |
26 | 26 | $count = $_GET['count'] ?? Config::instance()->module('Shop')->items_per_page; |
27 | 27 | if ($Session->user()) { |
28 | - $orders = $Orders->get( |
|
28 | + $orders = $Orders->get( |
|
29 | 29 | $Orders->search( |
30 | 30 | [ |
31 | 31 | 'user' => $Session->get_user() |
@@ -24,8 +24,7 @@ |
||
24 | 24 | ). |
25 | 25 | h::label($L->gallery_title). |
26 | 26 | h::{'cs-input-text input[name=add[title]]'}(). |
27 | - ($Config->core['simple_admin_mode'] ? '' : |
|
28 | - h::label(h::info('photo_gallery_gallery_path')). |
|
27 | + ($Config->core['simple_admin_mode'] ? '' : h::label(h::info('photo_gallery_gallery_path')). |
|
29 | 28 | h::{'cs-input-text input[name=add[path]]'}() |
30 | 29 | ). |
31 | 30 | h::label($L->gallery_description). |
@@ -30,8 +30,7 @@ |
||
30 | 30 | 'value' => $gallery['title'] |
31 | 31 | ] |
32 | 32 | ). |
33 | - ($Config->core['simple_admin_mode'] ? '' : |
|
34 | - h::label(h::info('photo_gallery_gallery_path')). |
|
33 | + ($Config->core['simple_admin_mode'] ? '' : h::label(h::info('photo_gallery_gallery_path')). |
|
35 | 34 | h::{'cs-input-text input[name=edit[path]]'}( |
36 | 35 | [ |
37 | 36 | 'value' => $gallery['path'] |
@@ -78,10 +78,10 @@ discard block |
||
78 | 78 | * Try to load classes from different places. If not found in one place - try in another. |
79 | 79 | */ |
80 | 80 | if ( |
81 | - file_exists($file = CORE."/classes/$namespace/$class_name.php") || //Core classes |
|
81 | + file_exists($file = CORE."/classes/$namespace/$class_name.php") || //Core classes |
|
82 | 82 | file_exists($file = CORE."/thirdparty/$namespace/$class_name.php") || //Third party classes |
83 | - file_exists($file = CORE."/traits/$namespace/$class_name.php") || //Core traits |
|
84 | - file_exists($file = CORE."/drivers/$namespace/$class_name.php") || //Core drivers |
|
83 | + file_exists($file = CORE."/traits/$namespace/$class_name.php") || //Core traits |
|
84 | + file_exists($file = CORE."/drivers/$namespace/$class_name.php") || //Core drivers |
|
85 | 85 | file_exists($file = MODULES."/../$namespace/$class_name.php") //Classes in modules |
86 | 86 | ) { |
87 | 87 | $cache[$class] = realpath($file); |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | foreach ($units as $time_frame => $key) { |
198 | 198 | if ($time >= $time_frame) { |
199 | 199 | $time_full = floor($time / $time_frame); |
200 | - $time -= $time_full * $time_frame; |
|
200 | + $time -= $time_full * $time_frame; |
|
201 | 201 | $res[] = $L->time($time_full, $key); |
202 | 202 | } |
203 | 203 | } |