Passed
Branch main (26cc78)
by Thierry
02:40
created
src/Db/Admin.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -93,8 +93,7 @@  discard block
 block discarded – undo
93 93
      */
94 94
     public function applySqlFunction(string $function, string $column)
95 95
     {
96
-        return ($function ? ($function == 'unixepoch' ? "DATETIME($column, '$function')" :
97
-            ($function == 'count distinct' ? 'COUNT(DISTINCT ' : strtoupper("$function(")) . "$column)") : $column);
96
+        return ($function ? ($function == 'unixepoch' ? "DATETIME($column, '$function')" : ($function == 'count distinct' ? 'COUNT(DISTINCT ' : strtoupper("$function(")) . "$column)") : $column);
98 97
     }
99 98
 
100 99
     /**
@@ -169,7 +168,7 @@  discard block
 block discarded – undo
169 168
                     }
170 169
                 }
171 170
                 if (\preg_match("~ IDENTIFIED BY PASSWORD '([^']+)~", $row[0], $match)) {
172
-                    $password  = $match[1];
171
+                    $password = $match[1];
173 172
                 }
174 173
             }
175 174
         }
Please login to merge, or discard this patch.