@@ -31,23 +31,23 @@ |
||
| 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 | ] |