Passed
Push — dbal ( 52c0e6...62c715 )
by Greg
05:49
created
app/DB/Drivers/MySQLDriver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      */
60 60
     public function introspectSchema(string $schema_name = null): Schema
61 61
     {
62
-        $schema_name     ??= $this->query(sql: 'SELECT DATABASE() AS schema_name')[0]->schema_name;
62
+        $schema_name ??= $this->query(sql: 'SELECT DATABASE() AS schema_name')[0]->schema_name;
63 63
         $pattern         = $this->escapeLike(string: $this->prefix) . '%';
64 64
         $table_data      = $this->getTableDataFromInformationSchema(schema_name: $schema_name, pattern: $pattern);
65 65
         $column_data     = $this->getColumnDataFromInformationSchema(schema_name: $schema_name, pattern: $pattern);
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
      *
158 158
      * @return ColumnInterface
159 159
      */
160
-    private function columnDefinitionToColumn(string $name, string $type, string|null $collation): ColumnInterface
160
+    private function columnDefinitionToColumn(string $name, string $type, string | null $collation): ColumnInterface
161 161
     {
162 162
         if (preg_match('/^bit\((\d+)\)$/', $type, $match) === 1) {
163 163
             return Schema::bit(name: $name, bits: (int) $match[1]);
Please login to merge, or discard this patch.
app/DB/Schema/ColumnInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      *
39 39
      * @return $this
40 40
      */
41
-    public function default(int|string|Expression|null $default): static;
41
+    public function default(int | string | Expression | null $default): static;
42 42
 
43 43
     /**
44 44
      * @param bool $nullable
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     /**
63 63
      * @return int|string|Expression|null
64 64
      */
65
-    public function getDefault(): int|string|Expression|null;
65
+    public function getDefault(): int | string | Expression | null;
66 66
 
67 67
     /**
68 68
      * @return bool
Please login to merge, or discard this patch.
app/DB/Schema/Schema.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
      *
139 139
      * @return FloatColumn
140 140
      */
141
-    public static function double(string $name, int $precision_bits=53): FloatColumn
141
+    public static function double(string $name, int $precision_bits = 53): FloatColumn
142 142
     {
143 143
         return new FloatColumn(name: $name, precision_bits: $precision_bits);
144 144
     }
Please login to merge, or discard this patch.
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|string|Expression|null $default;
31
+    public int | string | Expression | null $default;
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|string|Expression|null $default): static
61
+    public function default(int | 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/WebtreesSchema.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -128,11 +128,11 @@  discard block
 block discarded – undo
128 128
         ]);
129 129
 
130 130
         $block_setting = Schema::table('block_setting', [
131
-           Schema::integer('block_id')->autoIncrement(),
132
-           Schema::varchar('setting_name', 32),
133
-           Schema::text('setting_value'),
134
-           Schema::primaryKey(['block_id', 'setting_name']),
135
-           Schema::foreignKey(['block_id'], 'block', ['block_id'])->onUpdate(ReferentialAction::CASCADE)->onDelete(ReferentialAction::CASCADE),
131
+            Schema::integer('block_id')->autoIncrement(),
132
+            Schema::varchar('setting_name', 32),
133
+            Schema::text('setting_value'),
134
+            Schema::primaryKey(['block_id', 'setting_name']),
135
+            Schema::foreignKey(['block_id'], 'block', ['block_id'])->onUpdate(ReferentialAction::CASCADE)->onDelete(ReferentialAction::CASCADE),
136 136
         ]);
137 137
         
138 138
         $change = Schema::table('change', [
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
             ->getDatabasePlatform()
488 488
             ->getAlterSchemaSQL($schema_diff);
489 489
 
490
-         function f(string $query): int {
490
+            function f(string $query): int {
491 491
             if (str_contains($query, 'DROP FOREIGN KEY')) {
492 492
                 return 1;
493 493
             }
Please login to merge, or discard this patch.