@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | |
| 52 | 52 | // default responders |
| 53 | 53 | $this->responders = [ |
| 54 | - 'json' => function ($data) { |
|
| 54 | + 'json' => function($data) { |
|
| 55 | 55 | if ($data instanceof DataResponse) { |
| 56 | 56 | $response = new JSONResponse( |
| 57 | 57 | $data->getData(), |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | return $responder($response); |
| 139 | 139 | } |
| 140 | 140 | throw new \DomainException('No responder registered for format ' |
| 141 | - . $format . '!'); |
|
| 141 | + . $format.'!'); |
|
| 142 | 142 | } |
| 143 | 143 | |
| 144 | 144 | public function isResponderRegistered(string $responder): bool { |