@@ -30,7 +30,7 @@ discard block |
||
| 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 | /** |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | } catch (ApiResponseErrorException $e) { |
| 82 | 82 | $error = Hal::fromJson($e->getJson(), 10); |
| 83 | 83 | $resource = $error->getFirstResource('errors'); |
| 84 | - $specLink = $url . '#/paths/~1pet~1findByStatus/get/parameters/0/body/properties/quantity'; |
|
| 84 | + $specLink = $url.'#/paths/~1pet~1findByStatus/get/parameters/0/body/properties/quantity'; |
|
| 85 | 85 | $this->assertSame($specLink, $resource->getUri()); |
| 86 | 86 | |
| 87 | 87 | return; |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | |
| 29 | 29 | public static function setUpBeforeClass() |
| 30 | 30 | { |
| 31 | - static::initSchemaManager(__DIR__ . '/PetStore/app/swagger/petstore.yml'); |
|
| 31 | + static::initSchemaManager(__DIR__.'/PetStore/app/swagger/petstore.yml'); |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | /** |
@@ -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 | } |
@@ -6,7 +6,7 @@ |
||
| 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 | |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | public static function setUpBeforeClass() |
| 29 | 29 | { |
| 30 | - static::initSchemaManager(__DIR__ . '/PetStore/app/swagger/petstore.yml'); |
|
| 30 | + static::initSchemaManager(__DIR__.'/PetStore/app/swagger/petstore.yml'); |
|
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | /** |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | { |
| 64 | 64 | $id = rand(); |
| 65 | 65 | |
| 66 | - $responseData = $this->get('/v2/pet/' . $id); |
|
| 66 | + $responseData = $this->get('/v2/pet/'.$id); |
|
| 67 | 67 | |
| 68 | 68 | $this->assertSame($id, $responseData->id); |
| 69 | 69 | } |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | ->willReturn([]); |
| 77 | 77 | |
| 78 | 78 | $this->loader->load(self::DOCUMENT_PATH); |
| 79 | - $this->loader->load(self::DOCUMENT_PATH . '2'); |
|
| 79 | + $this->loader->load(self::DOCUMENT_PATH.'2'); |
|
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | /** |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | ->willReturn($pathDefinitions); |
| 97 | 97 | |
| 98 | 98 | $routes1 = $this->loader->load(self::DOCUMENT_PATH); |
| 99 | - $routes2 = $this->loader->load(self::DOCUMENT_PATH . '2'); |
|
| 99 | + $routes2 = $this->loader->load(self::DOCUMENT_PATH.'2'); |
|
| 100 | 100 | $this->assertSame(count($routes1), count(array_diff_key($routes1->all(), $routes2->all()))); |
| 101 | 101 | } |
| 102 | 102 | |
@@ -348,7 +348,7 @@ discard block |
||
| 348 | 348 | |
| 349 | 349 | $definitionPaths = array_keys((array)$pathDefinitions); |
| 350 | 350 | sort($definitionPaths); |
| 351 | - $routePaths = array_map(function ($route) { |
|
| 351 | + $routePaths = array_map(function($route) { |
|
| 352 | 352 | return $route->getPath(); |
| 353 | 353 | }, $routes->getIterator()->getArrayCopy()); |
| 354 | 354 | sort($routePaths); |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | |
| 29 | 29 | public static function setUpBeforeClass() |
| 30 | 30 | { |
| 31 | - static::initSchemaManager(__DIR__ . '/PetStore/app/swagger/petstore.yml'); |
|
| 31 | + static::initSchemaManager(__DIR__.'/PetStore/app/swagger/petstore.yml'); |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | /** |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | /** |
| 42 | 42 | * @SuppressWarnings(PHPMD.UnusedFormalParameter) |
| 43 | 43 | * |
| 44 | - * @param mixed $resource |
|
| 44 | + * @param string $resource |
|
| 45 | 45 | * @param string $type |
| 46 | 46 | * |
| 47 | 47 | * @return bool |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | /** |
| 55 | 55 | * @SuppressWarnings(PHPMD.UnusedFormalParameter) |
| 56 | 56 | * |
| 57 | - * @param mixed $resource |
|
| 57 | + * @param string $resource |
|
| 58 | 58 | * @param null $type |
| 59 | 59 | * |
| 60 | 60 | * @return RouteCollection |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | $router, |
| 99 | 99 | $routerController |
| 100 | 100 | ); |
| 101 | - $defaults = [ |
|
| 101 | + $defaults = [ |
|
| 102 | 102 | '_controller' => $controllerKey, |
| 103 | 103 | '_definition' => $resource, |
| 104 | 104 | '_swagger_path' => $path |
@@ -140,7 +140,7 @@ discard block |
||
| 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; |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | /** |
| 210 | 210 | * Returns the History instance. |
| 211 | 211 | * |
| 212 | - * @return History A History instance |
|
| 212 | + * @return \Symfony\Component\BrowserKit\History A History instance |
|
| 213 | 213 | * |
| 214 | 214 | * @api |
| 215 | 215 | */ |
@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | /** |
| 222 | 222 | * Returns the CookieJar instance. |
| 223 | 223 | * |
| 224 | - * @return CookieJar A CookieJar instance |
|
| 224 | + * @return \Symfony\Component\BrowserKit\CookieJar A CookieJar instance |
|
| 225 | 225 | * |
| 226 | 226 | * @api |
| 227 | 227 | */ |
@@ -245,7 +245,7 @@ discard block |
||
| 245 | 245 | /** |
| 246 | 246 | * Returns the current BrowserKit Response instance. |
| 247 | 247 | * |
| 248 | - * @return Response|null A BrowserKit Response instance |
|
| 248 | + * @return \Symfony\Component\BrowserKit\Response|null A BrowserKit Response instance |
|
| 249 | 249 | * |
| 250 | 250 | * @api |
| 251 | 251 | */ |
@@ -370,7 +370,7 @@ discard block |
||
| 370 | 370 | * |
| 371 | 371 | * @param Request $request The BrowserKit Request to filter |
| 372 | 372 | * |
| 373 | - * @return object An origin request instance |
|
| 373 | + * @return \Symfony\Component\HttpFoundation\Request An origin request instance |
|
| 374 | 374 | */ |
| 375 | 375 | protected function filterRequest(Request $request) |
| 376 | 376 | { |
@@ -382,7 +382,7 @@ discard block |
||
| 382 | 382 | * |
| 383 | 383 | * @param object $response The origin response to filter |
| 384 | 384 | * |
| 385 | - * @return Response An BrowserKit Response instance |
|
| 385 | + * @return \Symfony\Component\BrowserKit\Response An BrowserKit Response instance |
|
| 386 | 386 | */ |
| 387 | 387 | protected function filterResponse($response) |
| 388 | 388 | { |