@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | |
19 | 19 | public static function maxPathSum2(TreeNode $root): int |
20 | 20 | { |
21 | - $helper = static function (TreeNode $node) { |
|
21 | + $helper = static function(TreeNode $node) { |
|
22 | 22 | [$order, $stack] = [[], [$node]]; |
23 | 23 | while ($stack) { |
24 | 24 | $top = array_pop($stack); |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | |
57 | 57 | private static function helper(?TreeNode $node, int &$max): int |
58 | 58 | { |
59 | - if (! $node) { |
|
59 | + if (!$node) { |
|
60 | 60 | return 0; |
61 | 61 | } |
62 | 62 | $left = max(0, self::helper($node->left, $max)); |