Passed
Pull Request — master (#11)
by Pavel
06:35
created
Tests/JsonRpcControllerTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
                 'method'  => 'test',
94 94
             ]
95 95
         );
96
-        $response   = $controller->jsonRpcAction($request);
96
+        $response = $controller->jsonRpcAction($request);
97 97
 
98 98
         self::assertTrue($response->isSuccessful());
99 99
         self::assertEquals('{"jsonrpc":"2.0","id":"test","result":{"success":true}}', $response->getContent());
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
                 ],
113 113
             ]
114 114
         );
115
-        $response   = $controller->jsonRpcAction($request);
115
+        $response = $controller->jsonRpcAction($request);
116 116
 
117 117
         self::assertTrue($response->isSuccessful());
118 118
         self::assertEquals('[{"jsonrpc":"2.0","id":"test","result":{"success":true}}]', $response->getContent());
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
                 'method'  => 'exception',
130 130
             ]
131 131
         );
132
-        $response   = $controller->jsonRpcAction($request);
132
+        $response = $controller->jsonRpcAction($request);
133 133
 
134 134
         self::assertTrue($response->isSuccessful());
135 135
         self::assertEquals(
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
                 ],
157 157
             ]
158 158
         );
159
-        $response   = $controller->jsonRpcAction($request);
159
+        $response = $controller->jsonRpcAction($request);
160 160
 
161 161
         self::assertTrue($response->isSuccessful());
162 162
         self::assertEquals(
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
         $kernel   = $this->prophesize(KernelInterface::class);
177 177
         $resolver = $this->prophesize(ControllerResolverInterface::class);
178 178
         $resolver->getController(Argument::type(RpcRequestInterface::class))->willReturn(
179
-            function (JsonRpcRequestInterface $request) {
179
+            function(JsonRpcRequestInterface $request) {
180 180
                 if ($request->getMethod() === 'exception') {
181 181
                     throw new \LogicException('Failure!');
182 182
                 }
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
             }
186 186
         );
187 187
         $resolver->getArguments(Argument::type(RpcRequestInterface::class), Argument::any())->will(
188
-            function (array $args) {
188
+            function(array $args) {
189 189
                 return [
190 190
                     $args[0],
191 191
                 ];
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
         $evm = $this->prophesize(EventDispatcherInterface::class);
196 196
         $evm->dispatch(Argument::exact(RpcEvents::EXCEPTION), Argument::type(GetExceptionResponseEvent::class))
197 197
             ->will(
198
-                function ($args) {
198
+                function($args) {
199 199
                     /** @var GetExceptionResponseEvent $event */
200 200
                     $event = $args[1];
201 201
 
Please login to merge, or discard this patch.
Tests/JsonRpcHttpResponseTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
             'empty array'    => [[]],
25 25
             'single success' => [clone $success],
26 26
             'single failure' => [clone $error],
27
-            'mixed array'    => [[clone $success, clone $error,]],
27
+            'mixed array'    => [[clone $success, clone $error, ]],
28 28
         ];
29 29
     }
30 30
 
Please login to merge, or discard this patch.