Test Setup Failed
Push — master ( b1d4a5...6fc5bd )
by Daniel
13:23 queued 10:38
created
example/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
 
56 56
     public function lookup(string $methodName): ?ApiMethodInterface
57 57
     {
58
-        return $this->methods[$methodName] ?? null;
58
+        return $this->methods[ $methodName ] ?? null;
59 59
     }
60 60
 };
61 61
 
Please login to merge, or discard this patch.
src/Dispatch/MethodValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
                 'properties' => (object) [
60 60
                     'data' => $methodSchemaContent->properties->response,
61 61
                 ],
62
-                'required' => ['data']
62
+                'required' => [ 'data' ]
63 63
             ];
64 64
 
65 65
             // Validate the response against the response definition in method schema
Please login to merge, or discard this patch.
src/Endpoint.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
     private function logError(
111 111
         Throwable $e,
112 112
         UuidInterface $uuid,
113
-        array $context = []
113
+        array $context = [ ]
114 114
     ): void {
115 115
         $this->logger?->error(
116 116
             sprintf('%s (%d)', $e->getMessage(), $e->getCode()),
Please login to merge, or discard this patch.
src/Exception/InternalException.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,8 +15,8 @@
 block discarded – undo
15 15
     public function __construct(
16 16
         string $message,
17 17
         int $code,
18
-        null|Throwable $previous = null,
19
-        private readonly array $context = []
18
+        null | Throwable $previous = null,
19
+        private readonly array $context = [ ]
20 20
     ) {
21 21
         parent::__construct($message, $code, $previous);
22 22
     }
Please login to merge, or discard this patch.