Test Failed
Pull Request — master (#11)
by Pavel
08:20
created
Tests/JsonRpcControllerTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
             '/',
109 109
             $content
110 110
         );
111
-        $response   = $controller->jsonRpcAction($request);
111
+        $response = $controller->jsonRpcAction($request);
112 112
 
113 113
         self::assertInstanceOf(JsonRpcHttpResponse::class, $response);
114 114
         self::assertTrue($response->isSuccessful());
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
                 'method'  => 'exception',
127 127
             ]
128 128
         );
129
-        $response   = $controller->jsonRpcAction($request);
129
+        $response = $controller->jsonRpcAction($request);
130 130
 
131 131
         self::assertTrue($response->isSuccessful());
132 132
         self::assertEquals(
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
                 ],
154 154
             ]
155 155
         );
156
-        $response   = $controller->jsonRpcAction($request);
156
+        $response = $controller->jsonRpcAction($request);
157 157
 
158 158
         self::assertTrue($response->isSuccessful());
159 159
         self::assertEquals(
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
         $kernel   = $this->prophesize(KernelInterface::class);
180 180
         $resolver = $this->prophesize(ControllerResolverInterface::class);
181 181
         $resolver->getController(Argument::type(RpcRequestInterface::class))->willReturn(
182
-            function (JsonRpcRequestInterface $request) {
182
+            function(JsonRpcRequestInterface $request) {
183 183
                 if ($request->getMethod() === 'exception') {
184 184
                     throw new \LogicException('Failure!');
185 185
                 }
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
             }
189 189
         );
190 190
         $resolver->getArguments(Argument::type(RpcRequestInterface::class), Argument::any())->will(
191
-            function (array $args) {
191
+            function(array $args) {
192 192
                 return [
193 193
                     $args[0],
194 194
                 ];
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
         $evm = $this->prophesize(EventDispatcherInterface::class);
199 199
         $evm->dispatch(Argument::exact(RpcEvents::EXCEPTION), Argument::type(GetExceptionResponseEvent::class))
200 200
             ->will(
201
-                function ($args) {
201
+                function($args) {
202 202
                     /** @var GetExceptionResponseEvent $event */
203 203
                     $event = $args[1];
204 204
 
Please login to merge, or discard this patch.
DependencyInjection/BankiruJsonRpcServerExtension.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -28,16 +28,16 @@
 block discarded – undo
28 28
 
29 29
         if ($this->isConfigEnabled($container, $config['normalizer_listener'])) {
30 30
             $container->register('jsonrpc_server.response_listener.normalizer', NormalizingListener::class)
31
-                      ->setPublic(true)
32
-                      ->setArguments([new Reference($config['normalizer_listener']['normalizer'])])
33
-                      ->addTag(
34
-                          'kernel.event_listener',
35
-                          [
36
-                              'event'    => RpcEvents::VIEW,
37
-                              'method'   => 'onPlainResponse',
38
-                              'priority' => 255,
39
-                          ]
40
-                      );
31
+                        ->setPublic(true)
32
+                        ->setArguments([new Reference($config['normalizer_listener']['normalizer'])])
33
+                        ->addTag(
34
+                            'kernel.event_listener',
35
+                            [
36
+                                'event'    => RpcEvents::VIEW,
37
+                                'method'   => 'onPlainResponse',
38
+                                'priority' => 255,
39
+                            ]
40
+                        );
41 41
         }
42 42
     }
43 43
 
Please login to merge, or discard this patch.