@@ -133,17 +133,17 @@ discard block |
||
133 | 133 | } |
134 | 134 | } |
135 | 135 | |
136 | - $buildString = function (array $items, $indentLevel = 4) { |
|
136 | + $buildString = function(array $items, $indentLevel = 4) { |
|
137 | 137 | if (!count($items)) { |
138 | 138 | return ''; |
139 | 139 | } |
140 | - $indent = "\n" . str_repeat(' ', $indentLevel); |
|
141 | - return $indent . implode($indent, explode("\n", implode("\n", $items))); |
|
140 | + $indent = "\n".str_repeat(' ', $indentLevel); |
|
141 | + return $indent.implode($indent, explode("\n", implode("\n", $items))); |
|
142 | 142 | }; |
143 | - $buildConstants = function (array $items, $indentLevel = 4) { |
|
143 | + $buildConstants = function(array $items, $indentLevel = 4) { |
|
144 | 144 | $str = ''; |
145 | 145 | foreach ($items as $name => $value) { |
146 | - $str .= "\n" . str_repeat(' ', $indentLevel); |
|
146 | + $str .= "\n".str_repeat(' ', $indentLevel); |
|
147 | 147 | $str .= sprintf( |
148 | 148 | 'Constant [ %s %s ] { %s }', |
149 | 149 | gettype($value), |
@@ -167,8 +167,8 @@ discard block |
||
167 | 167 | ($isObject ? 'Object of class' : 'Class'), |
168 | 168 | $modifiers, |
169 | 169 | $this->getName(), |
170 | - false !== $parentClass ? (' extends ' . $parentClass->getName()) : '', |
|
171 | - $interfaceNames ? (' implements ' . implode(', ', $interfaceNames)) : '', |
|
170 | + false !== $parentClass ? (' extends '.$parentClass->getName()) : '', |
|
171 | + $interfaceNames ? (' implements '.implode(', ', $interfaceNames)) : '', |
|
172 | 172 | $this->getFileName(), |
173 | 173 | $this->getStartLine(), |
174 | 174 | $this->getEndLine(), |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | public function getConstants() |
209 | 209 | { |
210 | 210 | if (!isset($this->constants)) { |
211 | - $this->constants = $this->recursiveCollect(function (array &$result, \ReflectionClass $instance) { |
|
211 | + $this->constants = $this->recursiveCollect(function(array &$result, \ReflectionClass $instance) { |
|
212 | 212 | $result += $instance->getConstants(); |
213 | 213 | }); |
214 | 214 | $this->collectSelfConstants(); |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | $staticOrder = [true, false]; |
246 | 246 | foreach ($staticOrder as $shouldBeStatic) { |
247 | 247 | foreach ($properties as $property) { |
248 | - $isStaticProperty = $property->isStatic(); |
|
248 | + $isStaticProperty = $property->isStatic(); |
|
249 | 249 | if ($shouldBeStatic !== $isStaticProperty) { |
250 | 250 | continue; |
251 | 251 | } |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | public function getInterfaces() |
310 | 310 | { |
311 | 311 | if (!isset($this->interfaceClasses)) { |
312 | - $this->interfaceClasses = $this->recursiveCollect(function (array &$result, \ReflectionClass $instance) { |
|
312 | + $this->interfaceClasses = $this->recursiveCollect(function(array &$result, \ReflectionClass $instance) { |
|
313 | 313 | if ($instance->isInterface()) { |
314 | 314 | $result[$instance->name] = $instance; |
315 | 315 | } |
@@ -346,7 +346,7 @@ discard block |
||
346 | 346 | { |
347 | 347 | if (!isset($this->methods)) { |
348 | 348 | $directMethods = ReflectionMethod::collectFromClassNode($this->classLikeNode, $this); |
349 | - $parentMethods = $this->recursiveCollect(function (array &$result, \ReflectionClass $instance, $isParent) { |
|
349 | + $parentMethods = $this->recursiveCollect(function(array &$result, \ReflectionClass $instance, $isParent) { |
|
350 | 350 | $reflectionMethods = []; |
351 | 351 | foreach ($instance->getMethods() as $reflectionMethod) { |
352 | 352 | if (!$isParent || !$reflectionMethod->isPrivate()) { |
@@ -416,9 +416,9 @@ discard block |
||
416 | 416 | */ |
417 | 417 | public function getName() |
418 | 418 | { |
419 | - $namespaceName = $this->namespaceName ? $this->namespaceName . '\\' : ''; |
|
419 | + $namespaceName = $this->namespaceName ? $this->namespaceName.'\\' : ''; |
|
420 | 420 | |
421 | - return $namespaceName . $this->getShortName(); |
|
421 | + return $namespaceName.$this->getShortName(); |
|
422 | 422 | } |
423 | 423 | |
424 | 424 | /** |
@@ -462,7 +462,7 @@ discard block |
||
462 | 462 | { |
463 | 463 | if (!isset($this->properties)) { |
464 | 464 | $directProperties = ReflectionProperty::collectFromClassNode($this->classLikeNode, $this->getName()); |
465 | - $parentProperties = $this->recursiveCollect(function (array &$result, \ReflectionClass $instance, $isParent) { |
|
465 | + $parentProperties = $this->recursiveCollect(function(array &$result, \ReflectionClass $instance, $isParent) { |
|
466 | 466 | $reflectionProperties = []; |
467 | 467 | foreach ($instance->getProperties() as $reflectionProperty) { |
468 | 468 | if (!$isParent || !$reflectionProperty->isPrivate()) { |
@@ -542,7 +542,7 @@ discard block |
||
542 | 542 | break; |
543 | 543 | } |
544 | 544 | } |
545 | - $aliases[$adaptation->newName] = $traitName . '::'. $methodName; |
|
545 | + $aliases[$adaptation->newName] = $traitName.'::'.$methodName; |
|
546 | 546 | } |
547 | 547 | } |
548 | 548 |