| Conditions | 5 |
| Paths | 5 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | public static function dfsTreeValues(?TreeNode $tree, array &$list): void |
||
| 21 | { |
||
| 22 | if ($tree instanceof TreeNode) { |
||
| 23 | $list[] = $tree->val ?: null; |
||
| 24 | |||
| 25 | if ($tree->left) { |
||
| 26 | self::dfsTreeValues($tree->left, $list); |
||
| 27 | } |
||
| 28 | if ($tree->right) { |
||
| 29 | self::dfsTreeValues($tree->right, $list); |
||
| 30 | } |
||
| 85 |