@@ -60,9 +60,9 @@ |
||
60 | 60 | if ($object->getReturnType() !== null) { |
61 | 61 | $typeResolver = new TypeResolver(); |
62 | 62 | if ($object->getReturnType() instanceof NullableType) { |
63 | - $typeString = '?' . $object->getReturnType()->type; |
|
63 | + $typeString = '?'.$object->getReturnType()->type; |
|
64 | 64 | } else { |
65 | - $typeString = (string) $object->getReturnType(); |
|
65 | + $typeString = (string)$object->getReturnType(); |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | $returnType = $typeResolver->resolve($typeString, $context); |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | */ |
133 | 133 | public function addInterface(Fqsen $interface): void |
134 | 134 | { |
135 | - $this->implements[(string) $interface] = $interface; |
|
135 | + $this->implements[(string)$interface] = $interface; |
|
136 | 136 | } |
137 | 137 | |
138 | 138 | /** |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | */ |
151 | 151 | public function addConstant(Constant $constant): void |
152 | 152 | { |
153 | - $this->constants[(string) $constant->getFqsen()] = $constant; |
|
153 | + $this->constants[(string)$constant->getFqsen()] = $constant; |
|
154 | 154 | } |
155 | 155 | |
156 | 156 | /** |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | */ |
169 | 169 | public function addMethod(Method $method): void |
170 | 170 | { |
171 | - $this->methods[(string) $method->getFqsen()] = $method; |
|
171 | + $this->methods[(string)$method->getFqsen()] = $method; |
|
172 | 172 | } |
173 | 173 | |
174 | 174 | /** |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | */ |
187 | 187 | public function addProperty(Property $property): void |
188 | 188 | { |
189 | - $this->properties[(string) $property->getFqsen()] = $property; |
|
189 | + $this->properties[(string)$property->getFqsen()] = $property; |
|
190 | 190 | } |
191 | 191 | |
192 | 192 | /** |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | */ |
205 | 205 | public function addUsedTrait(Fqsen $fqsen): void |
206 | 206 | { |
207 | - $this->usedTraits[(string) $fqsen] = $fqsen; |
|
207 | + $this->usedTraits[(string)$fqsen] = $fqsen; |
|
208 | 208 | } |
209 | 209 | |
210 | 210 | /** |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | */ |
107 | 107 | public function addNamespace(Fqsen $fqsen): void |
108 | 108 | { |
109 | - $this->namespaces[(string) $fqsen] = $fqsen; |
|
109 | + $this->namespaces[(string)$fqsen] = $fqsen; |
|
110 | 110 | } |
111 | 111 | |
112 | 112 | /** |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | */ |
140 | 140 | public function addConstant(Constant $constant): void |
141 | 141 | { |
142 | - $this->constants[(string) $constant->getFqsen()] = $constant; |
|
142 | + $this->constants[(string)$constant->getFqsen()] = $constant; |
|
143 | 143 | } |
144 | 144 | |
145 | 145 | /** |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | */ |
158 | 158 | public function addFunction(Function_ $function): void |
159 | 159 | { |
160 | - $this->functions[(string) $function->getFqsen()] = $function; |
|
160 | + $this->functions[(string)$function->getFqsen()] = $function; |
|
161 | 161 | } |
162 | 162 | |
163 | 163 | /** |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | */ |
176 | 176 | public function addClass(Class_ $class): void |
177 | 177 | { |
178 | - $this->classes[(string) $class->getFqsen()] = $class; |
|
178 | + $this->classes[(string)$class->getFqsen()] = $class; |
|
179 | 179 | } |
180 | 180 | |
181 | 181 | /** |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | */ |
194 | 194 | public function addInterface(Interface_ $interface): void |
195 | 195 | { |
196 | - $this->interfaces[(string) $interface->getFqsen()] = $interface; |
|
196 | + $this->interfaces[(string)$interface->getFqsen()] = $interface; |
|
197 | 197 | } |
198 | 198 | |
199 | 199 | /** |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | */ |
212 | 212 | public function addTrait(Trait_ $trait): void |
213 | 213 | { |
214 | - $this->traits[(string) $trait->getFqsen()] = $trait; |
|
214 | + $this->traits[(string)$trait->getFqsen()] = $trait; |
|
215 | 215 | } |
216 | 216 | |
217 | 217 | /** |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | */ |
87 | 87 | public function addConstant(Constant $constant): void |
88 | 88 | { |
89 | - $this->constants[(string) $constant->getFqsen()] = $constant; |
|
89 | + $this->constants[(string)$constant->getFqsen()] = $constant; |
|
90 | 90 | } |
91 | 91 | |
92 | 92 | /** |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | */ |
105 | 105 | public function addMethod(Method $method): void |
106 | 106 | { |
107 | - $this->methods[(string) $method->getFqsen()] = $method; |
|
107 | + $this->methods[(string)$method->getFqsen()] = $method; |
|
108 | 108 | } |
109 | 109 | |
110 | 110 | /** |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | */ |
82 | 82 | public function addMethod(Method $method): void |
83 | 83 | { |
84 | - $this->methods[(string) $method->getFqsen()] = $method; |
|
84 | + $this->methods[(string)$method->getFqsen()] = $method; |
|
85 | 85 | } |
86 | 86 | |
87 | 87 | /** |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | */ |
100 | 100 | public function addProperty(Property $property): void |
101 | 101 | { |
102 | - $this->properties[(string) $property->getFqsen()] = $property; |
|
102 | + $this->properties[(string)$property->getFqsen()] = $property; |
|
103 | 103 | } |
104 | 104 | |
105 | 105 | /** |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | */ |
139 | 139 | public function addUsedTrait(Fqsen $fqsen): void |
140 | 140 | { |
141 | - $this->usedTraits[(string) $fqsen] = $fqsen; |
|
141 | + $this->usedTraits[(string)$fqsen] = $fqsen; |
|
142 | 142 | } |
143 | 143 | |
144 | 144 | public function getLocation(): Location |
@@ -94,7 +94,7 @@ |
||
94 | 94 | */ |
95 | 95 | public function addNamespace(Namespace_ $namespace): void |
96 | 96 | { |
97 | - $this->namespaces[(string) $namespace->getFqsen()] = $namespace; |
|
97 | + $this->namespaces[(string)$namespace->getFqsen()] = $namespace; |
|
98 | 98 | } |
99 | 99 | |
100 | 100 | /** |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | */ |
68 | 68 | public function addClass(Fqsen $class): void |
69 | 69 | { |
70 | - $this->classes[(string) $class] = $class; |
|
70 | + $this->classes[(string)$class] = $class; |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | /** |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | */ |
86 | 86 | public function addConstant(Fqsen $contant): void |
87 | 87 | { |
88 | - $this->constants[(string) $contant] = $contant; |
|
88 | + $this->constants[(string)$contant] = $contant; |
|
89 | 89 | } |
90 | 90 | |
91 | 91 | /** |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | */ |
104 | 104 | public function addFunction(Fqsen $function): void |
105 | 105 | { |
106 | - $this->functions[(string) $function] = $function; |
|
106 | + $this->functions[(string)$function] = $function; |
|
107 | 107 | } |
108 | 108 | |
109 | 109 | /** |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | */ |
122 | 122 | public function addInterface(Fqsen $interface): void |
123 | 123 | { |
124 | - $this->interfaces[(string) $interface] = $interface; |
|
124 | + $this->interfaces[(string)$interface] = $interface; |
|
125 | 125 | } |
126 | 126 | |
127 | 127 | /** |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | */ |
140 | 140 | public function addTrait(Fqsen $trait): void |
141 | 141 | { |
142 | - $this->traits[(string) $trait] = $trait; |
|
142 | + $this->traits[(string)$trait] = $trait; |
|
143 | 143 | } |
144 | 144 | |
145 | 145 | /** |