@@ -50,10 +50,10 @@ |
||
| 50 | 50 | headers: ['X-Test' => 'true'], |
| 51 | 51 | ); |
| 52 | 52 | |
| 53 | - $this->assertJson((string) $err); |
|
| 53 | + $this->assertJson((string)$err); |
|
| 54 | 54 | $this->assertJsonStringEqualsJsonString( |
| 55 | 55 | '{"status":200,"instance":"/test","detail":"A unit test for serializing the HTTPError object","title":"Test Error","type":"/test/errors"}', |
| 56 | - (string) $err, |
|
| 56 | + (string)$err, |
|
| 57 | 57 | 'headers are not serialized as expected'); |
| 58 | 58 | } |
| 59 | 59 | |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | $this->SUT->withHeader('foo', ['bar', 1]); |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | - public function test_set_header_line_with_invalid_scalar_value() |
|
| 56 | + public function test_set_header_line_with_invalid_scalar_value() |
|
| 57 | 57 | { |
| 58 | 58 | $this->expectException(\InvalidArgumentException::class); |
| 59 | 59 | $this->expectExceptionCode(HttpStatus::BAD_REQUEST); |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | $_SERVER['HTTP_CONTENT_TYPE'] = 'application/x-www-form-urlencoded'; |
| 131 | 131 | $_POST = ['key' => 'value']; |
| 132 | 132 | |
| 133 | - $request = new ServerRequest; |
|
| 133 | + $request = new ServerRequest; |
|
| 134 | 134 | $actual = $request->withParsedBody(['key' => 'value']); |
| 135 | 135 | |
| 136 | 136 | $this->assertNotSame($request, $actual, |
@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | $_SERVER['REQUEST_METHOD'] = 'POST'; |
| 291 | 291 | $_SERVER['REQUEST_URI'] = ''; |
| 292 | 292 | |
| 293 | - $_POST = []; |
|
| 293 | + $_POST = []; |
|
| 294 | 294 | unset($this->SUT); |
| 295 | 295 | } |
| 296 | 296 | } |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | |
| 14 | 14 | class ClientRequestTest extends TestCase |
| 15 | 15 | { |
| 16 | - private ClientRequest|Request $SUT; |
|
| 16 | + private ClientRequest | Request $SUT; |
|
| 17 | 17 | |
| 18 | 18 | public function test_defaults() |
| 19 | 19 | { |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | */ |
| 21 | 21 | trait ValidatableTrait |
| 22 | 22 | { |
| 23 | - public function validate(HttpInputValidator $validator, ?Data &$input = null): ?Response |
|
| 23 | + public function validate(HttpInputValidator $validator, ?Data & $input = null): ?Response |
|
| 24 | 24 | { |
| 25 | 25 | $input ??= new Immutable($this->getParsedBody() ?? []); |
| 26 | 26 | if (0 === $input->count()) { |