@@ -10,5 +10,5 @@ |
||
| 10 | 10 | /** |
| 11 | 11 | * Path to the public asynchronous pipe file |
| 12 | 12 | */ |
| 13 | - const FILE = __DIR__ . '/../../../inc/pipe.php'; |
|
| 13 | + const FILE = __DIR__.'/../../../inc/pipe.php'; |
|
| 14 | 14 | } |
@@ -10,5 +10,5 @@ |
||
| 10 | 10 | /** |
| 11 | 11 | * Path to the public entry point file |
| 12 | 12 | */ |
| 13 | - const FILE = __DIR__ . '/../../../inc/index.php'; |
|
| 13 | + const FILE = __DIR__.'/../../../inc/index.php'; |
|
| 14 | 14 | } |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | public function __toString() |
| 29 | 29 | { |
| 30 | 30 | return sprintf( |
| 31 | - file_get_contents(__DIR__ . '/resources/source-preview.html'), |
|
| 31 | + file_get_contents(__DIR__.'/resources/source-preview.html'), |
|
| 32 | 32 | highlight_file($this->path, true) |
| 33 | 33 | ); |
| 34 | 34 | } |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | public function setForceDownload($name = null) |
| 89 | 89 | { |
| 90 | 90 | $this->getHeaders()->addHeaders([ |
| 91 | - 'Content-Disposition' => 'attachment; filename="' . $this->getFileName($name) .'"', |
|
| 91 | + 'Content-Disposition' => 'attachment; filename="'.$this->getFileName($name).'"', |
|
| 92 | 92 | 'Content-Length' => $this->getContentLength(), |
| 93 | 93 | 'Content-Type' => 'application/force-download', |
| 94 | 94 | ]); |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | |
| 42 | 42 | $loadedModules = []; |
| 43 | 43 | foreach ($modules->getLoadedModules() as $name => $module) { |
| 44 | - $loadedModules[$name] = defined(get_class($module) . '::VERSION') ? $module::VERSION : '-'; |
|
| 44 | + $loadedModules[$name] = defined(get_class($module).'::VERSION') ? $module::VERSION : '-'; |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | return $loadedModules; |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | */ |
| 53 | 53 | public function getTab() |
| 54 | 54 | { |
| 55 | - return $this->createIcon('modules', ['top' => '2px']) . parent::getTab(); |
|
| 55 | + return $this->createIcon('modules', ['top' => '2px']).parent::getTab(); |
|
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | /** |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | */ |
| 39 | 39 | protected function getDir() |
| 40 | 40 | { |
| 41 | - return __DIR__ . '/' . $this::RESOURCES; |
|
| 41 | + return __DIR__.'/'.$this::RESOURCES; |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | /** |
@@ -76,8 +76,8 @@ discard block |
||
| 76 | 76 | */ |
| 77 | 77 | protected function createIcon($name, array $style = []) |
| 78 | 78 | { |
| 79 | - $data = file_get_contents($this->getDir() . '/' . $name . '.png'); |
|
| 80 | - $base64 = 'data:image/png;base64,' . base64_encode($data); |
|
| 79 | + $data = file_get_contents($this->getDir().'/'.$name.'.png'); |
|
| 80 | + $base64 = 'data:image/png;base64,'.base64_encode($data); |
|
| 81 | 81 | return (new Html\Img($base64))->setStyle($style); |
| 82 | 82 | } |
| 83 | 83 | |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | { |
| 90 | 90 | ob_start(); |
| 91 | 91 | /** @noinspection PhpIncludeInspection */ |
| 92 | - require $this->getDir() . '/' . $name . '.phtml'; |
|
| 92 | + require $this->getDir().'/'.$name.'.phtml'; |
|
| 93 | 93 | return ob_get_clean(); |
| 94 | 94 | } |
| 95 | 95 | } |
@@ -60,12 +60,12 @@ discard block |
||
| 60 | 60 | |
| 61 | 61 | $newArgumentsDescription = []; |
| 62 | 62 | foreach ($argumentsDescription as $key => $value) { |
| 63 | - $newArgumentsDescription[" <green>$key</green>"] = '- ' . $value; |
|
| 63 | + $newArgumentsDescription[" <green>$key</green>"] = '- '.$value; |
|
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | $newOptionsDescription = []; |
| 67 | 67 | foreach ($optionsDescription as $key => $value) { |
| 68 | - $newOptionsDescription[" <green>--$key</green>"] = '- ' . $value; |
|
| 68 | + $newOptionsDescription[" <green>--$key</green>"] = '- '.$value; |
|
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | $cli = $event->getCli(); |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | ->backgroundBlack($route->options->route)->br(); |
| 77 | 77 | |
| 78 | 78 | empty($description) |
| 79 | - or $cli->yellowBold('Description:')->out(' ' . str_replace(PHP_EOL, PHP_EOL . ' ', $description))->br(); |
|
| 79 | + or $cli->yellowBold('Description:')->out(' '.str_replace(PHP_EOL, PHP_EOL.' ', $description))->br(); |
|
| 80 | 80 | |
| 81 | 81 | empty($argumentsDescription) |
| 82 | 82 | or $cli->yellowBold('Arguments:')->columns($newArgumentsDescription)->br(); |
@@ -16,6 +16,6 @@ |
||
| 16 | 16 | */ |
| 17 | 17 | public function __invoke($name) |
| 18 | 18 | { |
| 19 | - return $this->getUsePrefix($name) ? $name : RouteEvent::PREFIX . ConsoleEvent::PREFIX . $name; |
|
| 19 | + return $this->getUsePrefix($name) ? $name : RouteEvent::PREFIX.ConsoleEvent::PREFIX.$name; |
|
| 20 | 20 | } |
| 21 | 21 | } |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | */ |
| 21 | 21 | public function __invoke($name) |
| 22 | 22 | { |
| 23 | - return $this->getUsePrefix($name) ? $name : RouteEvent::PREFIX . $name; |
|
| 23 | + return $this->getUsePrefix($name) ? $name : RouteEvent::PREFIX.$name; |
|
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | /** |