Returns true if the next line starts unindented collection
Boolean Returns true if the next line starts unindented collection, false otherwise
private function isNextLineUnIndentedCollection() {
$currentIndentation = $this
->getCurrentLineIndentation();
$notEOF = $this
->moveToNextLine();
while ($notEOF && $this
->isCurrentLineEmpty()) {
$notEOF = $this
->moveToNextLine();
}
if (false === $notEOF) {
return false;
}
$ret = false;
if ($this
->getCurrentLineIndentation() == $currentIndentation && $this
->isStringUnIndentedCollectionItem($this->currentLine)) {
$ret = true;
}
$this
->moveToPreviousLine();
return $ret;
}