@@ -50,11 +50,11 @@ |
||
| 50 | 50 | */ |
| 51 | 51 | public static function build($component): string |
| 52 | 52 | { |
| 53 | - if (! $component instanceof WithKeyword) { |
|
| 53 | + if (!$component instanceof WithKeyword) { |
|
| 54 | 54 | throw new RuntimeException('Can not build a component that is not a WithKeyword'); |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | - if (! isset($component->statement)) { |
|
| 57 | + if (!isset($component->statement)) { |
|
| 58 | 58 | throw new RuntimeException('No statement inside WITH'); |
| 59 | 59 | } |
| 60 | 60 | |
@@ -179,9 +179,9 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | |