Passed
Push — main ( bf9e72...58a826 )
by Thierry
02:02
created
src/DbAdmin/TableQueryAdmin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@
 block discarded – undo
158 158
      */
159 159
     public function insertItem(string $table, array $queryOptions): array
160 160
     {
161
-        list($fields, ,) = $this->getFields($table, $queryOptions);
161
+        list($fields,,) = $this->getFields($table, $queryOptions);
162 162
 
163 163
         // From edit.inc.php
164 164
         $values = [];
Please login to merge, or discard this patch.
src/DbAdmin/Traits/TableQueryTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
         if ($row === null) {
122 122
             return !$update && $field->autoIncrement ? "" : (isset($queryOptions["select"]) ? false : $default);
123 123
         }
124
-        if ($row[$name] != "" && $this->driver->jush() == "sql" && preg_match("~enum|set~", $field->type) ) {
124
+        if ($row[$name] != "" && $this->driver->jush() == "sql" && preg_match("~enum|set~", $field->type)) {
125 125
             return is_array($row[$name]) ? array_sum($row[$name]) : +$row[$name];
126 126
         }
127 127
         return is_bool($row[$name]) ? +$row[$name] : $row[$name];
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
             return "SQL";
142 142
         }
143 143
         if ($queryOptions["save"]) {
144
-            return (string)$queryOptions["function"][$name];
144
+            return (string) $queryOptions["function"][$name];
145 145
         }
146 146
         if ($update && preg_match('~^CURRENT_TIMESTAMP~i', $field->onUpdate)) {
147 147
             return 'now';
Please login to merge, or discard this patch.