You are here

private function Parser::isNextLineIndented in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/symfony/yaml/Symfony/Component/Yaml/Parser.php \Symfony\Component\Yaml\Parser::isNextLineIndented()

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::doParse in vendor/symfony/yaml/Parser.php

File

vendor/symfony/yaml/Parser.php, line 670

Class

Parser
Parser parses YAML strings to convert them to PHP arrays.

Namespace

Symfony\Component\Yaml

Code

private function isNextLineIndented() {
  $currentIndentation = $this
    ->getCurrentLineIndentation();
  $EOF = !$this
    ->moveToNextLine();
  while (!$EOF && $this
    ->isCurrentLineEmpty()) {
    $EOF = !$this
      ->moveToNextLine();
  }
  if ($EOF) {
    return false;
  }
  $ret = $this
    ->getCurrentLineIndentation() > $currentIndentation;
  $this
    ->moveToPreviousLine();
  return $ret;
}