Completed
Push — master ( f730e7...231cf5 )
by John
03:07
created
src/DependencyInjection/Configuration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
             ->beforeNormalization()
35 35
             ->ifString()
36 36
             ->then(
37
-                function ($v) {
37
+                function($v) {
38 38
                     return [$v];
39 39
                 }
40 40
             )
Please login to merge, or discard this patch.
src/Routing/OpenApiRouteLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 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(),
Please login to merge, or discard this patch.
tests/unit/Routing/OpenApiRouteLoaderTest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
             ->willReturn([
220 220
                 new Path(
221 221
                     '/a',
222
-                    [new Operation('/a:get', '/a', 'get'), new Operation($expected, '/a', 'post'),]
222
+                    [new Operation('/a:get', '/a', 'get'), new Operation($expected, '/a', 'post'), ]
223 223
                 ),
224 224
                 new Path('/b', [new Operation('/b:get', '/b', 'get')]),
225 225
             ]);
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
             ->expects($this->atLeast(1))
304 304
             ->method('getExtension')
305 305
             ->willReturnCallback(
306
-                function (string $name) use ($diKey) {
306
+                function(string $name) use ($diKey) {
307 307
                     return $name == 'router-controller' ? $diKey : null;
308 308
                 }
309 309
             );
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
             ->expects($this->atLeast(1))
332 332
             ->method('getExtension')
333 333
             ->willReturnCallback(
334
-                function (string $name) use ($router) {
334
+                function(string $name) use ($router) {
335 335
                     return $name == 'router' ? $router : null;
336 336
                 }
337 337
             );
@@ -374,13 +374,13 @@  discard block
 block discarded – undo
374 374
     public function routeCollectionWillContainPathFromDescription()
375 375
     {
376 376
         $paths = [
377
-            new Path('/a', [new Operation('/a:get', '/a', 'get'),]),
378
-            new Path('/a/b', [new Operation('/a/b:get', '/a/b', 'get'),]),
377
+            new Path('/a', [new Operation('/a:get', '/a', 'get'), ]),
378
+            new Path('/a/b', [new Operation('/a/b:get', '/a/b', 'get'), ]),
379 379
             new Path('/a/b/c', [new Operation('/a/b/c:get', '/a/b/c', 'get')]),
380 380
             new Path('/d/f/g', [new Operation('/d/f/g:get', '/d/f/g', 'get')]),
381 381
             new Path('/1/2/3', [new Operation('/1/2/3:get', '/1/2/3', 'get')]),
382 382
             new Path('/foo/{bar}/{blah}', [new Operation('/foo/{bar}/{blah}:get', '/foo/{bar}/{blah}', 'get')]),
383
-            new Path('/z', [new Operation('/z:get', '/z', 'get'),]),
383
+            new Path('/z', [new Operation('/z:get', '/z', 'get'), ]),
384 384
         ];
385 385
 
386 386
         $this->decriptionMock
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
         $routes = $this->loader->load(self::DOCUMENT_PATH);
392 392
 
393 393
         $descriptionPaths = array_map(
394
-            function (Path $path) {
394
+            function(Path $path) {
395 395
                 return $path->getPath();
396 396
             },
397 397
             $paths
@@ -399,7 +399,7 @@  discard block
 block discarded – undo
399 399
         sort($descriptionPaths);
400 400
 
401 401
         $routePaths = array_map(
402
-            function (Route $route) {
402
+            function(Route $route) {
403 403
                 return $route->getPath();
404 404
             },
405 405
             $routes->getIterator()->getArrayCopy()
Please login to merge, or discard this patch.
tests/unit/EventListener/Request/RequestProcessorTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
             ->expects($this->once())
171 171
             ->method('assemble')
172 172
             ->willReturnCallback(
173
-                function (
173
+                function(
174 174
                     Operation $operation,
175 175
                     array $query,
176 176
                     array $attributes,
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
             ->expects($this->once())
214 214
             ->method('assemble')
215 215
             ->willReturnCallback(
216
-                function (
216
+                function(
217 217
                     Operation $operation,
218 218
                     array $query,
219 219
                     array $attributes,
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
             ->method('hydrate')
232 232
             ->with($body, $this->isInstanceOf(Schema::class))
233 233
             ->willReturnCallback(
234
-                function () use ($dto) {
234
+                function() use ($dto) {
235 235
                     return $dto;
236 236
                 }
237 237
             );
Please login to merge, or discard this patch.
tests/unit/Test/ApiResponseErrorExceptionTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
      */
38 38
     public function getGetDataAndContentFromException()
39 39
     {
40
-        $data    = (object)[
40
+        $data = (object)[
41 41
             'message' => 'Reason',
42 42
             'extra'   => 'foo',
43 43
         ];
Please login to merge, or discard this patch.