Completed
Push — master ( 607320...0cbef9 )
by Rougin
16:59 queued 12:31
created
src/Driver/MySQLDriver.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -46,9 +46,9 @@  discard block
 block discarded – undo
46 46
 
47 47
         $this->pdo = $pdo;
48 48
 
49
-        $this->script = 'SELECT COLUMN_NAME as "column", REFERENCED_COLUMN_NAME as ' .
50
-            '"referenced_column", CONCAT(REFERENCED_TABLE_SCHEMA, ".", ' .
51
-            'REFERENCED_TABLE_NAME) as "referenced_table" FROM INFORMATION_SCHEMA' .
49
+        $this->script = 'SELECT COLUMN_NAME as "column", REFERENCED_COLUMN_NAME as '.
50
+            '"referenced_column", CONCAT(REFERENCED_TABLE_SCHEMA, ".", '.
51
+            'REFERENCED_TABLE_NAME) as "referenced_table" FROM INFORMATION_SCHEMA'.
52 52
             '.KEY_COLUMN_USAGE WHERE CONSTRAINT_SCHEMA = "%s" AND TABLE_NAME = "%s";';
53 53
     }
54 54
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      */
61 61
     public function columns($table)
62 62
     {
63
-        return $this->query($table, 'DESCRIBE ' . $table);
63
+        return $this->query($table, 'DESCRIBE '.$table);
64 64
     }
65 65
 
66 66
     /**
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
         }
258 258
 
259 259
         if (empty($columns) === true) {
260
-            $message = 'Table "' . $table . '" does not exists!';
260
+            $message = 'Table "'.$table.'" does not exists!';
261 261
 
262 262
             throw new TableNotFoundException($message);
263 263
         }
Please login to merge, or discard this patch.