@@ 331-334 (lines=4) @@ | ||
328 | $lineEnded = true; |
|
329 | array_push($blocksIndentation, $indent); |
|
330 | ++$indent; |
|
331 | } elseif (($curr->type === Token::TYPE_KEYWORD) && ($curr->value === 'END')) { |
|
332 | $lineEnded = true; |
|
333 | $indent = array_pop($blocksIndentation); |
|
334 | } |
|
335 | ||
336 | // Formatting fragments delimited by comma. |
|
337 | if (($prev->type === Token::TYPE_OPERATOR) && ($prev->value === ',')) { |
|
@@ 359-362 (lines=4) @@ | ||
356 | $lineEnded = true; |
|
357 | } |
|
358 | array_push($blocksLineEndings, $lineEnded); |
|
359 | } elseif (($curr->type === Token::TYPE_OPERATOR) && ($curr->value === ')')) { |
|
360 | $indent = array_pop($blocksIndentation); |
|
361 | $lineEnded |= array_pop($blocksLineEndings); |
|
362 | } |
|
363 | ||
364 | // Delimiter must be placed on the same line with the last |
|
365 | // clause. |