Passed
Push — main ( 55838a...93e1a1 )
by Thierry
09:27
created
src/Db/DatabaseTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@
 block discarded – undo
178 178
      */
179 179
     public function truncateTables(array $tables)
180 180
     {
181
-        $this->driver->execute('TRUNCATE ' . implode(', ', array_map(function ($table) {
181
+        $this->driver->execute('TRUNCATE ' . implode(', ', array_map(function($table) {
182 182
             return $this->driver->escapeTableName($table);
183 183
         }, $tables)));
184 184
         return true;
Please login to merge, or discard this patch.
src/Db/Query.php 1 patch
Spacing   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,9 +18,7 @@
 block discarded – undo
18 18
      */
19 19
     protected function limitToOne(string $table, string $query, string $where)
20 20
     {
21
-        return (preg_match('~^INTO~', $query) ? $this->driver->getLimitClause($query, $where, 1, 0) :
22
-            " $query" . ($this->driver->isView($this->driver->tableStatusOrName($table)) ? $where :
23
-            " WHERE ctid = (SELECT ctid FROM " . $this->driver->escapeTableName($table) . $where . ' LIMIT 1)'));
21
+        return (preg_match('~^INTO~', $query) ? $this->driver->getLimitClause($query, $where, 1, 0) : " $query" . ($this->driver->isView($this->driver->tableStatusOrName($table)) ? $where : " WHERE ctid = (SELECT ctid FROM " . $this->driver->escapeTableName($table) . $where . ' LIMIT 1)'));
24 22
     }
25 23
 
26 24
     /**
Please login to merge, or discard this patch.