Completed
Push — master ( ecbabc...0be81f )
by Marcel
38s
created
src/Internal/Input.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -31,23 +31,23 @@
 block discarded – undo
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 33
         if (!self::$schema instanceof stdClass) {
34
-            self::$schema = (object)[
34
+            self::$schema = (object) [
35 35
                 '$schema' => 'https://json-schema.org/draft-07/schema#',
36 36
                 'description' => 'JSON-RPC 2.0 single request schema',
37 37
                 'type' => 'object',
38 38
                 'required' => ['jsonrpc', 'method'],
39 39
                 'additionalProperties' => false,
40
-                'properties' => (object)[
41
-                    'jsonrpc' => (object)[
40
+                'properties' => (object) [
41
+                    'jsonrpc' => (object) [
42 42
                         'enum' => ['2.0']
43 43
                     ],
44
-                    'method' => (object)[
44
+                    'method' => (object) [
45 45
                         'type' => 'string'
46 46
                     ],
47
-                    'params' => (object)[
47
+                    'params' => (object) [
48 48
                         'type' => ['array', 'object']
49 49
                     ],
50
-                    'id' => (object)[
50
+                    'id' => (object) [
51 51
                         'type' => ['integer', 'string']
52 52
                     ],
53 53
                 ]
Please login to merge, or discard this patch.
src/Server.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@
 block discarded – undo
162 162
     {
163 163
         try {
164 164
             return $this->container->get(OpisValidator::class)->validate($data, $schema)->isValid();
165
-        } catch (NotFoundExceptionInterface|ContainerExceptionInterface $e) {
165
+        } catch (NotFoundExceptionInterface | ContainerExceptionInterface $e) {
166 166
             return Validator::validate($schema, $data);
167 167
         }
168 168
     }
Please login to merge, or discard this patch.