Passed
Push — dbal ( a06169...0d198d )
by Greg
08:52
created
app/DB/Drivers/MySQLDriver.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      */
81 81
     public function introspectSchema(string $schema_name = null): Schema
82 82
     {
83
-        $schema_name     ??= $this->query(sql: 'SELECT DATABASE() AS schema_name')[0]->schema_name;
83
+        $schema_name ??= $this->query(sql: 'SELECT DATABASE() AS schema_name')[0]->schema_name;
84 84
         $pattern         = $this->escapeLike(string: $this->prefix) . '%';
85 85
         $table_data      = $this->informationSchemaTables(schema_name: $schema_name, pattern: $pattern);
86 86
         $column_data     = $this->informationSchemaColumns(schema_name: $schema_name, pattern: $pattern);
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         $schema = new Schema();
91 91
 
92 92
         foreach ($table_data as $table_datum) {
93
-            $table = 'CREATE TABLE '. $this->quoteIdentifier($table_datum->TABLE_NAME) . '(';
93
+            $table = 'CREATE TABLE ' . $this->quoteIdentifier($table_datum->TABLE_NAME) . '(';
94 94
 
95 95
             foreach ($column_data as $row) {
96 96
                 if ($row->TABLE_NAME === $table_datum->TABLE_NAME) {
@@ -219,15 +219,15 @@  discard block
 block discarded – undo
219 219
         }
220 220
 
221 221
         if ($row->COMMENT !== null) {
222
-            $sql.= ' COMMENT ' . $row->COLLATION_NAME;
222
+            $sql .= ' COMMENT ' . $row->COLLATION_NAME;
223 223
         }
224 224
 
225 225
         if ($row->COLUMN_COMMENT !== '') {
226
-            $sql.= ' COMMENT ' . $this->quoteValue($row->COLUMN_COMMENT);
226
+            $sql .= ' COMMENT ' . $this->quoteValue($row->COLUMN_COMMENT);
227 227
         }
228 228
 
229 229
         if ($row->COLLATION_NAME !== null) {
230
-            $sql.= ' COLLATE ' . $row->COLLATION_NAME;
230
+            $sql .= ' COLLATE ' . $row->COLLATION_NAME;
231 231
         }
232 232
 
233 233
         return $sql;
Please login to merge, or discard this patch.