@@ 342-345 (lines=4) @@ | ||
339 | $lineEnded = true; |
|
340 | array_push($blocksIndentation, $indent); |
|
341 | ++$indent; |
|
342 | } elseif (($curr->type === Token::TYPE_KEYWORD) && ($curr->value === 'END')) { |
|
343 | $lineEnded = true; |
|
344 | $indent = array_pop($blocksIndentation); |
|
345 | } |
|
346 | ||
347 | // Formatting fragments delimited by comma. |
|
348 | if (($prev->type === Token::TYPE_OPERATOR) && ($prev->value === ',')) { |
|
@@ 373-377 (lines=5) @@ | ||
370 | $shortGroup = false; |
|
371 | } |
|
372 | array_push($blocksLineEndings, $lineEnded); |
|
373 | } elseif (($curr->type === Token::TYPE_OPERATOR) && ($curr->value === ')')) { |
|
374 | $indent = array_pop($blocksIndentation); |
|
375 | $lineEnded |= array_pop($blocksLineEndings); |
|
376 | $shortGroup = false; |
|
377 | } |
|
378 | ||
379 | // Delimiter must be placed on the same line with the last |
|
380 | // clause. |