@@ -14,7 +14,7 @@  | 
                                                    ||
| 14 | 14 |      { | 
                                                        
| 15 | 15 | (new Run())->pushHandler(\ENV === 'dev'  | 
                                                        
| 16 | 16 | ? new PrettyPageHandler()  | 
                                                        
| 17 | -            : function () { | 
                                                        |
| 17 | +            : function() { | 
                                                        |
| 18 | 18 | $errorPagePath = $this->getErrorPagePath();  | 
                                                        
| 19 | 19 |                  if ($errorPagePath && \file_exists($errorPagePath)) { | 
                                                        
| 20 | 20 | echo \file_get_contents($errorPagePath);  | 
                                                        
@@ -64,7 +64,7 @@  | 
                                                    ||
| 64 | 64 | */  | 
                                                        
| 65 | 65 | protected function configureDispatcher(): Dispatcher  | 
                                                        
| 66 | 66 |      { | 
                                                        
| 67 | -        return \FastRoute\simpleDispatcher(function (RouteCollector $collector) { | 
                                                        |
| 67 | +        return \FastRoute\simpleDispatcher(function(RouteCollector $collector) { | 
                                                        |
| 68 | 68 |              foreach ($this->config as $route) { | 
                                                        
| 69 | 69 | $collector->addRoute($route[0], $route[1], $route[2]);  | 
                                                        
| 70 | 70 | }  | 
                                                        
@@ -60,10 +60,10 @@ discard block  | 
                                                    ||
| 60 | 60 | public function getPath(string $assetClass, $file): string  | 
                                                        
| 61 | 61 |      { | 
                                                        
| 62 | 62 |          if (!isset($this->assets[$assetClass])) { | 
                                                        
| 63 | -            throw new Exception('Asset ' . $assetClass . ' is not registered'); | 
                                                        |
| 63 | +            throw new Exception('Asset '.$assetClass.' is not registered'); | 
                                                        |
| 64 | 64 | }  | 
                                                        
| 65 | 65 | |
| 66 | - return $this->getWebDir($this->assets[$assetClass]) . \ltrim($file, '/');  | 
                                                        |
| 66 | + return $this->getWebDir($this->assets[$assetClass]).\ltrim($file, '/');  | 
                                                        |
| 67 | 67 | }  | 
                                                        
| 68 | 68 | |
| 69 | 69 | /**  | 
                                                        
@@ -75,7 +75,7 @@ discard block  | 
                                                    ||
| 75 | 75 |          foreach ($this->assets as $asset) { | 
                                                        
| 76 | 76 | $links = $this->getLinks($asset, $asset->css());  | 
                                                        
| 77 | 77 |              foreach ($links as $link) { | 
                                                        
| 78 | - $result[] = '<link rel="stylesheet" href="' . $link . '">';  | 
                                                        |
| 78 | + $result[] = '<link rel="stylesheet" href="'.$link.'">';  | 
                                                        |
| 79 | 79 | }  | 
                                                        
| 80 | 80 | }  | 
                                                        
| 81 | 81 |          return \implode('', $result); | 
                                                        
@@ -90,7 +90,7 @@ discard block  | 
                                                    ||
| 90 | 90 |          foreach ($this->assets as $asset) { | 
                                                        
| 91 | 91 | $links = $this->getLinks($asset, $asset->js());  | 
                                                        
| 92 | 92 |              foreach ($links as $link) { | 
                                                        
| 93 | - $result[] = '<script src="' . $link . '"></script>';  | 
                                                        |
| 93 | + $result[] = '<script src="'.$link.'"></script>';  | 
                                                        |
| 94 | 94 | }  | 
                                                        
| 95 | 95 | }  | 
                                                        
| 96 | 96 |          return \implode('', $result); | 
                                                        
@@ -104,7 +104,7 @@ discard block  | 
                                                    ||
| 104 | 104 | protected function publishAsset(AbstractAsset $asset)  | 
                                                        
| 105 | 105 |      { | 
                                                        
| 106 | 106 | $hash = $asset->getHash();  | 
                                                        
| 107 | - $dir = $this->webRoot . '/' . $this->assetDirName . '/' . $hash;  | 
                                                        |
| 107 | + $dir = $this->webRoot.'/'.$this->assetDirName.'/'.$hash;  | 
                                                        |
| 108 | 108 |          if ($asset->useLinks) { | 
                                                        
| 109 | 109 |              if (!$this->filesystem->exists($dir)) { | 
                                                        
| 110 | 110 | $this->filesystem->symlink($asset->getBasePath(), $dir, true);  | 
                                                        
@@ -126,7 +126,7 @@ discard block  | 
                                                    ||
| 126 | 126 | private function getWebDir(AbstractAsset $asset): string  | 
                                                        
| 127 | 127 |      { | 
                                                        
| 128 | 128 | return $asset->publish  | 
                                                        
| 129 | - ? '/' . $this->assetDirName . '/' . $asset->getHash() . '/'  | 
                                                        |
| 129 | + ? '/'.$this->assetDirName.'/'.$asset->getHash().'/'  | 
                                                        |
| 130 | 130 | : '/';  | 
                                                        
| 131 | 131 | }  | 
                                                        
| 132 | 132 | |
@@ -156,9 +156,9 @@ discard block  | 
                                                    ||
| 156 | 156 |      { | 
                                                        
| 157 | 157 | $link = $file;  | 
                                                        
| 158 | 158 |          if (false === \strpos($file, 'http') && false === \strpos($file, '//')) { | 
                                                        
| 159 | - $filePath = $dir . \ltrim($file, '/');  | 
                                                        |
| 160 | - $timestamp = \filemtime($this->webRoot . $filePath);  | 
                                                        |
| 161 | - $link = $filePath . '?' . $timestamp;  | 
                                                        |
| 159 | + $filePath = $dir.\ltrim($file, '/');  | 
                                                        |
| 160 | + $timestamp = \filemtime($this->webRoot.$filePath);  | 
                                                        |
| 161 | + $link = $filePath.'?'.$timestamp;  | 
                                                        |
| 162 | 162 | }  | 
                                                        
| 163 | 163 | |
| 164 | 164 | return $link;  | 
                                                        
@@ -118,10 +118,10 @@  | 
                                                    ||
| 118 | 118 | * @var int $k  | 
                                                        
| 119 | 119 | * @var array $route  | 
                                                        
| 120 | 120 | */  | 
                                                        
| 121 | -            foreach ((array)$this->config as $k => $route) { | 
                                                        |
| 121 | +            foreach ((array) $this->config as $k => $route) { | 
                                                        |
| 122 | 122 |                  if ($route[1] === $beforeRoute) { | 
                                                        
| 123 | 123 | $k > 1  | 
                                                        
| 124 | - ? \array_splice($this->config, $k-1, 0, $routeDefinition)  | 
                                                        |
| 124 | + ? \array_splice($this->config, $k - 1, 0, $routeDefinition)  | 
                                                        |
| 125 | 125 | : \array_unshift($this->config, $routeDefinition);  | 
                                                        
| 126 | 126 | }  | 
                                                        
| 127 | 127 | }  |