Passed
Push — master ( 408d27...b9a0ea )
by Nikolay
02:28
created
src/Component.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
         /** @var Cache $cacheComponent */
73 73
         $cacheComponent = Yii::$app->{$this->cacheComponent};
74 74
 
75
-        $hash = (string)$cacheComponent->getOrSet($key, function () use ($path) {
75
+        $hash = (string) $cacheComponent->getOrSet($key, function() use ($path) {
76 76
             return $this->fileSystemHash->hashPath($path);
77 77
         });
78 78
 
Please login to merge, or discard this patch.
src/FileSystemHash.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
             /** @var SplFileInfo $file */
26 26
             foreach ($it as $file) {
27 27
                 if ($file->isFile()) {
28
-                    $hashes[] = md5_file($file) . '-' . $this->hashPathName((string)$file);
28
+                    $hashes[] = md5_file($file) . '-' . $this->hashPathName((string) $file);
29 29
                 }
30 30
             }
31 31
 
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
                 sort($hashes);
36 36
             }
37 37
         } else {
38
-            $hashes[] = md5_file($path) . '-' . $this->hashPathName((string)$path);
38
+            $hashes[] = md5_file($path) . '-' . $this->hashPathName((string) $path);
39 39
         }
40 40
 
41 41
         return md5(implode('|', $hashes));
Please login to merge, or discard this patch.