Passed
Pull Request — master (#11)
by Pavel
06:55
created
DependencyInjection/Configuration.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,9 +15,9 @@
 block discarded – undo
15 15
         $root    = $builder->root('jsonrpc_server');
16 16
 
17 17
         $root->children()
18
-             ->scalarNode('view_listener')
19
-             ->info('View listener service ID')
20
-             ->defaultValue('jsonrpc_server.builtin_adapter.view_listener');
18
+                ->scalarNode('view_listener')
19
+                ->info('View listener service ID')
20
+                ->defaultValue('jsonrpc_server.builtin_adapter.view_listener');
21 21
 
22 22
         $adapters = $root->children()->arrayNode('adapters');
23 23
         $this->configureJms($adapters);
Please login to merge, or discard this patch.
DependencyInjection/BankiruJsonRpcServerExtension.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -28,15 +28,15 @@
 block discarded – undo
28 28
 
29 29
         if (!empty($config['view_listener'])) {
30 30
             $container->getDefinition($config['view_listener'])
31
-                      ->setPublic(true)
32
-                      ->addTag(
33
-                          'kernel.event_listener',
34
-                          [
35
-                              'event'    => RpcEvents::VIEW,
36
-                              'method'   => 'onPlainResponse',
37
-                              'priority' => -254,
38
-                          ]
39
-                      );
31
+                        ->setPublic(true)
32
+                        ->addTag(
33
+                            'kernel.event_listener',
34
+                            [
35
+                                'event'    => RpcEvents::VIEW,
36
+                                'method'   => 'onPlainResponse',
37
+                                'priority' => -254,
38
+                            ]
39
+                        );
40 40
         }
41 41
     }
42 42
 
Please login to merge, or discard this patch.
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.