Completed
Pull Request — master (#82)
by Loren
02:45 queued 01:04
created
src/ValueResolver/NodeExpressionResolver.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
     protected function resolveScalarMagicConstMethod()
142 142
     {
143 143
         if ($this->context instanceof \ReflectionMethod) {
144
-            $fullName = $this->context->getDeclaringClass()->name . '::' . $this->context->getShortName();
144
+            $fullName = $this->context->getDeclaringClass()->name.'::'.$this->context->getShortName();
145 145
 
146 146
             return $fullName;
147 147
         }
@@ -228,13 +228,13 @@  discard block
 block discarded – undo
228 228
 
229 229
         if (!$isFQNConstant) {
230 230
             if (method_exists($this->context, 'getFileName')) {
231
-                $fileName      = $this->context->getFileName();
231
+                $fileName = $this->context->getFileName();
232 232
                 if ($fileName !== false) {
233 233
                     $namespaceName = $this->resolveScalarMagicConstNamespace();
234 234
                     $fileNamespace = new ReflectionFileNamespace($fileName, $namespaceName);
235 235
                     if ($fileNamespace->hasConstant($constantName)) {
236 236
                         $constantValue = $fileNamespace->getConstant($constantName);
237
-                        $constantName  = $fileNamespace->getName() . '\\' . $constantName;
237
+                        $constantName  = $fileNamespace->getName().'\\'.$constantName;
238 238
                         $isResolved    = true;
239 239
                     }
240 240
                 }
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
                 $reason = 'Unable';
263 263
                 if ($classToReflect instanceof Expr) {
264 264
                     $methodName = $this->getDispatchMethodFor($classToReflect);
265
-                    $reason = "Method " . __CLASS__ . "::{$methodName}() not found trying";
265
+                    $reason = "Method ".__CLASS__."::{$methodName}() not found trying";
266 266
                 }
267 267
                 throw new ReflectionException("$reason to resolve class constant.");
268 268
             }
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
         }
280 280
 
281 281
         $this->isConstant = true;
282
-        $this->constantName = (string)$classToReflect . '::' . $constantName;
282
+        $this->constantName = (string) $classToReflect.'::'.$constantName;
283 283
 
284 284
         return $refClass->getConstant($constantName);
285 285
     }
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
 
364 364
     protected function resolveExprBinaryOpConcat(Expr\BinaryOp\Concat $node)
365 365
     {
366
-        return $this->resolve($node->left) . $this->resolve($node->right);
366
+        return $this->resolve($node->left).$this->resolve($node->right);
367 367
     }
368 368
 
369 369
     protected function resolveExprTernary(Expr\Ternary $node)
@@ -447,7 +447,7 @@  discard block
 block discarded – undo
447 447
     private function getDispatchMethodFor(Node $node)
448 448
     {
449 449
         $nodeType = $node->getType();
450
-        return 'resolve' . str_replace('_', '', $nodeType);
450
+        return 'resolve'.str_replace('_', '', $nodeType);
451 451
     }
452 452
 
453 453
     /**
Please login to merge, or discard this patch.
src/ReflectionType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
             'int'  => 'integer',
86 86
             'bool' => 'boolean'
87 87
         ];
88
-        $displayType = (string)$type;
88
+        $displayType = (string) $type;
89 89
         if (isset($typeMap[$displayType])) {
90 90
             $displayType = $typeMap[$displayType];
91 91
         }
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     public function wasIncluded()
109 109
     {
110 110
         return
111
-            $this->isBuiltin()                   ||
111
+            $this->isBuiltin() ||
112 112
             interface_exists($this->type, false) ||
113 113
             trait_exists($this->type, false) ||
114 114
             class_exists($this->type, false);
Please login to merge, or discard this patch.