@@ -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() |
@@ -321,7 +321,7 @@ discard block |
||
| 321 | 321 | } |
| 322 | 322 | $filename = static::file_put_contents_with_hash($target_directory_path, 'js', $scripts_content); |
| 323 | 323 | // Add script with combined content file to the end |
| 324 | - $data .= "<script src=\"./$filename\"></script>"; |
|
| 324 | + $data .= "<script src=\"./$filename\"></script>"; |
|
| 325 | 325 | $not_embedded_resources[] = str_replace(getcwd(), '', "$target_directory_path/$filename"); |
| 326 | 326 | } else { |
| 327 | 327 | // Add combined content inline script to the end |
@@ -373,7 +373,7 @@ discard block |
||
| 373 | 373 | /** |
| 374 | 374 | * If content is link to CSS file |
| 375 | 375 | */ |
| 376 | - $css = static::css( |
|
| 376 | + $css = static::css( |
|
| 377 | 377 | file_get_contents("$dir/$url"), |
| 378 | 378 | "$dir/$url", |
| 379 | 379 | $target_directory_path, |