Passed
Push — master ( d7bd96...cddd2f )
by Michael
06:38
created
src/Routing/RouteRepository.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     /**
68 68
      * Get URL generator
69 69
      *
70
-     * @return UrlGeneratorInterface
70
+     * @return \Symfony\Component\Routing\Generator\UrlGeneratorInterface
71 71
      */
72 72
     protected function getUrlGenerator(): UrlGeneratorInterface
73 73
     {
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
     /**
85 85
      * Assemble routes collection
86 86
      *
87
-     * @return RouteCollection
87
+     * @return \Symfony\Component\Routing\RouteCollection
88 88
      */
89 89
     protected function assembleRoutesCollection(): RouteCollection
90 90
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      * @param  array  $parameters Request parameters
60 60
      * @return string
61 61
      */
62
-    public function generate(string $name, array $parameters = []): string
62
+    public function generate(string $name, array $parameters = [ ]): string
63 63
     {
64 64
         return $this->getUrlGenerator()->generate($name, $parameters);
65 65
     }
@@ -92,8 +92,8 @@  discard block
 block discarded – undo
92 92
 
93 93
         foreach ($this->routes as $name => $definition)
94 94
         {
95
-            $route = new Route($definition['path']);
96
-            $route->setMethods($definition['methods']);
95
+            $route = new Route($definition[ 'path' ]);
96
+            $route->setMethods($definition[ 'methods' ]);
97 97
 
98 98
             $collection->add($name, $route);
99 99
         }
Please login to merge, or discard this patch.
src/DependencyInjection/JsonApiConfiguration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,13 +36,13 @@
 block discarded – undo
36 36
     protected function processMappers(NodeBuilder $builder)
37 37
     {
38 38
         $builder->arrayNode('mappers')
39
-            ->defaultValue(['default' => [
39
+            ->defaultValue([ 'default' => [
40 40
                 'handlers' => [
41 41
                     'attribute',
42 42
                     'relationship',
43 43
                     'link'
44 44
                 ]
45
-            ]])
45
+            ] ])
46 46
             ->prototype('array')
47 47
                 ->children()
48 48
                     ->arrayNode('handlers')
Please login to merge, or discard this patch.
src/HttpClient/ResourceBasedClient.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      *
61 61
      * @return ResponseInterface
62 62
      */
63
-    public function request(string $method, string $resource, array $parameters = [], array $headers = [], $body = null): ResponseInterface
63
+    public function request(string $method, string $resource, array $parameters = [ ], array $headers = [ ], $body = null): ResponseInterface
64 64
     {
65 65
         $uri = $this->repository->generate($resource, $parameters);
66 66
 
@@ -86,6 +86,6 @@  discard block
 block discarded – undo
86 86
     {
87 87
         array_unshift($arguments, strtoupper($name));
88 88
 
89
-        return call_user_func_array([$this, 'request'], $arguments);
89
+        return call_user_func_array([ $this, 'request' ], $arguments);
90 90
     }
91 91
 }
92 92
\ No newline at end of file
Please login to merge, or discard this patch.