@@ -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 | } |
@@ -70,7 +70,7 @@ |
||
70 | 70 | $json = []; |
71 | 71 | $json['protocol_version'] = $request->getProtocolVersion(); |
72 | 72 | $json['method'] = $request->getMethod(); |
73 | - $json['uri'] = (string)$request->getUri(); |
|
73 | + $json['uri'] = (string) $request->getUri(); |
|
74 | 74 | $json['headers'] = $request->getHeaders(); |
75 | 75 | $json['body'] = base64_encode($request->getBody()->getContents()); |
76 | 76 |
@@ -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 | } |