Completed
Push — master ( 3df05c...731503 )
by John
11:36
created
src/DependencyInjection/KleijnWebSwaggerExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,14 +25,14 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
src/Test/ApiTestCase.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         $validator = new Validator();
68 68
         $validator->check(
69 69
             $swaggerJson,
70
-            json_decode(file_get_contents(__DIR__ . '/../../assets/swagger-schema.json'))
70
+            json_decode(file_get_contents(__DIR__.'/../../assets/swagger-schema.json'))
71 71
         );
72 72
 
73 73
         if (!$validator->isValid()) {
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
         vfsStreamWrapper::setRoot(new vfsStreamDirectory('root'));
84 84
 
85 85
         file_put_contents(
86
-            vfsStream::url('root') . '/swagger.json',
86
+            vfsStream::url('root').'/swagger.json',
87 87
             json_encode(self::$document->getDefinition())
88 88
         );
89 89
 
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
             json_encode(self::$document->getDefinition(), JSON_PRETTY_PRINT)
93 93
         );
94 94
 
95
-        self::$schemaManager = new SchemaManager(vfsStream::url('root') . '/swagger.json');
95
+        self::$schemaManager = new SchemaManager(vfsStream::url('root').'/swagger.json');
96 96
     }
97 97
 
98 98
     /**
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
     {
224 224
         $uri = $path;
225 225
         if (count($params)) {
226
-            $uri = $path . '?' . http_build_query($params);
226
+            $uri = $path.'?'.http_build_query($params);
227 227
         }
228 228
 
229 229
         return $uri;
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
             $this->assertSame(
258 258
                 JSON_ERROR_NONE,
259 259
                 json_last_error(),
260
-                "Not valid JSON: " . $jsonErrorMessage . "(" . var_export($json, true) . ")"
260
+                "Not valid JSON: ".$jsonErrorMessage."(".var_export($json, true).")"
261 261
             );
262 262
         }
263 263
 
Please login to merge, or discard this patch.
src/Document/RefResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Document/OperationObject.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/Tests/Functional/SerializationPetStoreApiTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Tests/Functional/JsonDataApiTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,6 +30,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Tests/Functional/VndParameterValidationErrorTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Tests/Functional/ApiTestCaseTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Tests/Functional/PetStore/app/TestKernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,6 +25,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.