@@ -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 | /** |
@@ -53,7 +53,7 @@ |
||
53 | 53 | */ |
54 | 54 | protected function qualify(string $resourceNamespace, string $typeName): string |
55 | 55 | { |
56 | - return ltrim($resourceNamespace . '\\' . $typeName, '\\'); |
|
56 | + return ltrim($resourceNamespace.'\\'.$typeName, '\\'); |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | /** |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | { |
143 | 143 | foreach ($this->definition->parameters as $i => $paramDefinition) { |
144 | 144 | if ($paramDefinition->name === $parameterName) { |
145 | - return '/' . implode('/', [ |
|
145 | + return '/'.implode('/', [ |
|
146 | 146 | 'paths', |
147 | 147 | str_replace(['~', '/'], ['~0', '~1'], $this->getPath()), |
148 | 148 | $this->getMethod(), |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | { |
194 | 194 | $segment = str_replace(['~0', '~1'], ['~', '/'], array_shift($segments)); |
195 | 195 | if (property_exists($context, $segment)) { |
196 | - $pointer .= '/' . $segment; |
|
196 | + $pointer .= '/'.$segment; |
|
197 | 197 | if (!count($segments)) { |
198 | 198 | return $pointer; |
199 | 199 | } |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | ->getMockBuilder('KleijnWeb\SwaggerBundle\Document\ParameterRefBuilder') |
36 | 36 | ->disableOriginalConstructor() |
37 | 37 | ->getMock(); |
38 | - $this->factory = new VndValidationErrorFactory($this->refBuilder); |
|
38 | + $this->factory = new VndValidationErrorFactory($this->refBuilder); |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | /** |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | */ |
71 | 71 | public function resultIncludesErrorMessagesCreatedByJsonSchema() |
72 | 72 | { |
73 | - $value = (object)[ |
|
73 | + $value = (object)[ |
|
74 | 74 | 'foo' => (object)[ |
75 | 75 | 'blah' => 'one' |
76 | 76 | ], |
@@ -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; |