Completed
Push — master ( 475d70...7406ab )
by Denis
02:44
created
src/PhpJsonRpc/Server/RequestParser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/PhpJsonRpc/Client.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -171,10 +171,10 @@
 block discarded – undo
171 171
         foreach ($results as $result) {
172 172
             if ($result instanceof ResultUnit) {
173 173
                 /** @var ResultUnit $result */
174
-                $resultSequence[ $callMap[$result->getId()] ] = $result->getResult();
174
+                $resultSequence[$callMap[$result->getId()]] = $result->getResult();
175 175
             } elseif ($result instanceof ResultError) {
176 176
                 /** @var ResultError $result */
177
-                $resultSequence[ $callMap[$result->getId()] ] = null;
177
+                $resultSequence[$callMap[$result->getId()]] = null;
178 178
             }
179 179
         }
180 180
         ksort($resultSequence);
Please login to merge, or discard this patch.
src/PhpJsonRpc/Client/AbstractTransport.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.