Passed
Push — main ( 4cb49f...5fd686 )
by Thierry
01:51
created
src/Db/Table.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,7 @@
 block discarded – undo
24 24
         $query = ($fast && $this->driver->minVersion(5)) ?
25 25
             "SELECT TABLE_NAME AS Name, ENGINE AS Engine, TABLE_COMMENT AS Comment " .
26 26
             "FROM information_schema.TABLES WHERE TABLE_SCHEMA = DATABASE() " .
27
-            ($table != "" ? "AND TABLE_NAME = " . $this->driver->quote($table) : "ORDER BY Name") :
28
-            "SHOW TABLE STATUS" . ($table != "" ? " LIKE " . $this->driver->quote(addcslashes($table, "%_\\")) : "");
27
+            ($table != "" ? "AND TABLE_NAME = " . $this->driver->quote($table) : "ORDER BY Name") : "SHOW TABLE STATUS" . ($table != "" ? " LIKE " . $this->driver->quote(addcslashes($table, "%_\\")) : "");
29 28
         return $this->driver->rows($query);
30 29
     }
31 30
 
Please login to merge, or discard this patch.
src/Db/Traits/TableTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,10 +77,10 @@
 block discarded – undo
77 77
 
78 78
         $foreignKey->database = $this->driver->unescapeId($match[4] != "" ? $match[3] : $match[4]);
79 79
         $foreignKey->table = $this->driver->unescapeId($match[4] != "" ? $match[4] : $match[3]);
80
-        $foreignKey->source = array_map(function ($idf) {
80
+        $foreignKey->source = array_map(function($idf) {
81 81
             return $this->driver->unescapeId($idf);
82 82
         }, $source[0]);
83
-        $foreignKey->target = array_map(function ($idf) {
83
+        $foreignKey->target = array_map(function($idf) {
84 84
             return $this->driver->unescapeId($idf);
85 85
         }, $target[0]);
86 86
         $foreignKey->onDelete = $match[6] ?: "RESTRICT";
Please login to merge, or discard this patch.