Passed
Pull Request — master (#17)
by Mihail
15:10
created
Tests/HTTPErrorSerializationTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,10 +50,10 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Tests/HeaderTraitTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
Tests/ServerRequestTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Tests/ClientRequestTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
ValidatableTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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()) {
Please login to merge, or discard this patch.