Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2.032 |
Changes | 0 |
1 | <?php |
||
38 | 5 | public function enterNode(Node $node, Environment $env): Node |
|
39 | { |
||
40 | // If not initialized |
||
41 | 5 | if (null === $this->collection) { |
|
42 | // We have not executed BaseVisitor::init which means that we are not currently extracting |
||
43 | return $node; |
||
44 | } |
||
45 | |||
46 | return $this->worker->work($node, $this->collection, function () { |
||
47 | 5 | return $this->getAbsoluteFilePath(); |
|
48 | 5 | }); |
|
49 | } |
||
50 | |||
67 |