Passed
Pull Request — master (#100)
by Anatoly
03:58 queued 01:15
created
src/Loader/DescriptorLoader.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
             }
297 297
         }
298 298
 
299
-        usort($result, function (Route $a, Route $b) : int {
299
+        usort($result, function(Route $a, Route $b) : int {
300 300
             return $b->priority <=> $a->priority;
301 301
         });
302 302
 
@@ -420,8 +420,7 @@  discard block
 block discarded – undo
420 420
 
421 421
         if (empty($result) and isset($this->annotationReader)) {
422 422
             $annotations = ($reflector instanceof ReflectionClass) ?
423
-                $this->annotationReader->getClassAnnotations($reflector) :
424
-                $this->annotationReader->getMethodAnnotations($reflector);
423
+                $this->annotationReader->getClassAnnotations($reflector) : $this->annotationReader->getMethodAnnotations($reflector);
425 424
 
426 425
             foreach ($annotations as $annotation) {
427 426
                 if ($annotation instanceof $annotationName) {
Please login to merge, or discard this patch.
src/Router.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -408,7 +408,7 @@  discard block
 block discarded – undo
408 408
     public function run(ServerRequestInterface $request) : ResponseInterface
409 409
     {
410 410
         // lazy resolving of the given request...
411
-        $routing = new CallableRequestHandler(function (ServerRequestInterface $request) : ResponseInterface {
411
+        $routing = new CallableRequestHandler(function(ServerRequestInterface $request) : ResponseInterface {
412 412
             $route = $this->match($request);
413 413
             $this->matchedRoute = $route;
414 414
 
@@ -464,7 +464,7 @@  discard block
 block discarded – undo
464 464
     {
465 465
         try {
466 466
             return $this->handle($request);
467
-        } catch (MethodNotAllowedException|PageNotFoundException $e) {
467
+        } catch (MethodNotAllowedException | PageNotFoundException $e) {
468 468
             $request = $request->withAttribute(self::ATTR_NAME_FOR_ROUTING_ERROR, $e);
469 469
 
470 470
             return $handler->handle($request);
Please login to merge, or discard this patch.
src/Annotation/Postfix.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
  *
30 30
  * @since 2.11.0
31 31
  */
32
-#[Attribute(Attribute::TARGET_CLASS|Attribute::TARGET_METHOD)]
32
+#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD)]
33 33
 final class Postfix
34 34
 {
35 35
 
Please login to merge, or discard this patch.
src/Annotation/Middleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
  *
30 30
  * @since 2.11.0
31 31
  */
32
-#[Attribute(Attribute::TARGET_CLASS|Attribute::TARGET_METHOD|Attribute::IS_REPEATABLE)]
32
+#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)]
33 33
 final class Middleware
34 34
 {
35 35
 
Please login to merge, or discard this patch.
src/Annotation/Prefix.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
  *
30 30
  * @since 2.11.0
31 31
  */
32
-#[Attribute(Attribute::TARGET_CLASS|Attribute::TARGET_METHOD)]
32
+#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD)]
33 33
 final class Prefix
34 34
 {
35 35
 
Please login to merge, or discard this patch.
src/Annotation/Route.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
  *   @Attribute("priority", type="integer"),
38 38
  * })
39 39
  */
40
-#[Attribute(Attribute::TARGET_CLASS|Attribute::TARGET_METHOD)]
40
+#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD)]
41 41
 final class Route
42 42
 {
43 43
 
Please login to merge, or discard this patch.
src/Annotation/Host.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
  *
30 30
  * @since 2.11.0
31 31
  */
32
-#[Attribute(Attribute::TARGET_CLASS|Attribute::TARGET_METHOD)]
32
+#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD)]
33 33
 final class Host
34 34
 {
35 35
 
Please login to merge, or discard this patch.
src/Loader/ConfigLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
148 148
         );
149 149
 
150 150
         foreach ($this->resources as $resource) {
151
-            (function () use ($resource) {
151
+            (function() use ($resource) {
152 152
                 /**
153 153
                  * @psalm-suppress UnresolvableInclude
154 154
                  */
Please login to merge, or discard this patch.