@@ -1,7 +1,7 @@ |
||
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> |
@@ -52,7 +52,7 @@ |
||
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 | /** |
@@ -93,8 +93,7 @@ discard block |
||
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 |
||
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 | } |