@@ -6,5 +6,8 @@ |
||
6 | 6 | |
7 | 7 | interface Psr7RequestPrinterInterface |
8 | 8 | { |
9 | + /** |
|
10 | + * @return string |
|
11 | + */ |
|
9 | 12 | public function toString(RequestInterface $request); |
10 | 13 | } |
@@ -6,5 +6,8 @@ |
||
6 | 6 | |
7 | 7 | interface Psr7ResponsePrinterInterface |
8 | 8 | { |
9 | + /** |
|
10 | + * @return string |
|
11 | + */ |
|
9 | 12 | public function toString(ResponseInterface $response); |
10 | 13 | } |
@@ -71,7 +71,7 @@ |
||
71 | 71 | /** |
72 | 72 | * @param callable $handler |
73 | 73 | * |
74 | - * @return callable |
|
74 | + * @return \Closure |
|
75 | 75 | */ |
76 | 76 | public function __invoke(callable $handler) |
77 | 77 | { |
@@ -75,14 +75,14 @@ |
||
75 | 75 | */ |
76 | 76 | public function __invoke(callable $handler) |
77 | 77 | { |
78 | - return function ( |
|
78 | + return function( |
|
79 | 79 | RequestInterface $request, |
80 | 80 | array $options |
81 | 81 | ) use ($handler) { |
82 | 82 | $promise = $handler($request, $options); |
83 | 83 | |
84 | 84 | return $promise->then( |
85 | - function (ResponseInterface $response) use ($request) { |
|
85 | + function(ResponseInterface $response) use ($request) { |
|
86 | 86 | if (!$this->skip) { |
87 | 87 | // This needs to be done every time as it modifies itself during the validation |
88 | 88 | // meaning the second request will fail. |
@@ -17,7 +17,7 @@ |
||
17 | 17 | |
18 | 18 | foreach ($message->getHeaders() as $name => $values) { |
19 | 19 | foreach ($values as $value) { |
20 | - $string .= $name.': '.$value."\n"; |
|
20 | + $string .= $name . ': ' . $value . "\n"; |
|
21 | 21 | } |
22 | 22 | } |
23 | 23 |