@@ -11,6 +11,9 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | final class Mapping |
| 13 | 13 | { |
| 14 | + /** |
|
| 15 | + * @param \Generator $directories |
|
| 16 | + */ |
|
| 14 | 17 | public static function resolve(iterable $directories, ?string $cacheFile): iterable |
| 15 | 18 | { |
| 16 | 19 | if ($cacheFile !== null && \file_exists($cacheFile)) { |
@@ -14,6 +14,6 @@ |
||
| 14 | 14 | |
| 15 | 15 | public static function write(string $cacheFile, array $mapping): bool |
| 16 | 16 | { |
| 17 | - return (bool)\file_put_contents($cacheFile, \json_encode($mapping)); |
|
| 17 | + return (bool) \file_put_contents($cacheFile, \json_encode($mapping)); |
|
| 18 | 18 | } |
| 19 | 19 | } |