Completed
Push — master ( 9cb921...be3706 )
by Marcel
41s
created
src/Server.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@
 block discarded – undo
182 182
         try {
183 183
             /** @var ValidationResult $result */
184 184
             return $this->container->get(OpisValidator::class)->validate($data, $schema);
185
-        } catch (NotFoundExceptionInterface|ContainerExceptionInterface) {
185
+        } catch (NotFoundExceptionInterface | ContainerExceptionInterface) {
186 186
             return (new OpisValidator)->validate($data, $schema);
187 187
         }
188 188
     }
Please login to merge, or discard this patch.
src/Internal/Input.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -30,23 +30,23 @@
 block discarded – undo
30 30
 
31 31
         // This is the minimal schema that all incoming payloads must
32 32
         // conform to in order to be considered well-formed JSON-RPC requests.
33
-        self::$schema = (object)[
33
+        self::$schema = (object) [
34 34
             '$schema' => 'https://json-schema.org/draft-07/schema#',
35 35
             'description' => 'JSON-RPC 2.0 single request schema',
36 36
             'type' => 'object',
37 37
             'required' => ['jsonrpc', 'method'],
38 38
             'additionalProperties' => false,
39
-            'properties' => (object)[
40
-                'jsonrpc' => (object)[
39
+            'properties' => (object) [
40
+                'jsonrpc' => (object) [
41 41
                     'enum' => ['2.0']
42 42
                 ],
43
-                'method' => (object)[
43
+                'method' => (object) [
44 44
                     'type' => 'string'
45 45
                 ],
46
-                'params' => (object)[
46
+                'params' => (object) [
47 47
                     'type' => ['array', 'object']
48 48
                 ],
49
-                'id' => (object)[
49
+                'id' => (object) [
50 50
                     'type' => ['integer', 'string']
51 51
                 ],
52 52
             ]
Please login to merge, or discard this patch.