Completed
Pull Request — master (#76)
by Loren
02:02
created
src/ValueResolver/NodeExpressionResolver.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
             ++$this->nodeLevel;
114 114
 
115 115
             $nodeType   = $node->getType();
116
-            $methodName = 'resolve' . str_replace('_', '', $nodeType);
116
+            $methodName = 'resolve'.str_replace('_', '', $nodeType);
117 117
             if (method_exists($this, $methodName)) {
118 118
                 $value = $this->$methodName($node);
119 119
             }
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
     protected function resolveScalarMagicConstMethod()
143 143
     {
144 144
         if ($this->context instanceof \ReflectionMethod) {
145
-            $fullName = $this->context->class . '::' . $this->context->getShortName();
145
+            $fullName = $this->context->class.'::'.$this->context->getShortName();
146 146
 
147 147
             return $fullName;
148 148
         }
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
                 $fileNamespace = new ReflectionFileNamespace($fileName, $namespaceName);
236 236
                 if ($fileNamespace->hasConstant($constantName)) {
237 237
                     $constantValue = $fileNamespace->getConstant($constantName);
238
-                    $constantName  = $fileNamespace->getName() . '\\' . $constantName;
238
+                    $constantName  = $fileNamespace->getName().'\\'.$constantName;
239 239
                     $isResolved    = true;
240 240
                 }
241 241
             }
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
         }
271 271
 
272 272
         $this->isConstant = true;
273
-        $this->constantName = (string)$node->class . '::' . $constantName;
273
+        $this->constantName = (string) $node->class.'::'.$constantName;
274 274
 
275 275
         return $refClass->getConstant($constantName);
276 276
     }
@@ -354,7 +354,7 @@  discard block
 block discarded – undo
354 354
 
355 355
     protected function resolveExprBinaryOpConcat(Expr\BinaryOp\Concat $node)
356 356
     {
357
-        return $this->resolve($node->left) . $this->resolve($node->right);
357
+        return $this->resolve($node->left).$this->resolve($node->right);
358 358
     }
359 359
 
360 360
     protected function resolveExprTernary(Expr\Ternary $node)
Please login to merge, or discard this patch.
src/ReflectionType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 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
         }
Please login to merge, or discard this patch.
src/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,4 +17,4 @@
 block discarded – undo
17 17
  */
18 18
 ReflectionEngine::init(new ComposerLocator());
19 19
 
20
-require(__DIR__ . '/polyfill.php');
20
+require(__DIR__.'/polyfill.php');
Please login to merge, or discard this patch.