@@ -8,6 +8,6 @@ |
||
8 | 8 | { |
9 | 9 | public function __construct($json, $field) |
10 | 10 | { |
11 | - parent::__construct('"' . \json_encode($json) . '" is not an encoded PSR-7 uploaded file, field "' . $field . '" is missing'); |
|
11 | + parent::__construct('"'.\json_encode($json).'" is not an encoded PSR-7 uploaded file, field "'.$field.'" is missing'); |
|
12 | 12 | } |
13 | 13 | } |
@@ -8,6 +8,6 @@ |
||
8 | 8 | { |
9 | 9 | public function __construct($json, $field) |
10 | 10 | { |
11 | - parent::__construct('"' . \json_encode($json) . '" is not an encoded PSR-7 server request, field "' . $field . '" is missing'); |
|
11 | + parent::__construct('"'.\json_encode($json).'" is not an encoded PSR-7 server request, field "'.$field.'" is missing'); |
|
12 | 12 | } |
13 | 13 | } |
@@ -8,6 +8,6 @@ |
||
8 | 8 | { |
9 | 9 | public function __construct($json, $field) |
10 | 10 | { |
11 | - parent::__construct('"' . \json_encode($json) . '" is not an encoded PSR-7 request, field "' . $field . '" is missing'); |
|
11 | + parent::__construct('"'.\json_encode($json).'" is not an encoded PSR-7 request, field "'.$field.'" is missing'); |
|
12 | 12 | } |
13 | 13 | } |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | $json = []; |
73 | 73 | $json['protocol_version'] = $request->getProtocolVersion(); |
74 | 74 | $json['method'] = $request->getMethod(); |
75 | - $json['uri'] = (string)$request->getUri(); |
|
75 | + $json['uri'] = (string) $request->getUri(); |
|
76 | 76 | $json['headers'] = $request->getHeaders(); |
77 | 77 | $json['body'] = \base64_encode($request->getBody()->getContents()); |
78 | 78 | |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | $json = []; |
171 | 171 | $json['protocol_version'] = $request->getProtocolVersion(); |
172 | 172 | $json['method'] = $request->getMethod(); |
173 | - $json['uri'] = (string)$request->getUri(); |
|
173 | + $json['uri'] = (string) $request->getUri(); |
|
174 | 174 | $json['query_params'] = $request->getQueryParams(); |
175 | 175 | $json['cookie_params'] = $request->getCookieParams(); |
176 | 176 | $json['server_params'] = $request->getServerParams(); |
@@ -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, $field) |
10 | 10 | { |
11 | - parent::__construct('"' . \json_encode($json) . '" is not an encoded PSR-7 response, field "' . $field . '" is missing'); |
|
11 | + parent::__construct('"'.\json_encode($json).'" is not an encoded PSR-7 response, field "'.$field.'" is missing'); |
|
12 | 12 | } |
13 | 13 | } |