Completed
Push — master ( 3a4c8a...558346 )
by Maxim
02:41
created
src/errorHandler/ErrorHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/router/Router.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/assets/AssetManager.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
         foreach ($this->assets as $asset) {
59 59
             $links = $this->getLinks($asset, $asset->css());
60 60
             foreach ($links as $link) {
61
-                $result[] = '<link rel="stylesheet" href="' . $link . '">';
61
+                $result[] = '<link rel="stylesheet" href="'.$link.'">';
62 62
             }
63 63
         }
64 64
         return \implode('', $result);
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         foreach ($this->assets as $asset) {
74 74
             $links = $this->getLinks($asset, $asset->js());
75 75
             foreach ($links as $link) {
76
-                $result[] = '<script src="' . $link . '"></script>';
76
+                $result[] = '<script src="'.$link.'"></script>';
77 77
             }
78 78
         }
79 79
         return \implode('', $result);
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     protected function publishAsset(AbstractAsset $asset)
88 88
     {
89 89
         $hash = $asset->getHash();
90
-        $dir = $this->webRoot . '/' . $this->assetDirName . '/' . $hash;
90
+        $dir = $this->webRoot.'/'.$this->assetDirName.'/'.$hash;
91 91
         if ($asset->useLinks) {
92 92
             if (!$this->filesystem->exists($dir)) {
93 93
                 $this->filesystem->symlink($asset->getBasePath(), $dir, true);
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     private function getWebDir(AbstractAsset $asset): string
110 110
     {
111 111
         return $asset->publish
112
-            ? '/' . $this->assetDirName . '/' . $asset->getHash() . '/'
112
+            ? '/'.$this->assetDirName.'/'.$asset->getHash().'/'
113 113
             : '/';
114 114
     }
115 115
 
@@ -139,9 +139,9 @@  discard block
 block discarded – undo
139 139
     {
140 140
         $link = $file;
141 141
         if (false === \strpos($file, 'http') && false === \strpos($file, '//')) {
142
-            $filePath = $dir . \ltrim($file, '/');
143
-            $timestamp = \filemtime($this->webRoot . $filePath);
144
-            $link = $filePath . '?' . $timestamp;
142
+            $filePath = $dir.\ltrim($file, '/');
143
+            $timestamp = \filemtime($this->webRoot.$filePath);
144
+            $link = $filePath.'?'.$timestamp;
145 145
         }
146 146
 
147 147
         return $link;
Please login to merge, or discard this patch.