Passed
Branch main (26cc78)
by Thierry
02:40
created
templates/views/bootstrap3/menu/schemas.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
                 <div class="input-group">
2
-<?php if(isset($this->schemas) && ($this->schemas)): ?>
2
+<?php if (isset($this->schemas) && ($this->schemas)): ?>
3 3
                     <select class="form-control" id="adminer-schema-select">
4
-<?php foreach($this->schemas as $schema): ?>
4
+<?php foreach ($this->schemas as $schema): ?>
5 5
                         <option value="<?php echo $schema ?>"><?php echo $schema ?></option>
6 6
 <?php endforeach ?>
7 7
                     </select>
Please login to merge, or discard this patch.
src/DbAdmin/ViewTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
             $this->viewAdmin = new ViewAdmin();
53 53
             $this->viewAdmin->init($this->admin());
54 54
         }
55
-        return $this->viewAdmin ;
55
+        return $this->viewAdmin;
56 56
     }
57 57
 
58 58
     /**
Please login to merge, or discard this patch.
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.