@@ -56,8 +56,8 @@ |
||
56 | 56 | */ |
57 | 57 | public function registerRoutes(RouteCollector $collector, Site $site = null) |
58 | 58 | { |
59 | - $collector->addGroup(['site', 'sites'], function (RouteCollector $collector) use ($site) { |
|
60 | - $collector->addRoute(['locate', 'find'], function () use ($site) { |
|
59 | + $collector->addGroup(['site', 'sites'], function(RouteCollector $collector) use ($site) { |
|
60 | + $collector->addRoute(['locate', 'find'], function() use ($site) { |
|
61 | 61 | $command = array_get($this->getCommands($site), 'site:locate'); |
62 | 62 | $command->parse(); |
63 | 63 | $path = realpath($command->get('path')); |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | $container = $this->getContainer(); |
53 | 53 | |
54 | 54 | // Share the CLImate object |
55 | - $container->share(CLImate::class, function () use ($container) { |
|
55 | + $container->share(CLImate::class, function() use ($container) { |
|
56 | 56 | return new CLImate(); |
57 | 57 | }); |
58 | 58 | |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | // Add the command bus |
63 | 63 | $container->add( |
64 | 64 | CommandBus::class, |
65 | - function (ClassNameExtractor $extractor, HandlerLocator $locator, HandleClassNameInflector $inflector) { |
|
65 | + function(ClassNameExtractor $extractor, HandlerLocator $locator, HandleClassNameInflector $inflector) { |
|
66 | 66 | $handlerMiddleware = new CommandHandlerMiddleware($extractor, $locator, $inflector); |
67 | 67 | |
68 | 68 | return new CommandBus([$handlerMiddleware]); |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | ErrorHandler::class |
79 | 79 | ]); |
80 | 80 | |
81 | - $container->share(Site::class, function () use ($container) { |
|
81 | + $container->share(Site::class, function() use ($container) { |
|
82 | 82 | $site = $container->get(Locator::class)->getLocation(); |
83 | 83 | if (!$site) { |
84 | 84 | $site = Site::create(); |
@@ -54,7 +54,7 @@ |
||
54 | 54 | } |
55 | 55 | |
56 | 56 | foreach ($prefixes as $string) { |
57 | - $this->collector->addGroup($string . ':', function (Collector $collector) use ($callback) { |
|
57 | + $this->collector->addGroup($string . ':', function(Collector $collector) use ($callback) { |
|
58 | 58 | return $callback(new RouteCollector($collector)); |
59 | 59 | }); |
60 | 60 | } |