Completed
Push — master ( b69735...6d6276 )
by John
05:05
created
tests/functional/PetStore/app/TestKernel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
             new KleijnWeb\SwaggerBundle\Tests\Functional\PetStore\PetStoreBundle()
17 17
         ];
18 18
 
19
-        if($this->getEnvironment() === 'secure'){
19
+        if ($this->getEnvironment() === 'secure') {
20 20
             $bundles[] = new \Symfony\Bundle\SecurityBundle\SecurityBundle();
21 21
         }
22 22
 
@@ -28,6 +28,6 @@  discard block
 block discarded – undo
28 28
      */
29 29
     public function registerContainerConfiguration(LoaderInterface $loader)
30 30
     {
31
-        $loader->load(__DIR__ . '/config_' . $this->getEnvironment() . '.yml');
31
+        $loader->load(__DIR__.'/config_'.$this->getEnvironment().'.yml');
32 32
     }
33 33
 }
Please login to merge, or discard this patch.
tests/unit/Routing/OpenApiRouteLoaderTest.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
             ->willReturn([]);
85 85
 
86 86
         $this->loader->load(self::DOCUMENT_PATH);
87
-        $this->loader->load(self::DOCUMENT_PATH . '2');
87
+        $this->loader->load(self::DOCUMENT_PATH.'2');
88 88
     }
89 89
 
90 90
     /**
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
             ]);
101 101
 
102 102
         $routes1 = $this->loader->load(self::DOCUMENT_PATH);
103
-        $routes2 = $this->loader->load(self::DOCUMENT_PATH . '2');
103
+        $routes2 = $this->loader->load(self::DOCUMENT_PATH.'2');
104 104
         $this->assertSame(count($routes1), count(array_diff_key($routes1->all(), $routes2->all())));
105 105
     }
106 106
 
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
         $this->decriptionMock
262 262
             ->expects($this->atLeast(1))
263 263
             ->method('getExtension')
264
-            ->willReturnCallback(function (string $name) use ($diKey) {
264
+            ->willReturnCallback(function(string $name) use ($diKey) {
265 265
                 return $name == 'router-controller' ? $diKey : null;
266 266
             });
267 267
 
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
         $this->decriptionMock
288 288
             ->expects($this->atLeast(1))
289 289
             ->method('getExtension')
290
-            ->willReturnCallback(function (string $name) use ($router) {
290
+            ->willReturnCallback(function(string $name) use ($router) {
291 291
                 return $name == 'router' ? $router : null;
292 292
             });
293 293
 
@@ -328,13 +328,13 @@  discard block
 block discarded – undo
328 328
     public function routeCollectionWillContainPathFromDescription()
329 329
     {
330 330
         $paths = [
331
-            new Path('/a', [new Operation('/a:get', '/a', 'get'),]),
332
-            new Path('/a/b', [new Operation('/a/b:get', '/a/b', 'get'),]),
331
+            new Path('/a', [new Operation('/a:get', '/a', 'get'), ]),
332
+            new Path('/a/b', [new Operation('/a/b:get', '/a/b', 'get'), ]),
333 333
             new Path('/a/b/c', [new Operation('/a/b/c:get', '/a/b/c', 'get')]),
334 334
             new Path('/d/f/g', [new Operation('/d/f/g:get', '/d/f/g', 'get')]),
335 335
             new Path('/1/2/3', [new Operation('/1/2/3:get', '/1/2/3', 'get')]),
336 336
             new Path('/foo/{bar}/{blah}', [new Operation('/foo/{bar}/{blah}:get', '/foo/{bar}/{blah}', 'get')]),
337
-            new Path('/z', [new Operation('/z:get', '/z', 'get'),]),
337
+            new Path('/z', [new Operation('/z:get', '/z', 'get'), ]),
338 338
         ];
339 339
 
340 340
         $this->decriptionMock
@@ -344,12 +344,12 @@  discard block
 block discarded – undo
344 344
 
345 345
         $routes = $this->loader->load(self::DOCUMENT_PATH);
346 346
 
347
-        $descriptionPaths = array_map(function (Path $path) {
347
+        $descriptionPaths = array_map(function(Path $path) {
348 348
             return $path->getPath();
349 349
         }, $paths);
350 350
         sort($descriptionPaths);
351 351
 
352
-        $routePaths = array_map(function (Route $route) {
352
+        $routePaths = array_map(function(Route $route) {
353 353
             return $route->getPath();
354 354
         }, $routes->getIterator()->getArrayCopy());
355 355
 
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
      */
389 389
     public function willAddRequirementsForStringPatternParams()
390 390
     {
391
-        $expected        = '\d{2}hello';
391
+        $expected = '\d{2}hello';
392 392
         $parameter = new Parameter(
393 393
             'aString',
394 394
             true,
Please login to merge, or discard this patch.