@@ -60,7 +60,7 @@ |
||
60 | 60 | if (!file_exists($path_in_filesystem) || is_writable($path_in_filesystem)) { |
61 | 61 | return (bool)file_put_contents($path_in_filesystem, $data, LOCK_EX | FILE_BINARY); |
62 | 62 | } |
63 | - trigger_error("File $path_in_filesystem not available for writing", E_USER_WARNING); |
|
63 | + trigger_error("file $path_in_filesystem not available for writing", E_USER_WARNING); |
|
64 | 64 | return false; |
65 | 65 | } |
66 | 66 | /** |
@@ -282,7 +282,7 @@ |
||
282 | 282 | * Checks for unconfirmed registrations and deletes expired |
283 | 283 | */ |
284 | 284 | protected function delete_unconfirmed_users () { |
285 | - $reg_date = time() - Config::instance()->core['registration_confirmation_time'] * 86400; //1 day = 86400 seconds |
|
285 | + $reg_date = time() - Config::instance()->core['registration_confirmation_time'] * 86400; //1 day = 86400 seconds |
|
286 | 286 | $ids = $this->db_prime()->qfas( |
287 | 287 | "SELECT `id` |
288 | 288 | FROM `[prefix]users` |
@@ -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 | ]; |