@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | foreach ($this->namespaceNode->stmts as $namespaceLevelNode) { |
288 | 288 | if ($namespaceLevelNode instanceof Class_) { |
289 | 289 | $classShortName = $namespaceLevelNode->name; |
290 | - $className = $namespaceName ? $namespaceName .'\\' . $classShortName : $classShortName; |
|
290 | + $className = $namespaceName ? $namespaceName . '\\' . $classShortName : $classShortName; |
|
291 | 291 | |
292 | 292 | $namespaceLevelNode->setAttribute('fileName', $this->fileName); |
293 | 293 | $classes[$className] = new ReflectionClass($className, $namespaceLevelNode); |
@@ -311,7 +311,7 @@ discard block |
||
311 | 311 | foreach ($this->namespaceNode->stmts as $namespaceLevelNode) { |
312 | 312 | if ($namespaceLevelNode instanceof Function_) { |
313 | 313 | $funcShortName = $namespaceLevelNode->name; |
314 | - $functionName = $namespaceName ? $namespaceName .'\\' . $funcShortName : $funcShortName; |
|
314 | + $functionName = $namespaceName ? $namespaceName . '\\' . $funcShortName : $funcShortName; |
|
315 | 315 | |
316 | 316 | $namespaceLevelNode->setAttribute('fileName', $this->fileName); |
317 | 317 | $functions[$funcShortName] = new ReflectionFunction($functionName, $namespaceLevelNode); |
@@ -111,7 +111,7 @@ |
||
111 | 111 | $this->getStartLine(), |
112 | 112 | $this->getEndLine(), |
113 | 113 | count($this->getParameters()), |
114 | - array_reduce($this->getParameters(), function ($str, ReflectionParameter $param) { |
|
114 | + array_reduce($this->getParameters(), function($str, ReflectionParameter $param) { |
|
115 | 115 | return $str . "\n " . $param; |
116 | 116 | }, '') |
117 | 117 | ); |
@@ -58,7 +58,7 @@ |
||
58 | 58 | Property $propertyType = null, |
59 | 59 | PropertyProperty $propertyNode = null) |
60 | 60 | { |
61 | - $this->className = $className; |
|
61 | + $this->className = $className; |
|
62 | 62 | if (!$propertyType || !$propertyNode) { |
63 | 63 | list ($propertyType, $propertyNode) = ReflectionEngine::parseClassProperty($className, $propertyName); |
64 | 64 | } |
@@ -141,14 +141,14 @@ discard block |
||
141 | 141 | } |
142 | 142 | } |
143 | 143 | |
144 | - $buildString = function (array $items, $indentLevel = 4) { |
|
144 | + $buildString = function(array $items, $indentLevel = 4) { |
|
145 | 145 | if (!count($items)) { |
146 | 146 | return ''; |
147 | 147 | } |
148 | 148 | $indent = "\n" . str_repeat(' ', $indentLevel); |
149 | 149 | return $indent . implode($indent, explode("\n", implode("\n", $items))); |
150 | 150 | }; |
151 | - $buildConstants = function (array $items, $indentLevel = 4) { |
|
151 | + $buildConstants = function(array $items, $indentLevel = 4) { |
|
152 | 152 | $str = ''; |
153 | 153 | foreach ($items as $name => $value) { |
154 | 154 | $str .= "\n" . str_repeat(' ', $indentLevel); |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | { |
218 | 218 | if (!isset($this->constants)) { |
219 | 219 | $directConstants = $this->findConstants(); |
220 | - $parentConstants = $this->recursiveCollect(function (array &$result, \ReflectionClass $instance) { |
|
220 | + $parentConstants = $this->recursiveCollect(function(array &$result, \ReflectionClass $instance) { |
|
221 | 221 | $result += $instance->getConstants(); |
222 | 222 | }); |
223 | 223 | $constants = $directConstants + $parentConstants; |
@@ -293,7 +293,7 @@ discard block |
||
293 | 293 | public function getInterfaces() |
294 | 294 | { |
295 | 295 | if (!isset($this->interfaceClasses)) { |
296 | - $this->interfaceClasses = $this->recursiveCollect(function (array &$result, \ReflectionClass $instance) { |
|
296 | + $this->interfaceClasses = $this->recursiveCollect(function(array &$result, \ReflectionClass $instance) { |
|
297 | 297 | if ($instance->isInterface()) { |
298 | 298 | $result[$instance->getName()] = $instance; |
299 | 299 | } |
@@ -328,7 +328,7 @@ discard block |
||
328 | 328 | { |
329 | 329 | if (!isset($this->methods)) { |
330 | 330 | $directMethods = $this->getDirectMethods(); |
331 | - $parentMethods = $this->recursiveCollect(function (array &$result, \ReflectionClass $instance) { |
|
331 | + $parentMethods = $this->recursiveCollect(function(array &$result, \ReflectionClass $instance) { |
|
332 | 332 | $result = array_merge($result, $instance->getMethods()); |
333 | 333 | }); |
334 | 334 | $methods = array_merge($directMethods, $parentMethods); |
@@ -391,7 +391,7 @@ discard block |
||
391 | 391 | { |
392 | 392 | if (!isset($this->properties)) { |
393 | 393 | $directProperties = $this->getDirectProperties(); |
394 | - $parentProperties = $this->recursiveCollect(function (array &$result, \ReflectionClass $instance) { |
|
394 | + $parentProperties = $this->recursiveCollect(function(array &$result, \ReflectionClass $instance) { |
|
395 | 395 | $reflectionProperties = []; |
396 | 396 | foreach ($instance->getProperties() as $reflectionProperty) { |
397 | 397 | if (!$reflectionProperty->isPrivate()) { |
@@ -663,7 +663,7 @@ discard block |
||
663 | 663 | |
664 | 664 | if (!$this->classLikeNode instanceof Class_) { |
665 | 665 | return false; |
666 | - } else{ |
|
666 | + } else { |
|
667 | 667 | $extends = $this->classLikeNode->extends; |
668 | 668 | if ($extends && $extends->toString() == $class) { |
669 | 669 | return true; |