Passed
Push — master ( b16987...8b6d77 )
by Maurício
03:49 queued 13s
created
src/Token.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      * The position is counted in chars, not bytes, so you should
94 94
      * use mb_* functions to properly handle utf-8 multibyte chars.
95 95
      */
96
-    public int|null $position = null;
96
+    public int | null $position = null;
97 97
 
98 98
     /**
99 99
      * @param string    $token the value of the token
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
         switch ($this->type) {
119 119
             case TokenType::Keyword:
120 120
                 $this->keyword = strtoupper($this->token);
121
-                if (! ($this->flags & self::FLAG_KEYWORD_RESERVED)) {
121
+                if (!($this->flags & self::FLAG_KEYWORD_RESERVED)) {
122 122
                     // Unreserved keywords should stay the way they are because they
123 123
                     // might represent field names.
124 124
                     return $this->token;
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
                     }
144 144
                 } elseif (($this->flags & self::FLAG_NUMBER_APPROXIMATE) || ($this->flags & self::FLAG_NUMBER_FLOAT)) {
145 145
                     $ret = (float) $ret;
146
-                } elseif (! ($this->flags & self::FLAG_NUMBER_BINARY)) {
146
+                } elseif (!($this->flags & self::FLAG_NUMBER_BINARY)) {
147 147
                     $ret = (int) $ret;
148 148
                 }
149 149
 
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
                     // in PHP 5.3- the `null` parameter isn't handled correctly.
179 179
                     $str = mb_substr(
180 180
                         $str,
181
-                        ! empty($str[1]) && ($str[1] === '@') ? 2 : 1,
181
+                        !empty($str[1]) && ($str[1] === '@') ? 2 : 1,
182 182
                         mb_strlen($str),
183 183
                         'UTF-8',
184 184
                     );
Please login to merge, or discard this patch.
tests/Components/GroupKeywordTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
 
55 55
     /** @param GroupKeyword|array<GroupKeyword> $component */
56 56
     #[DataProvider('provideExpressions')]
57
-    public function testBuild(GroupKeyword|array $component, string $expected): void
57
+    public function testBuild(GroupKeyword | array $component, string $expected): void
58 58
     {
59 59
         if (is_array($component)) {
60 60
             $this->assertSame($expected, GroupKeywords::buildAll($component));
Please login to merge, or discard this patch.
src/Components/OrderKeyword.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
      * @param Expression $expr the expression that we are sorting by
30 30
      * @param string     $type the sorting type
31 31
      */
32
-    public function __construct(Expression|null $expr = null, string $type = 'ASC')
32
+    public function __construct(Expression | null $expr = null, string $type = 'ASC')
33 33
     {
34 34
         $this->expr = $expr;
35 35
         $this->type = $type;
Please login to merge, or discard this patch.
src/Components/Condition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     public $expr;
33 33
 
34 34
     /** @param string $expr the condition or the operator */
35
-    public function __construct(string|null $expr = null)
35
+    public function __construct(string | null $expr = null)
36 36
     {
37 37
         $this->expr = trim((string) $expr);
38 38
     }
Please login to merge, or discard this patch.
src/Components/JoinKeyword.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -74,10 +74,10 @@  discard block
 block discarded – undo
74 74
      * @param ArrayObj    $using columns joined
75 75
      */
76 76
     public function __construct(
77
-        string|null $type = null,
78
-        Expression|null $expr = null,
79
-        array|null $on = null,
80
-        ArrayObj|null $using = null,
77
+        string | null $type = null,
78
+        Expression | null $expr = null,
79
+        array | null $on = null,
80
+        ArrayObj | null $using = null,
81 81
     ) {
82 82
         $this->type = $type;
83 83
         $this->expr = $expr;
@@ -88,8 +88,8 @@  discard block
 block discarded – undo
88 88
     public function build(): string
89 89
     {
90 90
         return array_search($this->type, self::JOINS) . ' ' . $this->expr
91
-            . (! empty($this->on) ? ' ON ' . Conditions::buildAll($this->on) : '')
92
-            . (! empty($this->using) ? ' USING ' . $this->using->build() : '');
91
+            . (!empty($this->on) ? ' ON ' . Conditions::buildAll($this->on) : '')
92
+            . (!empty($this->using) ? ' USING ' . $this->using->build() : '');
93 93
     }
94 94
 
95 95
     public function __toString(): string
Please login to merge, or discard this patch.
src/Components/RenameOperation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
      * @param Expression $old old expression
30 30
      * @param Expression $new new expression containing new name
31 31
      */
32
-    public function __construct(Expression|null $old = null, Expression|null $new = null)
32
+    public function __construct(Expression | null $old = null, Expression | null $new = null)
33 33
     {
34 34
         $this->old = $old;
35 35
         $this->new = $new;
Please login to merge, or discard this patch.
src/Components/GroupKeyword.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 final class GroupKeyword implements Component
15 15
 {
16 16
     /** @var 'ASC'|'DESC'|null */
17
-    public string|null $type = null;
17
+    public string | null $type = null;
18 18
 
19 19
     /**
20 20
      * The expression that is used for grouping.
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     public $expr;
25 25
 
26 26
     /** @param Expression $expr the expression that we are sorting by */
27
-    public function __construct(Expression|null $expr = null)
27
+    public function __construct(Expression | null $expr = null)
28 28
     {
29 29
         $this->expr = $expr;
30 30
     }
Please login to merge, or discard this patch.
src/Components/CreateDefinition.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -66,11 +66,11 @@  discard block
 block discarded – undo
66 66
      * @param Reference|null    $references   references
67 67
      */
68 68
     public function __construct(
69
-        string|null $name = null,
70
-        OptionsArray|null $options = null,
71
-        DataType|Key|null $type = null,
69
+        string | null $name = null,
70
+        OptionsArray | null $options = null,
71
+        DataType | Key | null $type = null,
72 72
         bool $isConstraint = false,
73
-        Reference|null $references = null,
73
+        Reference | null $references = null,
74 74
     ) {
75 75
         $this->name = $name;
76 76
         $this->options = $options;
@@ -95,16 +95,16 @@  discard block
 block discarded – undo
95 95
             $tmp .= Context::escape($this->name) . ' ';
96 96
         }
97 97
 
98
-        if (! empty($this->type)) {
98
+        if (!empty($this->type)) {
99 99
             $this->type->lowercase = true;
100 100
             $tmp .= $this->type->build() . ' ';
101 101
         }
102 102
 
103
-        if (! empty($this->key)) {
103
+        if (!empty($this->key)) {
104 104
             $tmp .= $this->key . ' ';
105 105
         }
106 106
 
107
-        if (! empty($this->references)) {
107
+        if (!empty($this->references)) {
108 108
             $tmp .= 'REFERENCES ' . $this->references . ' ';
109 109
         }
110 110
 
Please login to merge, or discard this patch.
src/Parseable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,5 +18,5 @@
 block discarded – undo
18 18
      *
19 19
      * @return Component|Component[]|null
20 20
      */
21
-    public static function parse(Parser $parser, TokensList $list, array $options = []): Component|array|null;
21
+    public static function parse(Parser $parser, TokensList $list, array $options = []): Component | array | null;
22 22
 }
Please login to merge, or discard this patch.