@@ -270,7 +270,7 @@ |
||
270 | 270 | * |
271 | 271 | * @param string $valueAsString Default value as PHP code. |
272 | 272 | * |
273 | - * @return Namespace_ |
|
273 | + * @return null|Node\Expr |
|
274 | 274 | * @throws ReflectionException |
275 | 275 | */ |
276 | 276 | public static function parseDefaultValue($valueAsString = null) |
@@ -284,7 +284,7 @@ discard block |
||
284 | 284 | $namespaceNode = null; |
285 | 285 | if (is_array($treeNodes)) { |
286 | 286 | foreach ($treeNodes as $node) { |
287 | - if (!$namespaceNode && |
|
287 | + if (!$namespaceNode && |
|
288 | 288 | ($node instanceof Namespace_) && |
289 | 289 | (ltrim(strval($node->name), '\\') == 'TraverserAddsOneAnyway') |
290 | 290 | ) { |
@@ -295,7 +295,7 @@ discard block |
||
295 | 295 | $functionNode = null; |
296 | 296 | if ($namespaceNode && is_array($namespaceNode->stmts)) { |
297 | 297 | foreach ($namespaceNode->stmts as $node) { |
298 | - if (!$functionNode && |
|
298 | + if (!$functionNode && |
|
299 | 299 | ($node instanceof Function_) && |
300 | 300 | ($node->name === 'foo') |
301 | 301 | ) { |
@@ -305,7 +305,7 @@ discard block |
||
305 | 305 | } |
306 | 306 | if ($functionNode && is_array($params = $functionNode->getParams())) { |
307 | 307 | foreach ($params as $node) { |
308 | - if (!$functionNode && |
|
308 | + if (!$functionNode && |
|
309 | 309 | ($node instanceof Node\Param) && |
310 | 310 | ($node->name === 'bar') |
311 | 311 | ) { |
@@ -352,7 +352,7 @@ |
||
352 | 352 | { |
353 | 353 | return |
354 | 354 | interface_exists($this->className, false) || |
355 | - trait_exists($this->className, false) || |
|
355 | + trait_exists($this->className, false) || |
|
356 | 356 | class_exists($this->className, false); |
357 | 357 | } |
358 | 358 | } |
@@ -142,12 +142,12 @@ discard block |
||
142 | 142 | $paramString = ''; |
143 | 143 | $identation = str_repeat(' ', 4); |
144 | 144 | foreach ($methodParameters as $methodParameter) { |
145 | - $paramString .= "\n{$identation}" . $methodParameter; |
|
145 | + $paramString .= "\n{$identation}".$methodParameter; |
|
146 | 146 | } |
147 | 147 | |
148 | 148 | return sprintf( |
149 | 149 | "%sMethod [ <user%s%s%s>%s%s%s %s method %s ] {\n @@ %s %d - %d{$paramFormat}{$returnFormat}\n}\n", |
150 | - $this->getDocComment() ? $this->getDocComment() . "\n" : '', |
|
150 | + $this->getDocComment() ? $this->getDocComment()."\n" : '', |
|
151 | 151 | $prototype ? ", overwrites {$prototypeClass}, prototype {$prototypeClass}" : '', |
152 | 152 | $this->isConstructor() ? ', ctor' : '', |
153 | 153 | $this->isDestructor() ? ', dtor' : '', |
@@ -419,7 +419,7 @@ discard block |
||
419 | 419 | { |
420 | 420 | return |
421 | 421 | interface_exists($this->className, false) || |
422 | - trait_exists($this->className, false) || |
|
422 | + trait_exists($this->className, false) || |
|
423 | 423 | class_exists($this->className, false); |
424 | 424 | } |
425 | 425 | } |