@@ -41,7 +41,7 @@ |
||
41 | 41 | */ |
42 | 42 | public function addGroup($prefix, callable $callback) |
43 | 43 | { |
44 | - $this->collector->addGroup($prefix . ':', function (Collector $collector) use ($callback) { |
|
44 | + $this->collector->addGroup($prefix . ':', function(Collector $collector) use ($callback) { |
|
45 | 45 | return $callback(new RouteCollector($collector)); |
46 | 46 | }); |
47 | 47 | } |
@@ -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 | |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | $container->share(HandlerLocator::class)->withArgument($container); |
48 | 48 | |
49 | 49 | // Add the command bus |
50 | - $container->add(CommandBus::class, function (ClassNameExtractor $extractor, HandlerLocator $locator, HandleClassNameInflector $inflector){ |
|
50 | + $container->add(CommandBus::class, function(ClassNameExtractor $extractor, HandlerLocator $locator, HandleClassNameInflector $inflector) { |
|
51 | 51 | $handlerMiddleware = new CommandHandlerMiddleware($extractor, $locator, $inflector); |
52 | 52 | |
53 | 53 | return new CommandBus([$handlerMiddleware]); |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | private function handleDebug($level, $message, array $context) |
73 | 73 | { |
74 | 74 | if ($this->debug) { |
75 | - $this->cli->output(sprintf(' ~ [%s] %s ', strtoupper($level), $message));; |
|
75 | + $this->cli->output(sprintf(' ~ [%s] %s ', strtoupper($level), $message)); ; |
|
76 | 76 | } |
77 | 77 | } |
78 | 78 | |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | */ |
86 | 86 | private function handleError($level, $message, array $context) |
87 | 87 | { |
88 | - $this->cli->error(sprintf(' ! [%s] %s ', strtoupper($level), $message));; |
|
88 | + $this->cli->error(sprintf(' ! [%s] %s ', strtoupper($level), $message)); ; |
|
89 | 89 | } |
90 | 90 | |
91 | 91 | /** |
@@ -73,7 +73,7 @@ |
||
73 | 73 | $site = $this->site; |
74 | 74 | $cli = $this->container->get(CLImate::class); |
75 | 75 | |
76 | - $dispatcher = Dispatcher::simpleDispatcher(function (RouteCollector $routes) use ($site) { |
|
76 | + $dispatcher = Dispatcher::simpleDispatcher(function(RouteCollector $routes) use ($site) { |
|
77 | 77 | foreach ($this->collection->all() as $command) { |
78 | 78 | $command->registerRoutes($routes, $site); |
79 | 79 | } |
@@ -15,7 +15,7 @@ |
||
15 | 15 | /** @var string */ |
16 | 16 | protected $name; |
17 | 17 | |
18 | - public function __construct($command='') |
|
18 | + public function __construct($command = '') |
|
19 | 19 | { |
20 | 20 | $this->command($command); |
21 | 21 |