| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function ignoreFunc(Node $node, array $ignoreFuncs) |
||
| 29 | { |
||
| 30 | /** @var FuncCall $funcCallNode */ |
||
| 31 | $funcCallNode = $node->getAttribute('parent')->getAttribute('parent'); |
||
| 32 | |||
| 33 | return |
||
| 34 | $funcCallNode instanceof FuncCall |
||
| 35 | && |
||
| 36 | $funcCallNode->name instanceof Name |
||
| 37 | && |
||
| 38 | in_array($funcCallNode->name->getLast(), $ignoreFuncs, true); |
||
| 39 | } |
||
| 40 | } |
||
| 41 |