Passed
Pull Request — master (#485)
by
unknown
02:56
created
src/Components/Key.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -179,9 +179,9 @@  discard block
 block discarded – undo
179 179
             } elseif ($state === 1) {
180 180
                 if (($token->type === Token::TYPE_OPERATOR) && ($token->value === '(')) {
181 181
                     $positionBeforeSearch = $list->idx;
182
-                    $list->idx++;// Ignore the current token "(" or the search condition will always be true
182
+                    $list->idx++; // Ignore the current token "(" or the search condition will always be true
183 183
                     $nextToken = $list->getNext();
184
-                    $list->idx = $positionBeforeSearch;// Restore the position
184
+                    $list->idx = $positionBeforeSearch; // Restore the position
185 185
 
186 186
                     if ($nextToken !== null && $nextToken->value === '(') {
187 187
                         // Switch to expression mode
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
                 if ($token->type === Token::TYPE_OPERATOR) {
231 231
                     // This got back to here and we reached the end of the expression
232 232
                     if ($token->value === ')') {
233
-                        $state = 4;// go back to state 4 to fetch options
233
+                        $state = 4; // go back to state 4 to fetch options
234 234
                         continue;
235 235
                     }
236 236
 
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
     public static function build($component): string
270 270
     {
271 271
         $ret = $component->type . ' ';
272
-        if (! empty($component->name)) {
272
+        if (!empty($component->name)) {
273 273
             $ret .= Context::escape($component->name) . ' ';
274 274
         }
275 275
 
Please login to merge, or discard this patch.
src/Components/AlterOperation.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
                     } elseif (($token->value === ',') && ($brackets === 0)) {
425 425
                         break;
426 426
                     }
427
-                } elseif (! self::checkIfTokenQuotedSymbol($token)) {
427
+                } elseif (!self::checkIfTokenQuotedSymbol($token)) {
428 428
                     // If the current token is "SET" or "ENUM", we want to avoid the token between their parenthesis in
429 429
                     // the unknown tokens.
430 430
                     if (in_array($token->value, ['SET', 'ENUM'], true)) {
@@ -443,7 +443,7 @@  discard block
 block discarded – undo
443 443
                             );
444 444
                             break;
445 445
                         }
446
-                    } elseif (! empty(Parser::$statementParsers[$token->value])) {
446
+                    } elseif (!empty(Parser::$statementParsers[$token->value])) {
447 447
                         // We have reached the end of ALTER operation and suddenly found
448 448
                         // a start to new statement, but have not found a delimiter between them
449 449
                         $parser->error(
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
                     } elseif (
455 455
                         (array_key_exists($arrayKey, self::$databaseOptions)
456 456
                         || array_key_exists($arrayKey, self::$tableOptions))
457
-                        && ! self::checkIfColumnDefinitionKeyword($arrayKey)
457
+                        && !self::checkIfColumnDefinitionKeyword($arrayKey)
458 458
                     ) {
459 459
                         // This alter operation has finished, which means a comma
460 460
                         // was missing before start of new alter operation
Please login to merge, or discard this patch.