@@ 396-399 (lines=4) @@ | ||
393 | $lineEnded = true; |
|
394 | array_push($blocksIndentation, $indent); |
|
395 | ++$indent; |
|
396 | } elseif ($curr->type === Token::TYPE_KEYWORD && $curr->value === 'END') { |
|
397 | $lineEnded = true; |
|
398 | $indent = array_pop($blocksIndentation); |
|
399 | } |
|
400 | ||
401 | // Formatting fragments delimited by comma. |
|
402 | if ($prev->type === Token::TYPE_OPERATOR && $prev->value === ',') { |
|
@@ 429-433 (lines=5) @@ | ||
426 | $shortGroup = false; |
|
427 | } |
|
428 | array_push($blocksLineEndings, $lineEnded); |
|
429 | } elseif ($curr->type === Token::TYPE_OPERATOR && $curr->value === ')') { |
|
430 | $indent = array_pop($blocksIndentation); |
|
431 | $lineEnded |= array_pop($blocksLineEndings); |
|
432 | $shortGroup = false; |
|
433 | } |
|
434 | ||
435 | // Adding the token. |
|
436 | $ret .= $this->toString($prev); |