@@ -25,7 +25,7 @@ |
||
25 | 25 | public function load(array $configs, ContainerBuilder $container) |
26 | 26 | { |
27 | 27 | $config = $this->processConfiguration(new Configuration(), $configs); |
28 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
28 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
29 | 29 | $loader->load('services.yml'); |
30 | 30 | |
31 | 31 | $container->setParameter('swagger.document.base_path', $config['document']['base_path']); |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | $this->assertSame( |
165 | 165 | JSON_ERROR_NONE, |
166 | 166 | json_last_error(), |
167 | - "Not valid JSON: " . json_last_error_msg() . "(" . var_export($content, true) . ")" |
|
167 | + "Not valid JSON: ".json_last_error_msg()."(".var_export($content, true).")" |
|
168 | 168 | ); |
169 | 169 | } |
170 | 170 | |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | { |
200 | 200 | $uri = $path; |
201 | 201 | if (count($params)) { |
202 | - $uri = $path . '?' . http_build_query($params); |
|
202 | + $uri = $path.'?'.http_build_query($params); |
|
203 | 203 | } |
204 | 204 | |
205 | 205 | return $uri; |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | $router, |
91 | 91 | $routerController |
92 | 92 | ); |
93 | - $defaults = [ |
|
93 | + $defaults = [ |
|
94 | 94 | '_controller' => $controllerKey, |
95 | 95 | RequestMeta::ATTRIBUTE_URI => $resource, |
96 | 96 | RequestMeta::ATTRIBUTE_PATH => $pathItem->getPath() |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | if ($pattern = $schema->getPattern()) { |
129 | 129 | $requirements[$parameter->getName()] = $pattern; |
130 | 130 | } elseif ($enum = $schema->getEnum()) { |
131 | - $requirements[$parameter->getName()] = '(' . implode('|', $enum) . ')'; |
|
131 | + $requirements[$parameter->getName()] = '('.implode('|', $enum).')'; |
|
132 | 132 | } |
133 | 133 | break; |
134 | 134 | default: |
@@ -33,7 +33,7 @@ |
||
33 | 33 | ->arrayNode('namespaces')->isRequired() |
34 | 34 | ->beforeNormalization() |
35 | 35 | ->ifString() |
36 | - ->then(function ($v) { |
|
36 | + ->then(function($v) { |
|
37 | 37 | return [$v]; |
38 | 38 | }) |
39 | 39 | ->end() |
@@ -25,6 +25,6 @@ |
||
25 | 25 | */ |
26 | 26 | public function registerContainerConfiguration(LoaderInterface $loader) |
27 | 27 | { |
28 | - $loader->load(__DIR__ . '/config_' . $this->getEnvironment() . '.yml'); |
|
28 | + $loader->load(__DIR__.'/config_'.$this->getEnvironment().'.yml'); |
|
29 | 29 | } |
30 | 30 | } |
@@ -59,7 +59,7 @@ |
||
59 | 59 | { |
60 | 60 | $id = rand(); |
61 | 61 | |
62 | - $responseData = $this->get('/v2/pet/' . $id); |
|
62 | + $responseData = $this->get('/v2/pet/'.$id); |
|
63 | 63 | |
64 | 64 | $this->assertSame($id, $responseData->id); |
65 | 65 | } |
@@ -61,7 +61,7 @@ |
||
61 | 61 | */ |
62 | 62 | public function canFindByCriteria() |
63 | 63 | { |
64 | - $criteria = [ |
|
64 | + $criteria = [ |
|
65 | 65 | (object)[ |
66 | 66 | 'fieldName' => 'x', |
67 | 67 | 'operator' => 'eq', |
@@ -68,7 +68,7 @@ |
||
68 | 68 | return; |
69 | 69 | } |
70 | 70 | |
71 | - $dir = __DIR__ . '/PetStore/app/cache'; |
|
71 | + $dir = __DIR__.'/PetStore/app/cache'; |
|
72 | 72 | |
73 | 73 | if (!is_dir($dir)) { |
74 | 74 | return; |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | $this->parametersAssemblerMock |
159 | 159 | ->expects($this->once()) |
160 | 160 | ->method('assemble') |
161 | - ->willReturnCallback(function ( |
|
161 | + ->willReturnCallback(function( |
|
162 | 162 | Operation $operation, |
163 | 163 | array $query, |
164 | 164 | array $attributes, |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | $this->parametersAssemblerMock |
197 | 197 | ->expects($this->once()) |
198 | 198 | ->method('assemble') |
199 | - ->willReturnCallback(function ( |
|
199 | + ->willReturnCallback(function( |
|
200 | 200 | Operation $operation, |
201 | 201 | array $query, |
202 | 202 | array $attributes, |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | ->expects($this->once()) |
213 | 213 | ->method('hydrate') |
214 | 214 | ->with($body, $this->isInstanceOf(Schema::class)) |
215 | - ->willReturnCallback(function () use ($dto) { |
|
215 | + ->willReturnCallback(function() use ($dto) { |
|
216 | 216 | return $dto; |
217 | 217 | }); |
218 | 218 | |
@@ -296,7 +296,7 @@ discard block |
||
296 | 296 | */ |
297 | 297 | private function createProcessor(bool $useHydrator = false, $forcedValidationResult = true): RequestProcessor |
298 | 298 | { |
299 | - if(null !== $forcedValidationResult){ |
|
299 | + if (null !== $forcedValidationResult) { |
|
300 | 300 | $this->validatorMock |
301 | 301 | ->expects($this->any()) |
302 | 302 | ->method('validate') |