@@ -42,7 +42,7 @@ |
||
| 42 | 42 | */ |
| 43 | 43 | public static function simpleDispatcher(callable $routeDefinitionCallback, array $options = []) |
| 44 | 44 | { |
| 45 | - return new static(simpleDispatcher(function (Collector $collector) use ($routeDefinitionCallback) { |
|
| 45 | + return new static(simpleDispatcher(function(Collector $collector) use ($routeDefinitionCallback) { |
|
| 46 | 46 | return $routeDefinitionCallback(new RouteCollector($collector)); |
| 47 | 47 | }, $options)); |
| 48 | 48 | } |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | $container = $this->getContainer(); |
| 40 | 40 | |
| 41 | 41 | // Share the CLImate object |
| 42 | - $container->share(CLImate::class, function () use ($container) { |
|
| 42 | + $container->share(CLImate::class, function() use ($container) { |
|
| 43 | 43 | return new CLImate(); |
| 44 | 44 | }); |
| 45 | 45 | |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | // Add the command bus |
| 50 | 50 | $container->add( |
| 51 | 51 | CommandBus::class, |
| 52 | - function (ClassNameExtractor $extractor, HandlerLocator $locator, HandleClassNameInflector $inflector) { |
|
| 52 | + function(ClassNameExtractor $extractor, HandlerLocator $locator, HandleClassNameInflector $inflector) { |
|
| 53 | 53 | $handlerMiddleware = new CommandHandlerMiddleware($extractor, $locator, $inflector); |
| 54 | 54 | |
| 55 | 55 | return new CommandBus([$handlerMiddleware]); |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | ->withArgument(Collection::class) |
| 64 | 64 | ->withArgument(Site::class); |
| 65 | 65 | |
| 66 | - $container->share(Site::class, function () use ($container) { |
|
| 66 | + $container->share(Site::class, function() use ($container) { |
|
| 67 | 67 | $site = $container->get(Locator::class)->getLocation(); |
| 68 | 68 | if (!$site) { |
| 69 | 69 | $site = new Site(); |