Completed
Push — master ( aa6f89...863f7f )
by John
08:07
created
src/DependencyInjection/KleijnWebSwaggerExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 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']);
Please login to merge, or discard this patch.
src/Test/ApiTestCase.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
             $this->assertSame(
165 165
                 JSON_ERROR_NONE,
166 166
                 json_last_error(),
167
-                "Not valid JSON: " . json_last_error_msg() . "(" . var_export($content, true) . ")"
167
+                "Not valid JSON: ".json_last_error_msg()."(".var_export($content, true).")"
168 168
             );
169 169
         }
170 170
 
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
     {
200 200
         $uri = $path;
201 201
         if (count($params)) {
202
-            $uri = $path . '?' . http_build_query($params);
202
+            $uri = $path.'?'.http_build_query($params);
203 203
         }
204 204
 
205 205
         return $uri;
Please login to merge, or discard this patch.
src/Routing/OpenApiRouteLoader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
                     $router,
91 91
                     $routerController
92 92
                 );
93
-                $defaults      = [
93
+                $defaults = [
94 94
                     '_controller'               => $controllerKey,
95 95
                     RequestMeta::ATTRIBUTE_URI  => $resource,
96 96
                     RequestMeta::ATTRIBUTE_PATH => $pathItem->getPath()
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
                         if ($pattern = $schema->getPattern()) {
129 129
                             $requirements[$parameter->getName()] = $pattern;
130 130
                         } elseif ($enum = $schema->getEnum()) {
131
-                            $requirements[$parameter->getName()] = '(' . implode('|', $enum) . ')';
131
+                            $requirements[$parameter->getName()] = '('.implode('|', $enum).')';
132 132
                         }
133 133
                         break;
134 134
                     default:
Please login to merge, or discard this patch.
src/DependencyInjection/Configuration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
             ->arrayNode('namespaces')->isRequired()
34 34
             ->beforeNormalization()
35 35
             ->ifString()
36
-            ->then(function ($v) {
36
+            ->then(function($v) {
37 37
                 return [$v];
38 38
             })
39 39
             ->end()
Please login to merge, or discard this patch.
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.
tests/functional/BasicPetStoreApiTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
     {
60 60
         $id = rand();
61 61
 
62
-        $responseData = $this->get('/v2/pet/' . $id);
62
+        $responseData = $this->get('/v2/pet/'.$id);
63 63
 
64 64
         $this->assertSame($id, $responseData->id);
65 65
     }
Please login to merge, or discard this patch.
tests/functional/GenericDataApiTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
      */
62 62
     public function canFindByCriteria()
63 63
     {
64
-        $criteria     = [
64
+        $criteria = [
65 65
             (object)[
66 66
                 'fieldName' => 'x',
67 67
                 'operator'  => 'eq',
Please login to merge, or discard this patch.
tests/functional/TestCacheSmashingPHPUnitListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
             return;
69 69
         }
70 70
 
71
-        $dir = __DIR__ . '/PetStore/app/cache';
71
+        $dir = __DIR__.'/PetStore/app/cache';
72 72
 
73 73
         if (!is_dir($dir)) {
74 74
             return;
Please login to merge, or discard this patch.
tests/unit/EventListener/Request/RequestProcessorTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
         $this->parametersAssemblerMock
159 159
             ->expects($this->once())
160 160
             ->method('assemble')
161
-            ->willReturnCallback(function (
161
+            ->willReturnCallback(function(
162 162
                 Operation $operation,
163 163
                 array $query,
164 164
                 array $attributes,
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
         $this->parametersAssemblerMock
197 197
             ->expects($this->once())
198 198
             ->method('assemble')
199
-            ->willReturnCallback(function (
199
+            ->willReturnCallback(function(
200 200
                 Operation $operation,
201 201
                 array $query,
202 202
                 array $attributes,
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
             ->expects($this->once())
213 213
             ->method('hydrate')
214 214
             ->with($body, $this->isInstanceOf(Schema::class))
215
-            ->willReturnCallback(function () use ($dto) {
215
+            ->willReturnCallback(function() use ($dto) {
216 216
                 return $dto;
217 217
             });
218 218
 
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
      */
297 297
     private function createProcessor(bool $useHydrator = false, $forcedValidationResult = true): RequestProcessor
298 298
     {
299
-        if(null !== $forcedValidationResult){
299
+        if (null !== $forcedValidationResult) {
300 300
             $this->validatorMock
301 301
                 ->expects($this->any())
302 302
                 ->method('validate')
Please login to merge, or discard this patch.