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