private function Parser::isNextLineIndented in Plug 7
Returns true if the next line is indented.
Return value
bool Returns true if the next line is indented, false otherwise
1 call to Parser::isNextLineIndented()
- Parser::parse in lib/
Symfony/ yaml/ Symfony/ Component/ Yaml/ Parser.php - Parses a YAML string to a PHP value.
File
- lib/
Symfony/ yaml/ Symfony/ Component/ Yaml/ Parser.php, line 562
Class
- Parser
- Parser parses YAML strings to convert them to PHP arrays.
Namespace
Symfony\Component\YamlCode
private function isNextLineIndented() {
$currentIndentation = $this
->getCurrentLineIndentation();
$EOF = !$this
->moveToNextLine();
while (!$EOF && $this
->isCurrentLineEmpty()) {
$EOF = !$this
->moveToNextLine();
}
if ($EOF) {
return false;
}
$ret = false;
if ($this
->getCurrentLineIndentation() > $currentIndentation) {
$ret = true;
}
$this
->moveToPreviousLine();
return $ret;
}