Completed
Push — master ( f248bf...b86f33 )
by Alexander
03:13
created
src/Traits/ReflectionClassLikeTrait.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -135,14 +135,14 @@  discard block
 block discarded – undo
135 135
             }
136 136
         }
137 137
 
138
-        $buildString = function (array $items, $indentLevel = 4) {
138
+        $buildString = function(array $items, $indentLevel = 4) {
139 139
             if (!count($items)) {
140 140
                 return '';
141 141
             }
142 142
             $indent = "\n" . str_repeat(' ', $indentLevel);
143 143
             return $indent . implode($indent, explode("\n", implode("\n", $items)));
144 144
         };
145
-        $buildConstants = function (array $items, $indentLevel = 4) {
145
+        $buildConstants = function(array $items, $indentLevel = 4) {
146 146
             $str = '';
147 147
             foreach ($items as $name => $value) {
148 148
                 $str .= "\n" . str_repeat(' ', $indentLevel);
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
     {
212 212
         if (!isset($this->constants)) {
213 213
             $directConstants = $this->findConstants();
214
-            $parentConstants = $this->recursiveCollect(function (array &$result, \ReflectionClass $instance) {
214
+            $parentConstants = $this->recursiveCollect(function(array &$result, \ReflectionClass $instance) {
215 215
                 $result += $instance->getConstants();
216 216
             });
217 217
             $constants = $directConstants + $parentConstants;
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
     public function getInterfaces()
278 278
     {
279 279
         if (!isset($this->interfaceClasses)) {
280
-            $this->interfaceClasses = $this->recursiveCollect(function (array &$result, \ReflectionClass $instance) {
280
+            $this->interfaceClasses = $this->recursiveCollect(function(array &$result, \ReflectionClass $instance) {
281 281
                 if ($instance->isInterface()) {
282 282
                     $result[$instance->name] = $instance;
283 283
                 }
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
     {
313 313
         if (!isset($this->methods)) {
314 314
             $directMethods = ReflectionMethod::collectFromClassNode($this->classLikeNode, $this->getName());
315
-            $parentMethods = $this->recursiveCollect(function (array &$result, \ReflectionClass $instance) {
315
+            $parentMethods = $this->recursiveCollect(function(array &$result, \ReflectionClass $instance) {
316 316
                 $result = array_merge($result, $instance->getMethods());
317 317
             });
318 318
             $methods = array_merge($directMethods, $parentMethods);
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
     {
376 376
         if (!isset($this->properties)) {
377 377
             $directProperties = ReflectionProperty::collectFromClassNode($this->classLikeNode, $this->getName());
378
-            $parentProperties = $this->recursiveCollect(function (array &$result, \ReflectionClass $instance) {
378
+            $parentProperties = $this->recursiveCollect(function(array &$result, \ReflectionClass $instance) {
379 379
                 $reflectionProperties = [];
380 380
                 foreach ($instance->getProperties() as $reflectionProperty) {
381 381
                     if (!$reflectionProperty->isPrivate()) {
Please login to merge, or discard this patch.