private function Parser::isNextLineUnIndentedCollection in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/symfony/yaml/Parser.php \Symfony\Component\Yaml\Parser::isNextLineUnIndentedCollection()
Returns true if the next line starts unindented collection.
Return value
bool Returns true if the next line starts unindented collection, false otherwise
1 call to Parser::isNextLineUnIndentedCollection()
- Parser::parse in vendor/
symfony/ yaml/ Symfony/ Component/ Yaml/ Parser.php - Parses a YAML string to a PHP value.
File
- vendor/
symfony/ yaml/ Symfony/ Component/ Yaml/ Parser.php, line 694
Class
- Parser
- Parser parses YAML strings to convert them to PHP arrays.
Namespace
Symfony\Component\YamlCode
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;
}