@@ -22,7 +22,7 @@ |
||
| 22 | 22 | /** |
| 23 | 23 | * Create a new command events middleware. |
| 24 | 24 | * |
| 25 | - * @param Illuminate\Contracts\Events\Dispatcher $dispatcher |
|
| 25 | + * @param Dispatcher $dispatcher |
|
| 26 | 26 | */ |
| 27 | 27 | public function __construct(Dispatcher $dispatcher) |
| 28 | 28 | { |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | |
| 55 | 55 | $this->dispatcher->fire($event); |
| 56 | 56 | |
| 57 | - if (! $event->isExceptionCaught()) { |
|
| 57 | + if (!$event->isExceptionCaught()) { |
|
| 58 | 58 | throw $exception; |
| 59 | 59 | } |
| 60 | 60 | } catch (Throwable $exception) { |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | |
| 63 | 63 | $this->dispatcher->fire($event); |
| 64 | 64 | |
| 65 | - if (! $event->isExceptionCaught()) { |
|
| 65 | + if (!$event->isExceptionCaught()) { |
|
| 66 | 66 | throw $exception; |
| 67 | 67 | } |
| 68 | 68 | } |
@@ -43,12 +43,12 @@ discard block |
||
| 43 | 43 | */ |
| 44 | 44 | protected function registerCommandBus() |
| 45 | 45 | { |
| 46 | - $this->app->singleton('League\Tactician\CommandBus', function ($app) { |
|
| 46 | + $this->app->singleton('League\Tactician\CommandBus', function($app) { |
|
| 47 | 47 | return $app->make('tactician.commandbus'); |
| 48 | 48 | }); |
| 49 | 49 | |
| 50 | - $this->app->singleton('tactician.commandbus', function ($app) { |
|
| 51 | - $middleware = array_map(function ($name) use ($app) { |
|
| 50 | + $this->app->singleton('tactician.commandbus', function($app) { |
|
| 51 | + $middleware = array_map(function($name) use ($app) { |
|
| 52 | 52 | return is_string($name) ? $app->make($name) : $name; |
| 53 | 53 | }, $app->config->get('tactician.middleware')); |
| 54 | 54 | |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | */ |
| 62 | 62 | protected function registerCommandExecuter() |
| 63 | 63 | { |
| 64 | - $this->app->singleton('TillKruss\LaravelTactician\Contracts\Executer', function ($app) { |
|
| 64 | + $this->app->singleton('TillKruss\LaravelTactician\Contracts\Executer', function($app) { |
|
| 65 | 65 | return $app->make(Executer::class); |
| 66 | 66 | }); |
| 67 | 67 | } |
@@ -71,11 +71,11 @@ discard block |
||
| 71 | 71 | */ |
| 72 | 72 | protected function registerCommandHandlerMiddleware() |
| 73 | 73 | { |
| 74 | - $this->app->bind('League\Tactician\Handler\CommandHandlerMiddleware', function ($app) { |
|
| 74 | + $this->app->bind('League\Tactician\Handler\CommandHandlerMiddleware', function($app) { |
|
| 75 | 75 | return $app->make('tactician.middleware.commandhandler'); |
| 76 | 76 | }); |
| 77 | 77 | |
| 78 | - $this->app->bind('tactician.middleware.commandhandler', function ($app) { |
|
| 78 | + $this->app->bind('tactician.middleware.commandhandler', function($app) { |
|
| 79 | 79 | return new CommandHandlerMiddleware( |
| 80 | 80 | $app->make(CommandNameExtractor::class), |
| 81 | 81 | $app->make(HandlerLocator::class), |
@@ -86,14 +86,14 @@ discard block |
||
| 86 | 86 | |
| 87 | 87 | protected function registerLoggerMiddleware() |
| 88 | 88 | { |
| 89 | - $this->app->bind('League\Tactician\Logger\LoggerMiddleware', function ($app) { |
|
| 89 | + $this->app->bind('League\Tactician\Logger\LoggerMiddleware', function($app) { |
|
| 90 | 90 | return $app->make(LoggerMiddleware::class); |
| 91 | 91 | }); |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | protected function registerCommandEventsMiddleware() |
| 95 | 95 | { |
| 96 | - $this->app->bind('League\Tactician\CommandEvents\EventMiddleware', function ($app) { |
|
| 96 | + $this->app->bind('League\Tactician\CommandEvents\EventMiddleware', function($app) { |
|
| 97 | 97 | return $app->make(EventMiddleware::class); |
| 98 | 98 | }); |
| 99 | 99 | } |
@@ -103,15 +103,15 @@ discard block |
||
| 103 | 103 | */ |
| 104 | 104 | protected function bindTacticianInterfaces() |
| 105 | 105 | { |
| 106 | - $this->app->bind('League\Tactician\Handler\Locator\HandlerLocator', function ($app) { |
|
| 106 | + $this->app->bind('League\Tactician\Handler\Locator\HandlerLocator', function($app) { |
|
| 107 | 107 | return $app->make($app->config->get('tactician.locator')); |
| 108 | 108 | }); |
| 109 | 109 | |
| 110 | - $this->app->bind('League\Tactician\Handler\MethodNameInflector\MethodNameInflector', function ($app) { |
|
| 110 | + $this->app->bind('League\Tactician\Handler\MethodNameInflector\MethodNameInflector', function($app) { |
|
| 111 | 111 | return $app->make($app->config->get('tactician.inflector')); |
| 112 | 112 | }); |
| 113 | 113 | |
| 114 | - $this->app->bind('League\Tactician\Handler\CommandNameExtractor\CommandNameExtractor', function ($app) { |
|
| 114 | + $this->app->bind('League\Tactician\Handler\CommandNameExtractor\CommandNameExtractor', function($app) { |
|
| 115 | 115 | return $app->make($app->config->get('tactician.extractor')); |
| 116 | 116 | }); |
| 117 | 117 | } |