@@ -28,12 +28,12 @@ discard block |
||
| 28 | 28 | */ |
| 29 | 29 | public function handleError(\Throwable $exception) |
| 30 | 30 | { |
| 31 | - $next = function () { |
|
| 31 | + $next = function() { |
|
| 32 | 32 | // NO-OP |
| 33 | 33 | }; |
| 34 | 34 | |
| 35 | 35 | foreach ($this->middleware as $middleware) { |
| 36 | - $next = function (\Throwable $exception) use ($middleware, $next) { |
|
| 36 | + $next = function(\Throwable $exception) use ($middleware, $next) { |
|
| 37 | 37 | return $middleware->handleError($exception, $next); |
| 38 | 38 | }; |
| 39 | 39 | } |
@@ -46,12 +46,12 @@ discard block |
||
| 46 | 46 | */ |
| 47 | 47 | public function handleExecutionError(ExecutionException $exception, ExecutionContext $context) |
| 48 | 48 | { |
| 49 | - $next = function () { |
|
| 49 | + $next = function() { |
|
| 50 | 50 | // NO-OP |
| 51 | 51 | }; |
| 52 | 52 | |
| 53 | 53 | foreach ($this->middleware as $middleware) { |
| 54 | - $next = function (ExecutionException $exception, ExecutionContext $context) use ($middleware, $next) { |
|
| 54 | + $next = function(ExecutionException $exception, ExecutionContext $context) use ($middleware, $next) { |
|
| 55 | 55 | return $middleware->handleExecutionError($exception, $context, $next); |
| 56 | 56 | }; |
| 57 | 57 | } |