Test Failed
Push — 2.x ( 89f9ab...7124ef )
by Aleksei
02:29
created
src/Driver/SQLServer/Schema/SQLServerColumn.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -322,7 +322,7 @@
 block discarded – undo
322 322
     {
323 323
         $defaultValue = parent::quoteDefault($driver);
324 324
         if ($this->getAbstractType() === 'boolean') {
325
-            $defaultValue = (string) ((int)$this->defaultValue);
325
+            $defaultValue = (string)((int)$this->defaultValue);
326 326
         }
327 327
 
328 328
         return $defaultValue;
Please login to merge, or discard this patch.
src/Driver/SQLServer/Schema/SQLServerIndex.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 
27 27
         foreach ($schema as $indexColumn) {
28 28
             $index->columns[] = $indexColumn['columnName'];
29
-            if ((int) $indexColumn['isDescendingKey'] === 1) {
29
+            if ((int)$indexColumn['isDescendingKey'] === 1) {
30 30
                 $index->sort[$indexColumn['columnName']] = 'DESC';
31 31
             }
32 32
         }
Please login to merge, or discard this patch.
src/Driver/Postgres/PostgresCompiler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
         );
41 41
     }
42 42
 
43
-    protected function distinct(QueryParameters $params, Quoter $q, string|bool|array $distinct): string
43
+    protected function distinct(QueryParameters $params, Quoter $q, string | bool | array $distinct): string
44 44
     {
45 45
         if ($distinct === false) {
46 46
             return '';
Please login to merge, or discard this patch.
src/Driver/Postgres/Query/PostgresSelectQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     /**
20 20
      * Apply distinct ON to the query.
21 21
      */
22
-    public function distinctOn(FragmentInterface|string $distinctOn): SelectQuery
22
+    public function distinctOn(FragmentInterface | string $distinctOn): SelectQuery
23 23
     {
24 24
         $this->distinct = ['on' => $distinctOn];
25 25
 
Please login to merge, or discard this patch.
src/Driver/Postgres/Query/PostgresInsertQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
     /**
45 45
      * Set returning column. If not set, the driver will detect PK automatically.
46 46
      */
47
-    public function returning(string|FragmentInterface ...$columns): self
47
+    public function returning(string | FragmentInterface ...$columns): self
48 48
     {
49 49
         $columns === [] and throw new BuilderException('RETURNING clause should contain at least 1 column.');
50 50
 
Please login to merge, or discard this patch.
src/Driver/Postgres/Schema/PostgresColumn.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
         return $this->type('bigPrimary');
163 163
     }
164 164
 
165
-    public function enum(string|array $values): AbstractColumn
165
+    public function enum(string | array $values): AbstractColumn
166 166
     {
167 167
         $this->enumValues = array_map('strval', \is_array($values) ? $values : \func_get_args());
168 168
 
@@ -298,13 +298,13 @@  discard block
 block discarded – undo
298 298
             return $column;
299 299
         }
300 300
 
301
-        if (str_contains($column->type, 'char') && (int) $schema['character_maximum_length']) {
301
+        if (str_contains($column->type, 'char') && (int)$schema['character_maximum_length']) {
302 302
             $column->size = $schema['character_maximum_length'];
303 303
         }
304 304
 
305 305
         if ($column->type === 'numeric') {
306
-            $column->precision = (int) $schema['numeric_precision'];
307
-            $column->scale = (int) $schema['numeric_scale'];
306
+            $column->precision = (int)$schema['numeric_precision'];
307
+            $column->scale = (int)$schema['numeric_scale'];
308 308
         }
309 309
 
310 310
         if ($column->type === 'USER-DEFINED' && $schema['typtype'] === 'e') {
Please login to merge, or discard this patch.