| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | public function ignoreFunc(Node $node, array $ignoreFuncs) |
||
| 37 | { |
||
| 38 | /** @var FuncCall $funcCallNode */ |
||
| 39 | $funcCallNode = $node->getAttribute('parent')->getAttribute('parent'); |
||
| 40 | |||
| 41 | return |
||
| 42 | $funcCallNode instanceof FuncCall |
||
| 43 | && |
||
| 44 | $funcCallNode->name instanceof Name |
||
| 45 | && |
||
| 46 | in_array($funcCallNode->name->getLast(), $ignoreFuncs, true); |
||
| 47 | } |
||
| 48 | } |
||
| 49 |