Completed
Pull Request — master (#25)
by Tobias
03:29
created
src/Infra/Rpc/Request/CommonBody.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
     public function withOptions(array $options): Body
129 129
     {
130 130
         $new          = clone $this;
131
-        $new->options = (object)$options;
131
+        $new->options = (object) $options;
132 132
 
133 133
         return $new;
134 134
     }
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
     public function withAddedOptions(array $options): Body
140 140
     {
141 141
         $new          = clone $this;
142
-        $new->options = (object)array_merge($options, (array)$new->options);
142
+        $new->options = (object) array_merge($options, (array) $new->options);
143 143
 
144 144
         return $new;
145 145
     }
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
     public function jsonSerialize(): array
159 159
     {
160 160
         return [
161
-            'method' => $this->method . ($this->methodVersion !== null ? sprintf('/%s', $this->methodVersion) : ''),
161
+            'method' => $this->method.($this->methodVersion !== null ? sprintf('/%s', $this->methodVersion) : ''),
162 162
             'params' => [$this->arguments, $this->options],
163 163
             'id'     => $this->id,
164 164
         ];
Please login to merge, or discard this patch.