application/tests/_ci_phpunit_test/patcher/2.x/Patcher/MethodPatcher/NodeVisitor.php 1 location
|
@@ 19-31 (lines=13) @@
|
16 |
|
|
17 |
|
use Kenjis\MonkeyPatch\Patcher\MethodPatcher; |
18 |
|
|
19 |
|
class NodeVisitor extends NodeVisitorAbstract |
20 |
|
{ |
21 |
|
public function leaveNode(Node $node) |
22 |
|
{ |
23 |
|
if (! ($node instanceof ClassMethod)) |
24 |
|
{ |
25 |
|
return; |
26 |
|
} |
27 |
|
|
28 |
|
$pos = $node->getAttribute('startTokenPos'); |
29 |
|
MethodPatcher::$replacement[$pos] = true; |
30 |
|
} |
31 |
|
} |
32 |
|
|
application/tests/_ci_phpunit_test/patcher/3.x/Patcher/MethodPatcher/NodeVisitor.php 1 location
|
@@ 19-31 (lines=13) @@
|
16 |
|
|
17 |
|
use Kenjis\MonkeyPatch\Patcher\MethodPatcher; |
18 |
|
|
19 |
|
class NodeVisitor extends NodeVisitorAbstract |
20 |
|
{ |
21 |
|
public function leaveNode(Node $node) |
22 |
|
{ |
23 |
|
if (! ($node instanceof ClassMethod)) |
24 |
|
{ |
25 |
|
return; |
26 |
|
} |
27 |
|
|
28 |
|
$pos = $node->getAttribute('startTokenPos'); |
29 |
|
MethodPatcher::$replacement[$pos] = true; |
30 |
|
} |
31 |
|
} |
32 |
|
|
application/tests/_ci_phpunit_test/patcher/4.5/Patcher/MethodPatcher/NodeVisitor.php 1 location
|
@@ 19-31 (lines=13) @@
|
16 |
|
|
17 |
|
use Kenjis\MonkeyPatch\Patcher\MethodPatcher; |
18 |
|
|
19 |
|
class NodeVisitor extends NodeVisitorAbstract |
20 |
|
{ |
21 |
|
public function leaveNode(Node $node) |
22 |
|
{ |
23 |
|
if (! ($node instanceof ClassMethod)) |
24 |
|
{ |
25 |
|
return; |
26 |
|
} |
27 |
|
|
28 |
|
$pos = $node->getAttribute('startTokenPos'); |
29 |
|
MethodPatcher::$replacement[$pos] = true; |
30 |
|
} |
31 |
|
} |
32 |
|
|