Passed
Push — dbal ( a06169...0d198d )
by Greg
08:52
created
app/DB/Schema/AbstractColumn.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 {
29 29
     public string $comment = '';
30 30
 
31
-    public int|float|string|Expression|null $default = null;
31
+    public int | float | string | Expression | null $default = null;
32 32
 
33 33
     public bool $nullable = false;
34 34
 
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      *
59 59
      * @return $this
60 60
      */
61
-    public function default(int|float|string|Expression|null $default): static
61
+    public function default(int | float | string | Expression | null $default): static
62 62
     {
63 63
         $this->default = $default;
64 64
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
     /**
101 101
      * @return int|string|Expression|null
102 102
      */
103
-    public function getDefault(): int|string|Expression|null
103
+    public function getDefault(): int | string | Expression | null
104 104
     {
105 105
         return $this->default;
106 106
     }
Please login to merge, or discard this patch.
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.