Symfony\Component\Yaml\Parser::isNextLineUnIndentedCollection PHP Method

isNextLineUnIndentedCollection() private method

Returns true if the next line starts unindented collection.
private isNextLineUnIndentedCollection ( ) : boolean
return 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()) {
            $ret = true;
        }
        $this->moveToPreviousLine();
        return $ret;
    }