@@ -30,7 +30,7 @@ |
||
| 30 | 30 | { |
| 31 | 31 | $response = call_user_func($this->callable, $request); |
| 32 | 32 | |
| 33 | - if(!$response instanceof ResponseInterface) { |
|
| 33 | + if (!$response instanceof ResponseInterface) { |
|
| 34 | 34 | throw new \LogicException('callable must return an instance of Psr\Http\Message\ResponseInterface.'); |
| 35 | 35 | } |
| 36 | 36 | |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | { |
| 34 | 34 | $response = call_user_func($this->callable, $request, $delegate); |
| 35 | 35 | |
| 36 | - if(!$response instanceof ResponseInterface) { |
|
| 36 | + if (!$response instanceof ResponseInterface) { |
|
| 37 | 37 | throw new \LogicException('callable must return an instance of \Psr\Http\Message\ResponseInterface.'); |
| 38 | 38 | } |
| 39 | 39 | |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | */ |
| 48 | 48 | public function middleware(array $entries) |
| 49 | 49 | { |
| 50 | - foreach($entries as $entry) { |
|
| 50 | + foreach ($entries as $entry) { |
|
| 51 | 51 | $this->middlewareEntries[] = $entry; |
| 52 | 52 | } |
| 53 | 53 | return $this; |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | */ |
| 59 | 59 | public function build() |
| 60 | 60 | { |
| 61 | - if(is_null($this->coreDelegate)) { |
|
| 61 | + if (is_null($this->coreDelegate)) { |
|
| 62 | 62 | throw new \LogicException('Please call Jugoya::from() and set a core delegate before build an HTTP Application.'); |
| 63 | 63 | } |
| 64 | 64 | |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | */ |
| 81 | 81 | private function resolveDelegate($delegate) |
| 82 | 82 | { |
| 83 | - if($delegate instanceof DelegateInterface) { |
|
| 83 | + if ($delegate instanceof DelegateInterface) { |
|
| 84 | 84 | return $delegate; |
| 85 | 85 | } |
| 86 | 86 | |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | */ |
| 24 | 24 | public function __construct(array $queue) |
| 25 | 25 | { |
| 26 | - foreach($queue as $middleware) { |
|
| 26 | + foreach ($queue as $middleware) { |
|
| 27 | 27 | $this->add($middleware); |
| 28 | 28 | } |
| 29 | 29 | } |