| Conditions | 4 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 35 | public function enterNode(Node $node) { |
||
| 36 | // Why this test ? |
||
| 37 | // - Method calls need a different handling, using MethodCall. |
||
| 38 | // - Closure calls are named by the variable holding them, and are |
||
| 39 | // necessarily defined, so don't need to be tracked. |
||
| 40 | if ($node instanceof FuncCall && isset($node->name->parts)) { |
||
| 41 | $func = implode('\\', $node->name->parts); |
||
| 42 | if (!isset($this->pad[$func])) { |
||
| 43 | $this->pad[$func] = []; |
||
| 44 | } |
||
| 45 | $this->pad[$func][] = $node->getAttribute('startLine') ?? '?'; |
||
| 46 | } |
||
| 50 |