|
@@ -27,12 +27,12 @@ |
|
|
block discarded – undo |
|
27
|
27
|
|
|
28
|
28
|
private function createExecutionChain($middlewareList) |
|
29
|
29
|
{ |
|
30
|
|
- $lastCallable = function () {}; // Last callable is a NO-OP |
|
|
30
|
+ $lastCallable = function() {}; // Last callable is a NO-OP |
|
31
|
31
|
while ($middleware = array_pop($middlewareList)) { |
|
32
|
|
- if (! $middleware instanceof ErrorHandlerMiddlewareInterface) { |
|
|
32
|
+ if (!$middleware instanceof ErrorHandlerMiddlewareInterface) { |
|
33
|
33
|
throw InvalidErrorHandlerMiddlewareException::forMiddleware($middleware); |
|
34
|
34
|
} |
|
35
|
|
- $lastCallable = function ($error, ExecutionContext $executionContext) use ($middleware, $lastCallable) { |
|
|
35
|
+ $lastCallable = function($error, ExecutionContext $executionContext) use ($middleware, $lastCallable) { |
|
36
|
36
|
return $middleware->execute($error, $executionContext, $lastCallable); |
|
37
|
37
|
}; |
|
38
|
38
|
} |
Please login to merge, or discard this patch.