@@ -9,6 +9,9 @@ |
||
| 9 | 9 | */ |
| 10 | 10 | final class Mapping |
| 11 | 11 | { |
| 12 | + /** |
|
| 13 | + * @param \Generator $directories |
|
| 14 | + */ |
|
| 12 | 15 | public static function resolve(iterable $directories, ?string $cacheFile): iterable |
| 13 | 16 | { |
| 14 | 17 | if ($cacheFile !== null && file_exists($cacheFile)) { |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | |
| 25 | 25 | public static function write(string $cacheFile, array $mapping): bool |
| 26 | 26 | { |
| 27 | - return (bool)file_put_contents($cacheFile, json_encode(array_map(function (Handler $handler) { |
|
| 27 | + return (bool) file_put_contents($cacheFile, json_encode(array_map(function(Handler $handler) { |
|
| 28 | 28 | return [ |
| 29 | 29 | $handler->getHandler(), |
| 30 | 30 | ]; |