Completed
Pull Request — master (#82)
by Loren
04:43
created
src/ReflectionProperty.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -352,7 +352,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Traits/ReflectionClassLikeTrait.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -134,17 +134,17 @@  discard block
 block discarded – undo
134 134
             }
135 135
         }
136 136
 
137
-        $buildString = function (array $items, $indentLevel = 4) {
137
+        $buildString = function(array $items, $indentLevel = 4) {
138 138
             if (!count($items)) {
139 139
                 return '';
140 140
             }
141
-            $indent = "\n" . str_repeat(' ', $indentLevel);
142
-            return $indent . implode($indent, explode("\n", implode("\n", $items)));
141
+            $indent = "\n".str_repeat(' ', $indentLevel);
142
+            return $indent.implode($indent, explode("\n", implode("\n", $items)));
143 143
         };
144
-        $buildConstants = function (array $items, $indentLevel = 4) {
144
+        $buildConstants = function(array $items, $indentLevel = 4) {
145 145
             $str = '';
146 146
             foreach ($items as $name => $value) {
147
-                $str .= "\n" . str_repeat(' ', $indentLevel);
147
+                $str .= "\n".str_repeat(' ', $indentLevel);
148 148
                 $str .= sprintf(
149 149
                     'Constant [ %s %s ] { %s }',
150 150
                     gettype($value),
@@ -168,8 +168,8 @@  discard block
 block discarded – undo
168 168
             ($isObject ? 'Object of class' : 'Class'),
169 169
             $modifiers,
170 170
             $this->getName(),
171
-            false !== $parentClass ? (' extends ' . $parentClass->getName()) : '',
172
-            $interfaceNames ? (' implements ' . implode(', ', $interfaceNames)) : '',
171
+            false !== $parentClass ? (' extends '.$parentClass->getName()) : '',
172
+            $interfaceNames ? (' implements '.implode(', ', $interfaceNames)) : '',
173 173
             $this->getFileName(),
174 174
             $this->getStartLine(),
175 175
             $this->getEndLine(),
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
     {
211 211
         if (!isset($this->constants)) {
212 212
             if ($this->classLikeNode) {
213
-                $this->constants = $this->recursiveCollect(function (array &$result, \ReflectionClass $instance) {
213
+                $this->constants = $this->recursiveCollect(function(array &$result, \ReflectionClass $instance) {
214 214
                     $result += $instance->getConstants();
215 215
                 });
216 216
                 $this->collectSelfConstants();
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
         $staticOrder   = [true, false];
257 257
         foreach ($staticOrder as $shouldBeStatic) {
258 258
             foreach ($properties as $property) {
259
-                $isStaticProperty     = $property->isStatic();
259
+                $isStaticProperty = $property->isStatic();
260 260
                 if ($shouldBeStatic !== $isStaticProperty) {
261 261
                     continue;
262 262
                 }
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
     {
348 348
         if (!isset($this->interfaceClasses)) {
349 349
             if ($this->classLikeNode) {
350
-                $this->interfaceClasses = $this->recursiveCollect(function (array &$result, \ReflectionClass $instance) {
350
+                $this->interfaceClasses = $this->recursiveCollect(function(array &$result, \ReflectionClass $instance) {
351 351
                     if ($instance->isInterface()) {
352 352
                         $result[$instance->name] = $instance;
353 353
                     }
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
         if (!isset($this->methods)) {
396 396
             if ($this->classLikeNode) {
397 397
                 $directMethods = ReflectionMethod::collectFromClassNode($this->classLikeNode, $this);
398
-                $parentMethods = $this->recursiveCollect(function (array &$result, \ReflectionClass $instance, $isParent) {
398
+                $parentMethods = $this->recursiveCollect(function(array &$result, \ReflectionClass $instance, $isParent) {
399 399
                     $reflectionMethods = [];
400 400
                     foreach ($instance->getMethods() as $reflectionMethod) {
401 401
                         if (!$isParent || !$reflectionMethod->isPrivate()) {
@@ -480,9 +480,9 @@  discard block
 block discarded – undo
480 480
      */
481 481
     public function getName()
482 482
     {
483
-        $namespaceName = $this->namespaceName ? $this->namespaceName . '\\' : '';
483
+        $namespaceName = $this->namespaceName ? $this->namespaceName.'\\' : '';
484 484
 
485
-        return $namespaceName . $this->getShortName();
485
+        return $namespaceName.$this->getShortName();
486 486
     }
487 487
 
488 488
     /**
@@ -536,7 +536,7 @@  discard block
 block discarded – undo
536 536
         if (!isset($this->properties)) {
537 537
             if ($this->classLikeNode) {
538 538
                 $directProperties = ReflectionProperty::collectFromClassNode($this->classLikeNode, $this->getName());
539
-                $parentProperties = $this->recursiveCollect(function (array &$result, \ReflectionClass $instance, $isParent) {
539
+                $parentProperties = $this->recursiveCollect(function(array &$result, \ReflectionClass $instance, $isParent) {
540 540
                     $reflectionProperties = [];
541 541
                     foreach ($instance->getProperties() as $reflectionProperty) {
542 542
                         if (!$isParent || !$reflectionProperty->isPrivate()) {
@@ -635,7 +635,7 @@  discard block
 block discarded – undo
635 635
                         break;
636 636
                     }
637 637
                 }
638
-                $aliases[$adaptation->newName] = $traitName . '::'. $methodName;
638
+                $aliases[$adaptation->newName] = $traitName.'::'.$methodName;
639 639
             }
640 640
         }
641 641
 
@@ -1095,7 +1095,7 @@  discard block
 block discarded – undo
1095 1095
     {
1096 1096
         return
1097 1097
             interface_exists($this->getName(), false) ||
1098
-            trait_exists($this->getName(), false)     ||
1098
+            trait_exists($this->getName(), false) ||
1099 1099
             class_exists($this->getName(), false);
1100 1100
     }
1101 1101
 }
Please login to merge, or discard this patch.
src/ReflectionMethod.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -142,12 +142,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.