@@ -3,5 +3,5 @@ |
||
| 3 | 3 | namespace WyriHaximus\React; |
| 4 | 4 | |
| 5 | 5 | if (!function_exists('WyriHaximus\psr7_response_json_encode')) { |
| 6 | - require __DIR__ . '/functions.php'; |
|
| 6 | + require __DIR__.'/functions.php'; |
|
| 7 | 7 | } |
@@ -8,6 +8,6 @@ |
||
| 8 | 8 | { |
| 9 | 9 | public function __construct($json) |
| 10 | 10 | { |
| 11 | - parent::__construct('"' . json_encode($json) . '"" is not an encoded PSR-7 response'); |
|
| 11 | + parent::__construct('"'.json_encode($json).'"" is not an encoded PSR-7 response'); |
|
| 12 | 12 | } |
| 13 | 13 | } |
@@ -8,6 +8,6 @@ |
||
| 8 | 8 | { |
| 9 | 9 | public function __construct($json) |
| 10 | 10 | { |
| 11 | - parent::__construct('"' . json_encode($json) . '"" is not an encoded PSR-7 request'); |
|
| 11 | + parent::__construct('"'.json_encode($json).'"" is not an encoded PSR-7 request'); |
|
| 12 | 12 | } |
| 13 | 13 | } |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | $json = []; |
| 74 | 74 | $json['protocol_version'] = $request->getProtocolVersion(); |
| 75 | 75 | $json['method'] = $request->getMethod(); |
| 76 | - $json['uri'] = (string)$request->getUri(); |
|
| 76 | + $json['uri'] = (string) $request->getUri(); |
|
| 77 | 77 | $json['headers'] = $request->getHeaders(); |
| 78 | 78 | $json['body'] = base64_encode($request->getBody()->getContents()); |
| 79 | 79 | |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | $json = []; |
| 144 | 144 | $json['protocol_version'] = $request->getProtocolVersion(); |
| 145 | 145 | $json['method'] = $request->getMethod(); |
| 146 | - $json['uri'] = (string)$request->getUri(); |
|
| 146 | + $json['uri'] = (string) $request->getUri(); |
|
| 147 | 147 | $json['query_params'] = $request->getQueryParams(); |
| 148 | 148 | $json['cookie_params'] = $request->getCookieParams(); |
| 149 | 149 | $json['server_params'] = $request->getServerParams(); |