Completed
Push — master ( fe2b2b...911b60 )
by Alexander
45:31 queued 21:17
created
src/Resolver/TypeExpressionResolver.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -40,8 +40,8 @@  discard block
 block discarded – undo
40 40
      * Current reflection context for parsing
41 41
      */
42 42
     private
43
-        \ReflectionClass|\ReflectionFunction|\ReflectionMethod|\ReflectionClassConstant|
44
-        \ReflectionParameter|\ReflectionAttribute|\ReflectionProperty|ReflectionFileNamespace|null $context;
43
+        \ReflectionClass | \ReflectionFunction | \ReflectionMethod | \ReflectionClassConstant |
44
+        \ReflectionParameter | \ReflectionAttribute | \ReflectionProperty | ReflectionFileNamespace | null $context;
45 45
 
46 46
     /**
47 47
      * Whether this type has explicit null value set
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      */
59 59
     private array $nodeStack = [];
60 60
 
61
-    private \ReflectionNamedType|\ReflectionUnionType|\ReflectionIntersectionType|null $type;
61
+    private \ReflectionNamedType | \ReflectionUnionType | \ReflectionIntersectionType | null $type;
62 62
 
63 63
     public function __construct($context)
64 64
     {
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         $this->type           = $this->resolve($node);
77 77
     }
78 78
 
79
-    final public function getType(): \ReflectionNamedType|\ReflectionUnionType|\ReflectionIntersectionType|null
79
+    final public function getType(): \ReflectionNamedType | \ReflectionUnionType | \ReflectionIntersectionType | null
80 80
     {
81 81
         return $this->type;
82 82
     }
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
             $methodName = $this->getDispatchMethodFor($node);
97 97
             if (!method_exists($this, $methodName)) {
98
-                throw new ReflectionException("Could not find handler for the " . __CLASS__ . "::{$methodName} method");
98
+                throw new ReflectionException("Could not find handler for the ".__CLASS__."::{$methodName} method");
99 99
             }
100 100
             $type = $this->$methodName($node);
101 101
         } finally {
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     private function resolveUnionType(Node\UnionType $unionType): ReflectionUnionType
110 110
     {
111 111
         $resolvedTypes = array_map(
112
-            fn(Identifier|IntersectionType|Name $singleType) => $this->resolve($singleType),
112
+            fn(Identifier | IntersectionType | Name $singleType) => $this->resolve($singleType),
113 113
             $unionType->types
114 114
         );
115 115
 
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
     private function resolveIntersectionType(Node\IntersectionType $intersectionType): ReflectionIntersectionType
120 120
     {
121 121
         $resolvedTypes = array_map(
122
-            fn(Identifier|IntersectionType|Name $singleType) => $this->resolve($singleType),
122
+            fn(Identifier | IntersectionType | Name $singleType) => $this->resolve($singleType),
123 123
             $intersectionType->types
124 124
         );
125 125
 
@@ -159,6 +159,6 @@  discard block
 block discarded – undo
159 159
     {
160 160
         $nodeType = $node->getType();
161 161
 
162
-        return 'resolve' . str_replace('_', '', $nodeType);
162
+        return 'resolve'.str_replace('_', '', $nodeType);
163 163
     }
164 164
 }
Please login to merge, or discard this patch.