@@ -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 |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | ] |
75 | 75 | ] |
76 | 76 | ]; |
77 | - $document = new SwaggerDocument('', $documentDefinition); |
|
77 | + $document = new SwaggerDocument('', $documentDefinition); |
|
78 | 78 | |
79 | 79 | return new static($document, $path, $method); |
80 | 80 | } |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | { |
137 | 137 | foreach ($this->definition->parameters as $i => $paramDefinition) { |
138 | 138 | if ($paramDefinition->name === $parameterName) { |
139 | - return '/' . implode('/', [ |
|
139 | + return '/'.implode('/', [ |
|
140 | 140 | 'paths', |
141 | 141 | str_replace(['~', '/'], ['~0', '~1'], $this->getPath()), |
142 | 142 | $this->getMethod(), |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | { |
189 | 189 | $segment = str_replace(['~0', '~1'], ['~', '/'], array_shift($segments)); |
190 | 190 | if (property_exists($context, $segment)) { |
191 | - $pointer .= '/' . $segment; |
|
191 | + $pointer .= '/'.$segment; |
|
192 | 192 | if (!count($segments)) { |
193 | 193 | return $pointer; |
194 | 194 | } |
@@ -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 | } |
@@ -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 @@ |
||
27 | 27 | |
28 | 28 | public static function setUpBeforeClass() |
29 | 29 | { |
30 | - static::initSchemaManager(__DIR__ . '/PetStore/app/swagger/data.yml'); |
|
30 | + static::initSchemaManager(__DIR__.'/PetStore/app/swagger/data.yml'); |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | /** |
@@ -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 | } |