Completed
Push — master ( 6e63c6...3a4c8a )
by Maxim
02:27
created
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.