@@ -131,7 +131,7 @@ |
||
| 131 | 131 | if (!$item || $user == User::GUEST_ID) { |
| 132 | 132 | return false; |
| 133 | 133 | } |
| 134 | - $item = implode( |
|
| 134 | + $item = implode( |
|
| 135 | 135 | ',', |
| 136 | 136 | $this->db_prime()->s((array)$item) |
| 137 | 137 | ); |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | 'title' => 'html', |
| 38 | 38 | 'description' => 'html' |
| 39 | 39 | ]; |
| 40 | - protected $table = '[prefix]groups'; |
|
| 40 | + protected $table = '[prefix]groups'; |
|
| 41 | 41 | /** |
| 42 | 42 | * @var Cache\Prefix |
| 43 | 43 | */ |
@@ -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). |