@@ -125,14 +125,14 @@ discard block |
||
| 125 | 125 | } |
| 126 | 126 | } |
| 127 | 127 | |
| 128 | - $buildString = function (array $items, $indentLevel = 4) { |
|
| 128 | + $buildString = function(array $items, $indentLevel = 4) { |
|
| 129 | 129 | if (!count($items)) { |
| 130 | 130 | return ''; |
| 131 | 131 | } |
| 132 | 132 | $indent = "\n" . str_repeat(' ', $indentLevel); |
| 133 | 133 | return $indent . implode($indent, explode("\n", implode("\n", $items))); |
| 134 | 134 | }; |
| 135 | - $buildConstants = function (array $items, $indentLevel = 4) { |
|
| 135 | + $buildConstants = function(array $items, $indentLevel = 4) { |
|
| 136 | 136 | $str = ''; |
| 137 | 137 | foreach ($items as $name => $value) { |
| 138 | 138 | $str .= "\n" . str_repeat(' ', $indentLevel); |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | { |
| 202 | 202 | if (!isset($this->constants)) { |
| 203 | 203 | $directConstants = $this->findConstants(); |
| 204 | - $parentConstants = $this->recursiveCollect(function (array &$result, \ReflectionClass $instance) { |
|
| 204 | + $parentConstants = $this->recursiveCollect(function(array &$result, \ReflectionClass $instance) { |
|
| 205 | 205 | $result += $instance->getConstants(); |
| 206 | 206 | }); |
| 207 | 207 | $constants = $directConstants + $parentConstants; |
@@ -240,7 +240,7 @@ discard block |
||
| 240 | 240 | $staticOrder = [true, false]; |
| 241 | 241 | foreach ($staticOrder as $shouldBeStatic) { |
| 242 | 242 | foreach ($properties as $property) { |
| 243 | - $isStaticProperty = $property->isStatic(); |
|
| 243 | + $isStaticProperty = $property->isStatic(); |
|
| 244 | 244 | if ($shouldBeStatic !== $isStaticProperty) { |
| 245 | 245 | continue; |
| 246 | 246 | } |
@@ -302,7 +302,7 @@ discard block |
||
| 302 | 302 | public function getInterfaces() |
| 303 | 303 | { |
| 304 | 304 | if (!isset($this->interfaceClasses)) { |
| 305 | - $this->interfaceClasses = $this->recursiveCollect(function (array &$result, \ReflectionClass $instance) { |
|
| 305 | + $this->interfaceClasses = $this->recursiveCollect(function(array &$result, \ReflectionClass $instance) { |
|
| 306 | 306 | if ($instance->isInterface()) { |
| 307 | 307 | $result[$instance->name] = $instance; |
| 308 | 308 | } |
@@ -337,7 +337,7 @@ discard block |
||
| 337 | 337 | { |
| 338 | 338 | if (!isset($this->methods)) { |
| 339 | 339 | $directMethods = ReflectionMethod::collectFromClassNode($this->classLikeNode, $this->getName()); |
| 340 | - $parentMethods = $this->recursiveCollect(function (array &$result, \ReflectionClass $instance) { |
|
| 340 | + $parentMethods = $this->recursiveCollect(function(array &$result, \ReflectionClass $instance) { |
|
| 341 | 341 | $result = array_merge($result, $instance->getMethods()); |
| 342 | 342 | }); |
| 343 | 343 | $methods = array_merge($directMethods, $parentMethods); |
@@ -400,7 +400,7 @@ discard block |
||
| 400 | 400 | { |
| 401 | 401 | if (!isset($this->properties)) { |
| 402 | 402 | $directProperties = ReflectionProperty::collectFromClassNode($this->classLikeNode, $this->getName()); |
| 403 | - $parentProperties = $this->recursiveCollect(function (array &$result, \ReflectionClass $instance) { |
|
| 403 | + $parentProperties = $this->recursiveCollect(function(array &$result, \ReflectionClass $instance) { |
|
| 404 | 404 | $reflectionProperties = []; |
| 405 | 405 | foreach ($instance->getProperties() as $reflectionProperty) { |
| 406 | 406 | if (!$reflectionProperty->isPrivate()) { |