@@ -67,7 +67,7 @@ discard block |
||
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 |
||
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 | { |
@@ -59,7 +59,7 @@ discard block |
||
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 |
||
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 | } |
@@ -36,13 +36,13 @@ |
||
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') |
@@ -60,7 +60,7 @@ discard block |
||
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 |
||
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 |