@@ -91,7 +91,7 @@ |
||
91 | 91 | |
92 | 92 | $parameters = new \stdClass; |
93 | 93 | |
94 | - if(isset($this->operationObject->getDefinition()->parameters)) { |
|
94 | + if (isset($this->operationObject->getDefinition()->parameters)) { |
|
95 | 95 | foreach ($this->operationObject->getDefinition()->parameters as $paramDefinition) { |
96 | 96 | $paramName = $paramDefinition->name; |
97 | 97 |
@@ -197,7 +197,7 @@ |
||
197 | 197 | { |
198 | 198 | $exception = new ResourceNotReadableException("Failed reading '$uri'"); |
199 | 199 | |
200 | - set_error_handler(function () use ($exception) { |
|
200 | + set_error_handler(function() use ($exception) { |
|
201 | 201 | throw $exception; |
202 | 202 | }); |
203 | 203 | $response = file_get_contents($uri); |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | /** |
211 | 211 | * Returns the History instance. |
212 | 212 | * |
213 | - * @return History A History instance |
|
213 | + * @return \Symfony\Component\BrowserKit\History A History instance |
|
214 | 214 | * |
215 | 215 | * @api |
216 | 216 | */ |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | /** |
223 | 223 | * Returns the CookieJar instance. |
224 | 224 | * |
225 | - * @return CookieJar A CookieJar instance |
|
225 | + * @return \Symfony\Component\BrowserKit\CookieJar A CookieJar instance |
|
226 | 226 | * |
227 | 227 | * @api |
228 | 228 | */ |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | /** |
247 | 247 | * Returns the current BrowserKit Response instance. |
248 | 248 | * |
249 | - * @return Response|null A BrowserKit Response instance |
|
249 | + * @return \Symfony\Component\BrowserKit\Response A BrowserKit Response instance |
|
250 | 250 | * |
251 | 251 | * @api |
252 | 252 | */ |
@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | /** |
276 | 276 | * Returns the current BrowserKit Request instance. |
277 | 277 | * |
278 | - * @return Request|null A BrowserKit Request instance |
|
278 | + * @return Request A BrowserKit Request instance |
|
279 | 279 | * |
280 | 280 | * @api |
281 | 281 | */ |
@@ -290,7 +290,7 @@ discard block |
||
290 | 290 | * The origin request is the request instance that is sent |
291 | 291 | * to the code that handles requests. |
292 | 292 | * |
293 | - * @return object|null A Request instance |
|
293 | + * @return Request A Request instance |
|
294 | 294 | * |
295 | 295 | * @see doRequest() |
296 | 296 | * |
@@ -371,7 +371,7 @@ discard block |
||
371 | 371 | * |
372 | 372 | * @param Request $request The BrowserKit Request to filter |
373 | 373 | * |
374 | - * @return object An origin request instance |
|
374 | + * @return \Symfony\Component\HttpFoundation\Request An origin request instance |
|
375 | 375 | */ |
376 | 376 | protected function filterRequest(Request $request) |
377 | 377 | { |
@@ -383,7 +383,7 @@ discard block |
||
383 | 383 | * |
384 | 384 | * @param object $response The origin response to filter |
385 | 385 | * |
386 | - * @return Response An BrowserKit Response instance |
|
386 | + * @return \Symfony\Component\BrowserKit\Response An BrowserKit Response instance |
|
387 | 387 | */ |
388 | 388 | protected function filterResponse($response) |
389 | 389 | { |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | */ |
22 | 22 | public function __construct($resourceNamespaces = null) |
23 | 23 | { |
24 | - if(!is_array($resourceNamespaces)) { |
|
24 | + if (!is_array($resourceNamespaces)) { |
|
25 | 25 | $resourceNamespaces = [$resourceNamespaces]; |
26 | 26 | } |
27 | 27 | $this->resourceNamespaces = $resourceNamespaces; |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | */ |
53 | 53 | protected function qualify($resourceNamespace, $typeName) |
54 | 54 | { |
55 | - return ltrim($resourceNamespace . '\\' . $typeName, '\\'); |
|
55 | + return ltrim($resourceNamespace.'\\'.$typeName, '\\'); |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | /** |
@@ -140,7 +140,7 @@ |
||
140 | 140 | break; |
141 | 141 | } |
142 | 142 | if (isset($paramDefinition->enum)) { |
143 | - $requirements[$paramDefinition->name] = '(' . |
|
143 | + $requirements[$paramDefinition->name] = '('. |
|
144 | 144 | implode('|', $paramDefinition->enum) |
145 | 145 | . ')'; |
146 | 146 | break; |
@@ -25,14 +25,14 @@ |
||
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']); |
32 | 32 | $container->setParameter('swagger.serializer.namespace', $config['serializer']['namespace']); |
33 | 33 | |
34 | 34 | $serializerType = $config['serializer']['type']; |
35 | - $container->setAlias('swagger.serializer.target', 'swagger.serializer.' . $serializerType); |
|
35 | + $container->setAlias('swagger.serializer.target', 'swagger.serializer.'.$serializerType); |
|
36 | 36 | |
37 | 37 | if ($serializerType !== 'array') { |
38 | 38 | $resolverDefinition = $container->getDefinition('swagger.request.processor.content_decoder'); |
@@ -157,7 +157,7 @@ |
||
157 | 157 | ); |
158 | 158 | if (!$target) { |
159 | 159 | throw new InvalidReferenceException( |
160 | - "Target '$path' does not exist'" . ($uri ? " at '$uri''" : '') |
|
160 | + "Target '$path' does not exist'".($uri ? " at '$uri''" : '') |
|
161 | 161 | ); |
162 | 162 | } |
163 | 163 |
@@ -30,7 +30,7 @@ |
||
30 | 30 | */ |
31 | 31 | public static function setUpBeforeClass() |
32 | 32 | { |
33 | - static::initSchemaManager(__DIR__ . '/PetStore/app/swagger/petstore.yml'); |
|
33 | + static::initSchemaManager(__DIR__.'/PetStore/app/swagger/petstore.yml'); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | /** |
@@ -30,6 +30,6 @@ |
||
30 | 30 | */ |
31 | 31 | public function canInitSchemaManager() |
32 | 32 | { |
33 | - static::initSchemaManager(__DIR__ . '/PetStore/app/swagger/data.json'); |
|
33 | + static::initSchemaManager(__DIR__.'/PetStore/app/swagger/data.json'); |
|
34 | 34 | } |
35 | 35 | } |