@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | } |
79 | 79 | |
80 | 80 | $headerValid = array_key_exists('jsonrpc', $payload) && $payload['jsonrpc'] === '2.0'; |
81 | - $methodValid = array_key_exists('method', $payload) && is_string($payload['method']); |
|
81 | + $methodValid = array_key_exists('method', $payload) && is_string($payload['method']); |
|
82 | 82 | $idValid = array_key_exists('id', $payload); |
83 | 83 | |
84 | 84 | // This member MAY be omitted |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | } |
102 | 102 | |
103 | 103 | $headerValid = array_key_exists('jsonrpc', $payload) && $payload['jsonrpc'] === '2.0'; |
104 | - $methodValid = array_key_exists('method', $payload) && is_string($payload['method']); |
|
104 | + $methodValid = array_key_exists('method', $payload) && is_string($payload['method']); |
|
105 | 105 | $idValid = !array_key_exists('id', $payload); |
106 | 106 | |
107 | 107 | // This member MAY be omitted |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | */ |
18 | 18 | public function __construct() |
19 | 19 | { |
20 | - $this->preRequest = Interceptor::createBase(); |
|
20 | + $this->preRequest = Interceptor::createBase(); |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | /** |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | */ |
38 | 38 | public function request(string $request): string |
39 | 39 | { |
40 | - $request = $this->preRequest($request); |
|
40 | + $request = $this->preRequest($request); |
|
41 | 41 | return $this->send($request); |
42 | 42 | } |
43 | 43 |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | /** |
29 | 29 | * Client will return null if server error happened |
30 | 30 | */ |
31 | - const ERRMODE_SILENT = 0; |
|
31 | + const ERRMODE_SILENT = 0; |
|
32 | 32 | |
33 | 33 | /** |
34 | 34 | * Client will throw exception if server error happened |
@@ -249,10 +249,10 @@ discard block |
||
249 | 249 | foreach ($results as $result) { |
250 | 250 | if ($result instanceof Result) { |
251 | 251 | /** @var Result $result */ |
252 | - $resultSequence[ $callMap[$result->getId()] ] = $result->getResult(); |
|
252 | + $resultSequence[$callMap[$result->getId()]] = $result->getResult(); |
|
253 | 253 | } elseif ($result instanceof Error) { |
254 | 254 | /** @var Error $result */ |
255 | - $resultSequence[ $callMap[$result->getId()] ] = $this->serverErrorMode === self::ERRMODE_EXCEPTION ? $result->getBaseException() : null; |
|
255 | + $resultSequence[$callMap[$result->getId()]] = $this->serverErrorMode === self::ERRMODE_EXCEPTION ? $result->getBaseException() : null; |
|
256 | 256 | } |
257 | 257 | } |
258 | 258 | ksort($resultSequence); |