@@ -42,7 +42,7 @@ |
||
| 42 | 42 | */ |
| 43 | 43 | public function handle($command): CancellablePromiseInterface |
| 44 | 44 | { |
| 45 | - return futurePromise($this->loop, $command)->then(function ($command) { |
|
| 45 | + return futurePromise($this->loop, $command)->then(function($command) { |
|
| 46 | 46 | return resolve($this->commandBus->handle($command)); |
| 47 | 47 | }); |
| 48 | 48 | } |
@@ -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 | ]; |