Completed
Pull Request — master (#127)
by Abdul Malik
22:39 queued 02:05
created
src/ValueResolver/NodeExpressionResolver.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
     protected function resolveScalarMagicConstMethod(): string
159 159
     {
160 160
         if ($this->context instanceof ReflectionMethod) {
161
-            $fullName = $this->context->getDeclaringClass()->name . '::' . $this->context->getShortName();
161
+            $fullName = $this->context->getDeclaringClass()->name.'::'.$this->context->getShortName();
162 162
 
163 163
             return $fullName;
164 164
         }
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
             $fileNamespace = new ReflectionFileNamespace($fileName, $namespaceName);
250 250
             if ($fileNamespace->hasConstant($constantName)) {
251 251
                 $constantValue = $fileNamespace->getConstant($constantName);
252
-                $constantName  = $fileNamespace->getName() . '\\' . $constantName;
252
+                $constantName  = $fileNamespace->getName().'\\'.$constantName;
253 253
                 $isResolved    = true;
254 254
             }
255 255
         }
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
 
265 265
             if ($this->isParameter) {
266 266
                 if (isset($namespaceName)) {
267
-                    return $namespaceName . '\\' . $this->constantName;
267
+                    return $namespaceName.'\\'.$this->constantName;
268 268
                 }
269 269
 
270 270
                 return $this->constantName;
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
                 $reason = 'Unable';
284 284
                 if ($classToReflect instanceof Expr) {
285 285
                     $methodName = $this->getDispatchMethodFor($classToReflect);
286
-                    $reason     = "Method " . __CLASS__ . "::{$methodName}() not found trying";
286
+                    $reason     = "Method ".__CLASS__."::{$methodName}() not found trying";
287 287
                 }
288 288
                 throw new ReflectionException("$reason to resolve class constant.");
289 289
             }
@@ -301,13 +301,13 @@  discard block
 block discarded – undo
301 301
 
302 302
         if ($node->class instanceof Name && $node->class->isSpecialClassName() && $this->isParameter) {
303 303
             $this->isConstant = true;
304
-            $this->constantName = $node->class . '::' . $constantName;
304
+            $this->constantName = $node->class.'::'.$constantName;
305 305
 
306 306
             return $this->constantName;
307 307
         }
308 308
 
309 309
         $this->isConstant   = true;
310
-        $this->constantName = $classToReflect . '::' . $constantName;
310
+        $this->constantName = $classToReflect.'::'.$constantName;
311 311
 
312 312
         return $refClass->getConstant($constantName);
313 313
     }
@@ -396,7 +396,7 @@  discard block
 block discarded – undo
396 396
             return $printer->prettyPrintExpr($node);
397 397
         }
398 398
 
399
-        return $this->resolve($node->left) . $this->resolve($node->right);
399
+        return $this->resolve($node->left).$this->resolve($node->right);
400 400
     }
401 401
 
402 402
     protected function resolveExprTernary(Expr\Ternary $node)
@@ -481,7 +481,7 @@  discard block
 block discarded – undo
481 481
     {
482 482
         $nodeType = $node->getType();
483 483
 
484
-        return 'resolve' . str_replace('_', '', $nodeType);
484
+        return 'resolve'.str_replace('_', '', $nodeType);
485 485
     }
486 486
 
487 487
     /**
Please login to merge, or discard this patch.