@@ -17,4 +17,4 @@ |
||
| 17 | 17 | */ |
| 18 | 18 | ReflectionEngine::init(new ComposerLocator()); |
| 19 | 19 | |
| 20 | -require(__DIR__ . '/polyfill.php'); |
|
| 20 | +require(__DIR__.'/polyfill.php'); |
|
@@ -141,7 +141,7 @@ discard block |
||
| 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 | } |
@@ -233,7 +233,7 @@ discard block |
||
| 233 | 233 | $fileNamespace = new ReflectionFileNamespace($fileName, $namespaceName); |
| 234 | 234 | if ($fileNamespace->hasConstant($constantName)) { |
| 235 | 235 | $constantValue = $fileNamespace->getConstant($constantName); |
| 236 | - $constantName = $fileNamespace->getName() . '\\' . $constantName; |
|
| 236 | + $constantName = $fileNamespace->getName().'\\'.$constantName; |
|
| 237 | 237 | $isResolved = true; |
| 238 | 238 | } |
| 239 | 239 | } |
@@ -260,7 +260,7 @@ discard block |
||
| 260 | 260 | $reason = 'Unable'; |
| 261 | 261 | if ($classToReflect instanceof Expr) { |
| 262 | 262 | $methodName = $this->getDispatchMethodFor($classToReflect); |
| 263 | - $reason = "Method " . __CLASS__ . "::{$methodName}() not found trying"; |
|
| 263 | + $reason = "Method ".__CLASS__."::{$methodName}() not found trying"; |
|
| 264 | 264 | } |
| 265 | 265 | throw new ReflectionException("$reason to resolve class constant."); |
| 266 | 266 | } |
@@ -277,7 +277,7 @@ discard block |
||
| 277 | 277 | } |
| 278 | 278 | |
| 279 | 279 | $this->isConstant = true; |
| 280 | - $this->constantName = (string)$classToReflect . '::' . $constantName; |
|
| 280 | + $this->constantName = (string) $classToReflect.'::'.$constantName; |
|
| 281 | 281 | |
| 282 | 282 | return $refClass->getConstant($constantName); |
| 283 | 283 | } |
@@ -361,7 +361,7 @@ discard block |
||
| 361 | 361 | |
| 362 | 362 | protected function resolveExprBinaryOpConcat(Expr\BinaryOp\Concat $node) |
| 363 | 363 | { |
| 364 | - return $this->resolve($node->left) . $this->resolve($node->right); |
|
| 364 | + return $this->resolve($node->left).$this->resolve($node->right); |
|
| 365 | 365 | } |
| 366 | 366 | |
| 367 | 367 | protected function resolveExprTernary(Expr\Ternary $node) |
@@ -445,7 +445,7 @@ discard block |
||
| 445 | 445 | private function getDispatchMethodFor(Node $node) |
| 446 | 446 | { |
| 447 | 447 | $nodeType = $node->getType(); |
| 448 | - return 'resolve' . str_replace('_', '', $nodeType); |
|
| 448 | + return 'resolve'.str_replace('_', '', $nodeType); |
|
| 449 | 449 | } |
| 450 | 450 | |
| 451 | 451 | /** |