@@ -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 | /** |
@@ -33,7 +33,7 @@ |
||
33 | 33 | */ |
34 | 34 | protected function mergeArray(array $merge) |
35 | 35 | { |
36 | - array_walk_recursive($merge, function (&$item) { |
|
36 | + array_walk_recursive($merge, function(&$item) { |
|
37 | 37 | if ($item instanceof self) { |
38 | 38 | $this->mergeArray($item->takeCoreServices()); |
39 | 39 | $item = $item->toArray(); |
@@ -32,7 +32,7 @@ |
||
32 | 32 | */ |
33 | 33 | public function setHeight($height) |
34 | 34 | { |
35 | - $this->setStyle(['height' => $height . 'px']); |
|
35 | + $this->setStyle(['height' => $height.'px']); |
|
36 | 36 | return $this; |
37 | 37 | } |
38 | 38 | } |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | $styleData = []; |
93 | 93 | |
94 | 94 | if (isset($this->attribs['style'])) { |
95 | - call_user_func(function () use (&$styleData) { |
|
95 | + call_user_func(function() use (&$styleData) { |
|
96 | 96 | foreach (explode(';', $this->attribs['style']) as $pair) { |
97 | 97 | list($name, $value) = explode(':', $pair); |
98 | 98 | $styleData[trim($name)] = trim($value); |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | |
111 | 111 | $stylePairs = []; |
112 | 112 | foreach ($styleData as $name => $value) { |
113 | - $stylePairs[] = $name . ': ' . $value; |
|
113 | + $stylePairs[] = $name.': '.$value; |
|
114 | 114 | } |
115 | 115 | |
116 | 116 | $this->setAttribute('style', join('; ', $stylePairs)); |
@@ -17,6 +17,6 @@ |
||
17 | 17 | public function init() |
18 | 18 | { |
19 | 19 | $this->hasRoute() and $this->getData()->options['regex'] = $this->getRoute(); |
20 | - $this->hasSpec() and $this->getData()->options['spec'] = $this->getSpec(); |
|
20 | + $this->hasSpec() and $this->getData()->options['spec'] = $this->getSpec(); |
|
21 | 21 | } |
22 | 22 | } |