Returns true if the next line is indented.
Boolean Returns true if the next line is indented, false otherwise
private function isNextLineIndented() {
$currentIndentation = $this
->getCurrentLineIndentation();
$notEOF = $this
->moveToNextLine();
while ($notEOF && $this
->isCurrentLineEmpty()) {
$notEOF = $this
->moveToNextLine();
}
if (false === $notEOF) {
return false;
}
$ret = false;
if ($this
->getCurrentLineIndentation() <= $currentIndentation) {
$ret = true;
}
$this
->moveToPreviousLine();
return $ret;
}