@@ -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 | } |
@@ -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 | } |