Completed
Push — master ( 4a7116...8340e0 )
by Pavel
11:00
created
bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 /**
7 7
  * @var ClassLoader $loader
8 8
  */
9
-$loader = require __DIR__.'/vendor/autoload.php';
9
+$loader = require __DIR__ . '/vendor/autoload.php';
10 10
 
11 11
 AnnotationRegistry::registerLoader([$loader, 'loadClass']);
12 12
 
Please login to merge, or discard this patch.
Exception/RpcMethodNotFoundException.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
             );
37 37
     }
38 38
 
39
-    /** @return JsonRpcErrorInterface */
39
+    /** @return JsonRpcRequestInterface */
40 40
     public function getJsonRpcError()
41 41
     {
42 42
         return $this->error;
Please login to merge, or discard this patch.
Controller/JsonRpcControllerNameParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,6 +18,6 @@
 block discarded – undo
18 18
     /** {@inheritdoc} */
19 19
     protected function guessControllerClassName(BundleInterface $bundle, $controller)
20 20
     {
21
-        return $bundle->getNamespace().'\\JsonRpc\\'.$controller.'Controller';
21
+        return $bundle->getNamespace() . '\\JsonRpc\\' . $controller . 'Controller';
22 22
     }
23 23
 }
Please login to merge, or discard this patch.
Test/Tests/RouterTest.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,9 +27,11 @@
 block discarded – undo
27 27
     {
28 28
         $client = self::createClient();
29 29
 
30
-        foreach (['test', 'test_private'] as $endpoint) /** @var MethodCollection $collection */ {
30
+        foreach (['test', 'test_private'] as $endpoint) {
31
+            /** @var MethodCollection $collection */ {
31 32
             /** @var Router $router */
32 33
             $router = $client->getContainer()->get('rpc.endpoint_router.' . $endpoint);
34
+        }
33 35
             self::assertNotNull($router);
34 36
             $collection = $router->getCollection();
35 37
             self::assertNotNull($router);
Please login to merge, or discard this patch.
Listener/NotificationResponseListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      */
24 24
     public function onNullResponse(ViewEvent $event)
25 25
     {
26
-        $request  = $event->getRequest();
26
+        $request = $event->getRequest();
27 27
 
28 28
         if (!$request instanceof JsonRpcRequestInterface) {
29 29
             return;
Please login to merge, or discard this patch.
DependencyInjection/JsonRpcExtension.php 1 patch
Indentation   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -34,42 +34,42 @@
 block discarded – undo
34 34
         }
35 35
 
36 36
         $container->register('jms_serializer.handler.relation', RelationsHandler::class)
37
-                  ->setArguments([new Reference('doctrine.orm.entity_manager')])
38
-                  ->addTag(
39
-                      'jms_serializer.handler',
40
-                      [
41
-                          'type'      => 'Relation',
42
-                          'direction' => 'serialization',
43
-                          'format'    => 'json',
44
-                          'method'    => 'serializeRelation',
45
-                      ]
46
-                  )
47
-                  ->addTag(
48
-                      'jms_serializer.handler',
49
-                      [
50
-                          'type'      => 'Relation',
51
-                          'direction' => 'deserialization',
52
-                          'format'    => 'json',
53
-                          'method'    => 'deserializeRelation',
54
-                      ]
55
-                  )
56
-                  ->addTag(
57
-                      'jms_serializer.handler',
58
-                      [
59
-                          'type'      => 'Relation<?>',
60
-                          'direction' => 'serialization',
61
-                          'format'    => 'json',
62
-                          'method'    => 'serializeRelation',
63
-                      ]
64
-                  )
65
-                  ->addTag(
66
-                      'jms_serializer.handler',
67
-                      [
68
-                          'type'      => 'Relation<?>',
69
-                          'direction' => 'deserialization',
70
-                          'format'    => 'json',
71
-                          'method'    => 'deserializeRelation',
72
-                      ]
73
-                  );
37
+                    ->setArguments([new Reference('doctrine.orm.entity_manager')])
38
+                    ->addTag(
39
+                        'jms_serializer.handler',
40
+                        [
41
+                            'type'      => 'Relation',
42
+                            'direction' => 'serialization',
43
+                            'format'    => 'json',
44
+                            'method'    => 'serializeRelation',
45
+                        ]
46
+                    )
47
+                    ->addTag(
48
+                        'jms_serializer.handler',
49
+                        [
50
+                            'type'      => 'Relation',
51
+                            'direction' => 'deserialization',
52
+                            'format'    => 'json',
53
+                            'method'    => 'deserializeRelation',
54
+                        ]
55
+                    )
56
+                    ->addTag(
57
+                        'jms_serializer.handler',
58
+                        [
59
+                            'type'      => 'Relation<?>',
60
+                            'direction' => 'serialization',
61
+                            'format'    => 'json',
62
+                            'method'    => 'serializeRelation',
63
+                        ]
64
+                    )
65
+                    ->addTag(
66
+                        'jms_serializer.handler',
67
+                        [
68
+                            'type'      => 'Relation<?>',
69
+                            'direction' => 'deserialization',
70
+                            'format'    => 'json',
71
+                            'method'    => 'deserializeRelation',
72
+                        ]
73
+                    );
74 74
     }
75 75
 }
Please login to merge, or discard this patch.
DependencyInjection/Compiler/JmsDriverPass.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -23,12 +23,12 @@
 block discarded – undo
23 23
         }
24 24
 
25 25
         $container->register('jms_serializer.driver.relation', HandledTypeDriver::class)
26
-                  ->setArguments(
27
-                      [
28
-                          new Reference('jms_serializer.metadata.doctrine_type_driver'),
29
-                          new Reference('annotation_reader'),
30
-                      ]
31
-                  );
26
+                    ->setArguments(
27
+                        [
28
+                            new Reference('jms_serializer.metadata.doctrine_type_driver'),
29
+                            new Reference('annotation_reader'),
30
+                        ]
31
+                    );
32 32
 
33 33
         $container->setAlias('jms_serializer.metadata_driver', 'jms_serializer.driver.relation');
34 34
     }
Please login to merge, or discard this patch.
Test/Tests/AnnotatedControllerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      */
40 40
     public function testEmptyRequest()
41 41
     {
42
-        $client   = self::createClient();
42
+        $client = self::createClient();
43 43
         $this->sendRequest(
44 44
             $client,
45 45
             '/test/private/',
Please login to merge, or discard this patch.
Test/Tests/JsonRpcTestCase.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     }
15 15
 
16 16
     /**
17
-     * @param        $endpoint
17
+     * @param        string $endpoint
18 18
      * @param Client $client
19 19
      * @param        $requests
20 20
      *
Please login to merge, or discard this patch.