Test Failed
Push — master ( 6d15a1...d2aec8 )
by Jinyun
02:07
created
src/leetcode/BinaryTreeMaximumPathSum.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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));
Please login to merge, or discard this patch.