Passed
Push — master ( b16987...8b6d77 )
by Maurício
03:49 queued 13s
created
src/Parsers/CreateDefinitions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
                     $state = 4;
171 171
                 } elseif ($token->type === TokenType::Symbol || $token->type === TokenType::None) {
172 172
                     $expr->name = $token->value;
173
-                    if (! $expr->isConstraint) {
173
+                    if (!$expr->isConstraint) {
174 174
                         $state = 2;
175 175
                     }
176 176
                 } elseif ($token->type === TokenType::Keyword) {
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
 
212 212
                 $state = 5;
213 213
             } else {
214
-                if (! empty($expr->type) || ! empty($expr->key)) {
214
+                if (!empty($expr->type) || !empty($expr->key)) {
215 215
                     $ret[] = $expr;
216 216
                 }
217 217
 
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
         }
232 232
 
233 233
         // Last iteration was not saved.
234
-        if (! empty($expr->type) || ! empty($expr->key)) {
234
+        if (!empty($expr->type) || !empty($expr->key)) {
235 235
             $ret[] = $expr;
236 236
         }
237 237
 
Please login to merge, or discard this patch.
src/Parsers/OptionsArrays.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 
88 88
             if ($lastOption === null) {
89 89
                 $upper = strtoupper($token->token);
90
-                if (! isset($options[$upper])) {
90
+                if (!isset($options[$upper])) {
91 91
                     // There is no option to be processed.
92 92
                     break;
93 93
                 }
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
             }
125 125
 
126 126
             if ($state === 0) {
127
-                if (! is_array($lastOption)) {
127
+                if (!is_array($lastOption)) {
128 128
                     // This is a just keyword option without any value.
129 129
                     // This is the beginning and the end of it.
130 130
                     $ret->options[$lastOptionId] = $token->value;
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
                 $ret->options[$lastOptionId]['expr'] .= $token->token;
202 202
 
203 203
                 if (
204
-                    ! (($token->token === '(') && ($brackets === 1)
204
+                    !(($token->token === '(') && ($brackets === 1)
205 205
                     || (($token->token === ')') && ($brackets === 0)))
206 206
                 ) {
207 207
                     // First pair of brackets is being skipped.
Please login to merge, or discard this patch.
src/Parsers/ArrayObjs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
      *
28 28
      * @return ArrayObj|Component[]
29 29
      */
30
-    public static function parse(Parser $parser, TokensList $list, array $options = []): ArrayObj|array
30
+    public static function parse(Parser $parser, TokensList $list, array $options = []): ArrayObj | array
31 31
     {
32 32
         $ret = empty($options['type']) ? new ArrayObj() : [];
33 33
 
Please login to merge, or discard this patch.
src/Parsers/AlterOperations.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -401,7 +401,7 @@  discard block
 block discarded – undo
401 401
                     } elseif (($token->value === ',') && ($brackets === 0)) {
402 402
                         break;
403 403
                     }
404
-                } elseif (! self::checkIfTokenQuotedSymbol($token) && $token->type !== TokenType::String) {
404
+                } elseif (!self::checkIfTokenQuotedSymbol($token) && $token->type !== TokenType::String) {
405 405
                     if (isset(Parser::STATEMENT_PARSERS[$arrayKey]) && Parser::STATEMENT_PARSERS[$arrayKey] !== '') {
406 406
                         $list->idx++; // Ignore the current token
407 407
                         $nextToken = $list->getNext();
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
                     } elseif (
425 425
                         (array_key_exists($arrayKey, self::DATABASE_OPTIONS)
426 426
                         || array_key_exists($arrayKey, self::TABLE_OPTIONS))
427
-                        && ! self::checkIfColumnDefinitionKeyword($arrayKey)
427
+                        && !self::checkIfColumnDefinitionKeyword($arrayKey)
428 428
                     ) {
429 429
                         // This alter operation has finished, which means a comma
430 430
                         // was missing before start of new alter operation
Please login to merge, or discard this patch.
src/Parsers/DataTypes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      * @param TokensList           $list    the list of tokens that are being parsed
45 45
      * @param array<string, mixed> $options parameters for parsing
46 46
      */
47
-    public static function parse(Parser $parser, TokensList $list, array $options = []): DataType|null
47
+    public static function parse(Parser $parser, TokensList $list, array $options = []): DataType | null
48 48
     {
49 49
         $ret = new DataType();
50 50
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 
73 73
             if ($state === 0) {
74 74
                 $ret->name = strtoupper((string) $token->value);
75
-                if (($token->type !== TokenType::Keyword) || (! ($token->flags & Token::FLAG_KEYWORD_DATA_TYPE))) {
75
+                if (($token->type !== TokenType::Keyword) || (!($token->flags & Token::FLAG_KEYWORD_DATA_TYPE))) {
76 76
                     $parser->error('Unrecognized data type.', $token);
77 77
                 }
78 78
 
Please login to merge, or discard this patch.
src/Parsers/RenameOperations.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@
 block discarded – undo
156 156
         }
157 157
 
158 158
         // Last iteration was not saved.
159
-        if (! empty($expr->old)) {
159
+        if (!empty($expr->old)) {
160 160
             $ret[] = $expr;
161 161
         }
162 162
 
Please login to merge, or discard this patch.
src/Parsers/JoinKeywords.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
             }
122 122
         }
123 123
 
124
-        if (! empty($expr->type)) {
124
+        if (!empty($expr->type)) {
125 125
             $ret[] = $expr;
126 126
         }
127 127
 
Please login to merge, or discard this patch.
src/Parsers/FunctionCalls.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
                 if ($token->type === TokenType::Operator && $token->value === '(') {
88 88
                     --$list->idx; // ArrayObj needs to start with `(`
89 89
                     $state = 1;
90
-                    continue;// do not add this token to the name
90
+                    continue; // do not add this token to the name
91 91
                 }
92 92
 
93 93
                 $ret->name .= $token->value;
Please login to merge, or discard this patch.
src/Parsers/GroupKeywords.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
                 ) {
89 89
                     $expr->type = $token->keyword;
90 90
                 } elseif (($token->type === TokenType::Operator) && ($token->value === ',')) {
91
-                    if (! empty($expr->expr)) {
91
+                    if (!empty($expr->expr)) {
92 92
                         $ret[] = $expr;
93 93
                     }
94 94
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         }
102 102
 
103 103
         // Last iteration was not processed.
104
-        if (! empty($expr->expr)) {
104
+        if (!empty($expr->expr)) {
105 105
             $ret[] = $expr;
106 106
         }
107 107
 
Please login to merge, or discard this patch.