Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2.0185 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
59 | 6 | protected function doEnterNode($node) |
|
60 | { |
||
61 | // If not initialized |
||
62 | 6 | if (null === $this->collection) { |
|
63 | // We have not executed BaseVisitor::init which means that we are not currently extracting |
||
64 | return $node; |
||
65 | } |
||
66 | |||
67 | 6 | return $this->worker->work($node, $this->collection, function () { |
|
68 | 6 | return $this->getAbsoluteFilePath(); |
|
69 | 6 | }); |
|
70 | } |
||
71 | } |
||
72 |