Completed
Push — master ( 2f5f8f...9ea876 )
by Marcel
38s
created
src/Server.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@
 block discarded – undo
175 175
     {
176 176
         try {
177 177
             return $this->container->get(OpisValidator::class)->validate($data, $schema);
178
-        } catch (NotFoundExceptionInterface|ContainerExceptionInterface) {
178
+        } catch (NotFoundExceptionInterface | ContainerExceptionInterface) {
179 179
             return (new OpisValidator())->validate($data, $schema);
180 180
         }
181 181
     }
Please login to merge, or discard this patch.
src/Success.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 {
9 9
     private mixed $result;
10 10
 
11
-    public function __construct(int|string|null $id, mixed $result = null)
11
+    public function __construct(int | string | null $id, mixed $result = null)
12 12
     {
13 13
         $this->id = $id;
14 14
         $this->result = $result;
Please login to merge, or discard this patch.
src/Response.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,5 +6,5 @@
 block discarded – undo
6 6
 
7 7
 abstract class Response implements \JsonSerializable
8 8
 {
9
-    protected int|string|null $id;
9
+    protected int | string | null $id;
10 10
 }
Please login to merge, or discard this patch.
src/Error.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,11 +6,11 @@
 block discarded – undo
6 6
 
7 7
 final class Error extends Response
8 8
 {
9
-    private int|string|null $code;
9
+    private int | string | null $code;
10 10
     private string $message;
11 11
     private mixed $data;
12 12
 
13
-    public function __construct(int $code, string $message, mixed $data = null, int|string|null $id = null)
13
+    public function __construct(int $code, string $message, mixed $data = null, int | string | null $id = null)
14 14
     {
15 15
         $this->code = $code;
16 16
         $this->message = $message;
Please login to merge, or discard this patch.
src/Request.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@  discard block
 block discarded – undo
11 11
 final class Request implements \JsonSerializable
12 12
 {
13 13
     private mixed $raw;
14
-    private int|string|null $id;
14
+    private int | string | null $id;
15 15
     private string $method;
16
-    private stdClass|array|null $params;
16
+    private stdClass | array | null $params;
17 17
 
18 18
     public function __construct(Input $input)
19 19
     {
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
         $this->params = $this->raw->params ?? null;
27 27
     }
28 28
 
29
-    public function id(): int|string|null
29
+    public function id(): int | string | null
30 30
     {
31 31
         return $this->id;
32 32
     }
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
         return $this->method;
37 37
     }
38 38
 
39
-    public function params(): stdClass|array|null
39
+    public function params(): stdClass | array | null
40 40
     {
41 41
         return $this->params;
42 42
     }
Please login to merge, or discard this patch.