Passed
Branch master (e232fd)
by Enjoys
12:19
created
src/Render/Html/Js.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     {
27 27
         $result = '';
28 28
         foreach ($paths as $path) {
29
-           $result .= "<script src='{$path}{$this->environment->getVersion()}'></script>\n";
29
+            $result .= "<script src='{$path}{$this->environment->getVersion()}'></script>\n";
30 30
         }
31 31
         return $result;
32 32
     }
Please login to merge, or discard this patch.
src/Render/RenderFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,11 +27,11 @@
 block discarded – undo
27 27
      */
28 28
     public static function getRender(string $type, Environment $environment, string $render = Assets::RENDER_HTML): RenderInterface
29 29
     {
30
-        if(!isset(self::RENDERS[$render][$type])){
30
+        if (!isset(self::RENDERS[$render][$type])) {
31 31
             throw new \Exception('Invalid render');
32 32
         }
33 33
 
34
-        $renderClass =  self::RENDERS[$render][$type];
34
+        $renderClass = self::RENDERS[$render][$type];
35 35
 
36 36
         return new $renderClass($environment);
37 37
 
Please login to merge, or discard this patch.
src/CollectStrategy/Strategy/ManyFilesStrategy.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 
18 18
         foreach ($this->assetsCollection as $asset) {
19 19
 
20
-            if($asset->getPath() === false){
20
+            if ($asset->getPath() === false) {
21 21
                 continue;
22 22
             }
23 23
 
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
             try {
34 34
                 if (!file_exists($symlink)) {
35 35
                     $this->createDirectory(pathinfo($symlink, PATHINFO_DIRNAME));
36
-                    symlink($asset->getPath(),  $symlink);
36
+                    symlink($asset->getPath(), $symlink);
37 37
                     $this->logger->info(sprintf('Create symlink: %s', $symlink));
38 38
                 }
39 39
             } catch (\Exception  $e) {
Please login to merge, or discard this patch.
src/CollectStrategy/Strategy/OneFileStrategy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 
50 50
     private function isCacheValid(): bool
51 51
     {
52
-        if($this->fileCreated){
52
+        if ($this->fileCreated) {
53 53
             return false;
54 54
         }
55 55
         return (filemtime($this->filePath) + $this->cacheTime) > time();
Please login to merge, or discard this patch.
src/CollectStrategy/StrategyFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     public static function getStrategy(Environment $environment, array $assetsCollection, string $type): StrategyInterface
29 29
     {
30 30
         $strategy = $environment->getStrategy();
31
-        if(!isset(self::STRATEGY[$strategy])){
31
+        if (!isset(self::STRATEGY[$strategy])) {
32 32
             throw new \Exception('Invalid strategy');
33 33
         }
34 34
         $strategyClass = self::STRATEGY[$strategy];
Please login to merge, or discard this patch.