Passed
Pull Request — master (#1)
by Nikolay
01:37
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 = $cacheComponent->getOrSet($key, function () use ($path) {
75
+        $hash = $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
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
             /** @var SplFileInfo $file */
23 23
             foreach ($it as $file) {
24 24
                 if ($file->isFile()) {
25
-                    $hashes[] = md5_file($file) . '-' . $this->hashPathName((string)$file);
25
+                    $hashes[] = md5_file($file) . '-' . $this->hashPathName((string) $file);
26 26
                 }
27 27
             }
28 28
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
                 sort($hashes);
33 33
             }
34 34
         } else {
35
-            $hashes[] = md5_file($path) . '-' . $this->hashPathName((string)$path);
35
+            $hashes[] = md5_file($path) . '-' . $this->hashPathName((string) $path);
36 36
         }
37 37
 
38 38
         return md5(implode($hashes, '|'));
Please login to merge, or discard this patch.