@@ -72,7 +72,7 @@ |
||
| 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 | |
@@ -25,7 +25,7 @@ discard block |
||
| 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 |
||
| 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)); |