Passed
Push — master ( 7a7143...02d84d )
by Patrick
02:37
created
library/Trapdirector/Tables/TrapDirectorTableGrouping.php 1 patch
Braces   +12 added lines, -6 removed lines patch added patch discarded remove patch
@@ -61,10 +61,11 @@  discard block
 block discarded – undo
61 61
      */
62 62
     public function groupingEvalNext(string $val1, string $val2)
63 63
     {
64
-        if ($val1 != $val2)
65
-            return TRUE;
66
-        else
67
-            return FALSE;
64
+        if ($val1 != $val2) {
65
+                    return TRUE;
66
+        } else {
67
+                    return FALSE;
68
+        }
68 69
     }
69 70
     
70 71
     /**
@@ -74,11 +75,16 @@  discard block
 block discarded – undo
74 75
      */
75 76
     public function groupingNextLine( $values)
76 77
     {
77
-        if ($this->grouppingActive === FALSE) return '';
78
+        if ($this->grouppingActive === FALSE) {
79
+        	return '';
80
+        }
78 81
 
79 82
         $dbcol = $this->groupingColumn;
80 83
         $dbVal = $values->$dbcol;
81
-        if ( $dbVal === NULL ) $dbVal = '0'; // Set default to 0
84
+        if ( $dbVal === NULL ) {
85
+        	$dbVal = '0';
86
+        }
87
+        // Set default to 0
82 88
         if ($this->groupingVal == '' || $this->groupingEvalNext($this->groupingVal ,$dbVal) === TRUE )
83 89
         {
84 90
             $this->groupingVal = $dbVal;
Please login to merge, or discard this patch.