Completed
Pull Request — master (#122)
by
unknown
21:01
created
src/ValueResolver/NodeExpressionResolver.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -523,7 +523,7 @@
 block discarded – undo
523 523
 
524 524
             if (method_exists($this->context, 'getDeclaringClass')) {
525 525
                 return $this->context->getDeclaringClass()
526
-                                     ->getParentClass();
526
+                                        ->getParentClass();
527 527
             }
528 528
         }
529 529
 
Please login to merge, or discard this patch.
src/Traits/ReflectionClassLikeTrait.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -225,8 +225,8 @@  discard block
 block discarded – undo
225 225
      */
226 226
     public function getConstants(
227 227
         ?int $filter = ReflectionClassConstant::IS_PUBLIC
228
-                      |ReflectionClassConstant::IS_PROTECTED
229
-                      |ReflectionClassConstant::IS_PRIVATE
228
+                        |ReflectionClassConstant::IS_PROTECTED
229
+                        |ReflectionClassConstant::IS_PRIVATE
230 230
     ): array {
231 231
         if (!isset($this->constants)) {
232 232
             $this->constants = $this->recursiveCollect(
@@ -566,8 +566,8 @@  discard block
 block discarded – undo
566 566
      */
567 567
     public function getReflectionConstants(
568 568
         ?int $filter = ReflectionClassConstant::IS_PUBLIC
569
-                      |ReflectionClassConstant::IS_PROTECTED
570
-                      |ReflectionClassConstant::IS_PRIVATE
569
+                        |ReflectionClassConstant::IS_PROTECTED
570
+                        |ReflectionClassConstant::IS_PRIVATE
571 571
     ): array {
572 572
         if (!isset($this->classConstants)) {
573 573
             $directClassConstants = ReflectionClassConstant::collectFromClassNode(
Please login to merge, or discard this patch.
src/ReflectionProperty.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,9 @@
 block discarded – undo
148 148
                             }
149 149
                         }
150 150
 
151
-                        if ($quoteString === null) $quoteString = true;
151
+                        if ($quoteString === null) {
152
+                            $quoteString = true;
153
+                        }
152 154
                         break;
153 155
 
154 156
                     case 'boolean':
Please login to merge, or discard this patch.
src/ReflectionParameter.php 1 patch
Braces   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -310,9 +310,7 @@
 block discarded – undo
310 310
         $parameterType = $this->parameterNode->type;
311 311
         if ($parameterType instanceof NullableType) {
312 312
             $parameterType = $parameterType->type;
313
-        }
314
-
315
-        elseif ($parameterType instanceof UnionType) {
313
+        } elseif ($parameterType instanceof UnionType) {
316 314
             $types = [];
317 315
             foreach ($parameterType->types as $type) {
318 316
                 $types[] = $this->resolveReflectionNamedType($type);
Please login to merge, or discard this patch.
src/ReflectionEngine.php 1 patch
Braces   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -233,9 +233,7 @@
 block discarded – undo
233 233
                         return [$classLevelNode, $classProperty, null];
234 234
                     }
235 235
                 }
236
-            }
237
-
238
-            else if ($classLevelNode instanceof ClassMethod
236
+            } else if ($classLevelNode instanceof ClassMethod
239 237
                 && $classLevelNode->name->toString() === '__construct'
240 238
             ) {
241 239
                 foreach ($classLevelNode->getParams() as $param) {
Please login to merge, or discard this patch.