Completed
Push — master ( be3706...2f5f8f )
by Marcel
48s
created
src/Server.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -180,7 +180,7 @@
 block discarded – undo
180 180
         try {
181 181
             /** @var ValidationResult $result */
182 182
             return $this->container->get(OpisValidator::class)->validate($data, $schema);
183
-        } catch (NotFoundExceptionInterface|ContainerExceptionInterface) {
183
+        } catch (NotFoundExceptionInterface | ContainerExceptionInterface) {
184 184
             return (new OpisValidator())->validate($data, $schema);
185 185
         }
186 186
     }
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.