@@ -39,7 +39,7 @@ |
||
| 39 | 39 | |
| 40 | 40 | if (!empty($middleware)) { |
| 41 | 41 | foreach ($middleware as $queryBusMiddleware) { |
| 42 | - $callable = function ($query) use ($queryBusMiddleware) { |
|
| 42 | + $callable = function($query) use ($queryBusMiddleware) { |
|
| 43 | 43 | return $queryBusMiddleware->__invoke($query); |
| 44 | 44 | }; |
| 45 | 45 | |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | foreach ($middleware as $commandBusMiddleware) { |
| 44 | - $callable = function ($command) use ($commandBusMiddleware) { |
|
| 44 | + $callable = function($command) use ($commandBusMiddleware) { |
|
| 45 | 45 | return $commandBusMiddleware($command); |
| 46 | 46 | }; |
| 47 | 47 | |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | foreach ($middleware as $eventBusMiddleware) { |
| 47 | - $callable = function ($event) use ($eventBusMiddleware) { |
|
| 47 | + $callable = function($event) use ($eventBusMiddleware) { |
|
| 48 | 48 | return $eventBusMiddleware($event); |
| 49 | 49 | }; |
| 50 | 50 | |