You are here

private function Parser::moveToNextLine in Zircon Profile 8

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

Moves the parser to the next line.

Return value

bool

5 calls to Parser::moveToNextLine()
Parser::getNextEmbedBlock in vendor/symfony/yaml/Parser.php
Returns the next embed block of YAML.
Parser::isNextLineIndented in vendor/symfony/yaml/Parser.php
Returns true if the next line is indented.
Parser::isNextLineUnIndentedCollection in vendor/symfony/yaml/Parser.php
Returns true if the next line starts unindented collection.
Parser::parse in vendor/symfony/yaml/Parser.php
Parses a YAML string to a PHP value.
Parser::parseBlockScalar in vendor/symfony/yaml/Parser.php
Parses a block scalar.

File

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

Class

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

Namespace

Symfony\Component\Yaml

Code

private function moveToNextLine() {
  if ($this->currentLineNb >= count($this->lines) - 1) {
    return false;
  }
  $this->currentLine = $this->lines[++$this->currentLineNb];
  return true;
}