Passed
Push — main ( 16e90c...e85b0e )
by Thierry
01:49
created
templates/views/bootstrap3/table/select/sorting-show.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
         <div class="row row-no-gutters">
2
-<?php $i = 0; foreach($this->options['values'] as $value): ?>
2
+<?php $i = 0; foreach ($this->options['values'] as $value): ?>
3 3
             <div class="col-md-6">
4 4
                 <input class="form-control" name="order[<?php
5 5
                     echo $i ?>]" value="<?php echo $value['col'] ?>" />
Please login to merge, or discard this patch.
templates/views/bootstrap3/table/select/filters-show.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
         <div class="row row-no-gutters">
2
-<?php $i = 0; foreach($this->options['values'] as $value): ?>
2
+<?php $i = 0; foreach ($this->options['values'] as $value): ?>
3 3
             <div class="col-md-4">
4 4
                 <input class="form-control" name="where[<?php
5 5
                     echo $i ?>][col]" value="<?php echo $value['col'] ?>" />
Please login to merge, or discard this patch.
templates/views/bootstrap3/sql/dump.sql.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,18 +1,18 @@
 block discarded – undo
1
-<?php if(is_array($this->headers)): ?>
1
+<?php if (is_array($this->headers)): ?>
2 2
 -- Adminer <?php echo $this->headers['version'], ' ',
3 3
                     $this->headers['driver'], ' ',
4 4
                     $this->headers['server'] ?> dump
5 5
 
6
-<?php if(($this->headers['sql'])): ?>
6
+<?php if (($this->headers['sql'])): ?>
7 7
 SET NAMES utf8;
8 8
 SET time_zone = '+00:00';
9 9
 SET foreign_key_checks = 0;
10
-<?php if(($this->headers['data_style'])): ?>
10
+<?php if (($this->headers['data_style'])): ?>
11 11
 SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
12 12
 <?php endif ?>
13 13
 <?php endif ?>
14 14
 
15 15
 <?php endif ?>
16
-<?php foreach($this->queries as $query): ?>
16
+<?php foreach ($this->queries as $query): ?>
17 17
 <?php echo $query, "\n" ?>
18 18
 <?php endforeach ?>
Please login to merge, or discard this patch.
templates/views/bootstrap3/html/select.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <select class="form-control">
2
-<?php foreach($this->options as $option): ?>
2
+<?php foreach ($this->options as $option): ?>
3 3
     <option class="<?php echo $this->optionClass ?>" value="<?php
4 4
         echo htmlentities($option) ?>"><?php echo $option ?></option>
5 5
 <?php endforeach ?>
Please login to merge, or discard this patch.
templates/views/bootstrap3/html/select-key.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <select class="form-control">
2
-<?php foreach($this->options as $value => $label): ?>
2
+<?php foreach ($this->options as $value => $label): ?>
3 3
     <option value="<?php echo htmlentities($value) ?>"><?php echo $label ?></option>
4 4
 <?php endforeach ?>
5 5
 </select>
Please login to merge, or discard this patch.
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/Db/Admin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@
 block discarded – undo
139 139
                     }
140 140
                 }
141 141
                 if (\preg_match("~ IDENTIFIED BY PASSWORD '([^']+)~", $row[0], $match)) {
142
-                    $password  = $match[1];
142
+                    $password = $match[1];
143 143
                 }
144 144
             }
145 145
         }
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/DbAdmin/CommandAdmin.php 1 patch
Spacing   +5 added lines, -9 removed lines patch added patch discarded remove patch
@@ -96,8 +96,7 @@  discard block
 block discarded – undo
96 96
         if ($rowCount > 0) {
97 97
             $numRows = $statement->rowCount();
98 98
             $message = ($numRows ? ($limit && $numRows > $limit ?
99
-                $this->trans->lang('%d / ', $limit) :
100
-                "") . $this->trans->lang('%d row(s)', $numRows) : "");
99
+                $this->trans->lang('%d / ', $limit) : "") . $this->trans->lang('%d row(s)', $numRows) : "");
101 100
         }
102 101
 
103 102
         // Table header
@@ -158,7 +157,7 @@  discard block
 block discarded – undo
158 157
                 \ini_set("memory_limit", \max($this->util->iniBytes("memory_limit"),
159 158
                     2 * \strlen($queries) + \memory_get_usage() + 8e6));
160 159
             }
161
-            catch(\Exception $e) {
160
+            catch (\Exception $e) {
162 161
                 // Do nothing if the option is not modified.
163 162
             }
164 163
         }
@@ -182,9 +181,7 @@  discard block
 block discarded – undo
182 181
         $timestamps = [];
183 182
         // TODO: Move this to driver implementations
184 183
         $parse = '[\'"' .
185
-            ($this->driver->jush() == "sql" ? '`#' :
186
-            ($this->driver->jush() == "sqlite" ? '`[' :
187
-            ($this->driver->jush() == "mssql" ? '[' : ''))) . ']|/\*|-- |$' .
184
+            ($this->driver->jush() == "sql" ? '`#' : ($this->driver->jush() == "sqlite" ? '`[' : ($this->driver->jush() == "mssql" ? '[' : ''))) . ']|/\*|-- |$' .
188 185
             ($this->driver->jush() == "pgsql" ? '|\$[^$]*\$' : '');
189 186
         // $total_start = \microtime(true);
190 187
         // \parse_str($_COOKIE["adminer_export"], $adminer_export);
@@ -211,8 +208,7 @@  discard block
 block discarded – undo
211 208
 
212 209
             if ($found && \rtrim($found) != $delimiter) {
213 210
                 // find matching quote or comment end
214
-                while (\preg_match('(' . ($found == '/*' ? '\*/' : ($found == '[' ? ']' :
215
-                    (\preg_match('~^-- |^#~', $found) ? "\n" : \preg_quote($found) .
211
+                while (\preg_match('(' . ($found == '/*' ? '\*/' : ($found == '[' ? ']' : (\preg_match('~^-- |^#~', $found) ? "\n" : \preg_quote($found) .
216 212
                     "|\\\\."))) . '|$)s', $queries, $match, PREG_OFFSET_CAPTURE, $offset)) {
217 213
                     //! respect sql_mode NO_BACKSLASH_ESCAPES
218 214
                     $s = $match[0][0];
@@ -306,7 +302,7 @@  discard block
 block discarded – undo
306 302
         if ($empty) {
307 303
             $messages[] = $this->trans->lang('No commands to execute.');
308 304
         } elseif ($onlyErrors) {
309
-            $messages[] =  $this->trans->lang('%d query(s) executed OK.', $commands - \count($errors));
305
+            $messages[] = $this->trans->lang('%d query(s) executed OK.', $commands - \count($errors));
310 306
             // $timestamps[] = $this->trans->formatTime($total_start);
311 307
         }
312 308
         // elseif($errors && $commands > 1)
Please login to merge, or discard this patch.