@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | { |
| 21 | 21 | public function leaveNode(Node $node) |
| 22 | 22 | { |
| 23 | - if (! $node instanceof ClassMethod) { |
|
| 23 | + if ( ! $node instanceof ClassMethod) { |
|
| 24 | 24 | return; |
| 25 | 25 | } |
| 26 | 26 | |
@@ -28,14 +28,14 @@ discard block |
||
| 28 | 28 | |
| 29 | 29 | if ($node->returnType !== null) { |
| 30 | 30 | if (isset($node->returnType->name) && $node->returnType->name === 'void') { |
| 31 | - $ast = $parser->parse('<?php ' . MethodPatcher::CODENORET); |
|
| 31 | + $ast = $parser->parse('<?php '.MethodPatcher::CODENORET); |
|
| 32 | 32 | } elseif (isset($node->returnType->parts) && $node->returnType->parts[0] === 'void') { |
| 33 | - $ast = $parser->parse('<?php ' . MethodPatcher::CODENORET); |
|
| 33 | + $ast = $parser->parse('<?php '.MethodPatcher::CODENORET); |
|
| 34 | 34 | } else { |
| 35 | - $ast = $parser->parse('<?php ' . MethodPatcher::CODE); |
|
| 35 | + $ast = $parser->parse('<?php '.MethodPatcher::CODE); |
|
| 36 | 36 | } |
| 37 | 37 | } else { |
| 38 | - $ast = $parser->parse('<?php ' . MethodPatcher::CODE); |
|
| 38 | + $ast = $parser->parse('<?php '.MethodPatcher::CODE); |
|
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | if ($node->stmts !== null) { |
@@ -10,8 +10,8 @@ |
||
| 10 | 10 | |
| 11 | 11 | namespace Kenjis\MonkeyPatch\Patcher; |
| 12 | 12 | |
| 13 | -require __DIR__ . '/FunctionPatcher/NodeVisitor.php'; |
|
| 14 | -require __DIR__ . '/FunctionPatcher/Proxy.php'; |
|
| 13 | +require __DIR__.'/FunctionPatcher/NodeVisitor.php'; |
|
| 14 | +require __DIR__.'/FunctionPatcher/Proxy.php'; |
|
| 15 | 15 | |
| 16 | 16 | use Kenjis\MonkeyPatch\Patcher\FunctionPatcher\NodeVisitor; |
| 17 | 17 | use LogicException; |
@@ -10,8 +10,8 @@ |
||
| 10 | 10 | |
| 11 | 11 | namespace Kenjis\MonkeyPatch\Patcher; |
| 12 | 12 | |
| 13 | -require __DIR__ . '/ConstantPatcher/NodeVisitor.php'; |
|
| 14 | -require __DIR__ . '/ConstantPatcher/Proxy.php'; |
|
| 13 | +require __DIR__.'/ConstantPatcher/NodeVisitor.php'; |
|
| 14 | +require __DIR__.'/ConstantPatcher/Proxy.php'; |
|
| 15 | 15 | |
| 16 | 16 | use Kenjis\MonkeyPatch\Patcher\ConstantPatcher\NodeVisitor; |
| 17 | 17 | |
@@ -10,8 +10,8 @@ |
||
| 10 | 10 | |
| 11 | 11 | namespace Kenjis\MonkeyPatch\Patcher; |
| 12 | 12 | |
| 13 | -require __DIR__ . '/MethodPatcher/NodeVisitor.php'; |
|
| 14 | -require __DIR__ . '/MethodPatcher/PatchManager.php'; |
|
| 13 | +require __DIR__.'/MethodPatcher/NodeVisitor.php'; |
|
| 14 | +require __DIR__.'/MethodPatcher/PatchManager.php'; |
|
| 15 | 15 | |
| 16 | 16 | use Kenjis\MonkeyPatch\Patcher\MethodPatcher\NodeVisitor; |
| 17 | 17 | |