Passed
Push — master ( 433ac3...7aeedc )
by Adrien
13:53
created
tests/Middleware/SignedQueryMiddlewareTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     /**
28 28
      * @dataProvider dataProviderQuery
29 29
      */
30
-    public function testRequiredSignedQuery(array $keys, string $body, null|array $parsedBody, string $signature, string $expectExceptionMessage = '', string $ip = ''): void
30
+    public function testRequiredSignedQuery(array $keys, string $body, null | array $parsedBody, string $signature, string $expectExceptionMessage = '', string $ip = ''): void
31 31
     {
32 32
         $this->process($keys, true, $ip, $body, $parsedBody, $signature, $expectExceptionMessage);
33 33
     }
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     /**
36 36
      * @dataProvider dataProviderQuery
37 37
      */
38
-    public function testNonRequiredSignedQuery(array $keys, string $body, null|array $parsedBody, string $signature): void
38
+    public function testNonRequiredSignedQuery(array $keys, string $body, null | array $parsedBody, string $signature): void
39 39
     {
40 40
         $this->process($keys, false, '', $body, $parsedBody, $signature, '');
41 41
     }
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         new SignedQueryMiddleware([], []);
48 48
     }
49 49
 
50
-    private function process(array $keys, bool $required, string $ip, string $body, null|array $parsedBody, string $signature, string $expectExceptionMessage): void
50
+    private function process(array $keys, bool $required, string $ip, string $body, null | array $parsedBody, string $signature, string $expectExceptionMessage): void
51 51
     {
52 52
         $request = new ServerRequest(['REMOTE_ADDR' => $ip]);
53 53
         $request = $request->withBody(new CallbackStream(fn () => $body))->withParsedBody($parsedBody);
Please login to merge, or discard this patch.