| @@ 445-454 (lines=10) @@ | ||
| 442 | * |
|
| 443 | * @return bool |
|
| 444 | */ |
|
| 445 | private function moveToNextLine() |
|
| 446 | { |
|
| 447 | if ($this->currentLineNb >= count($this->lines) - 1) { |
|
| 448 | return false; |
|
| 449 | } |
|
| 450 | ||
| 451 | $this->currentLine = $this->lines[++$this->currentLineNb]; |
|
| 452 | ||
| 453 | return true; |
|
| 454 | } |
|
| 455 | ||
| 456 | /** |
|
| 457 | * Moves the parser to the previous line. |
|
| @@ 461-470 (lines=10) @@ | ||
| 458 | * |
|
| 459 | * @return bool |
|
| 460 | */ |
|
| 461 | private function moveToPreviousLine() |
|
| 462 | { |
|
| 463 | if ($this->currentLineNb < 1) { |
|
| 464 | return false; |
|
| 465 | } |
|
| 466 | ||
| 467 | $this->currentLine = $this->lines[--$this->currentLineNb]; |
|
| 468 | ||
| 469 | return true; |
|
| 470 | } |
|
| 471 | ||
| 472 | /** |
|
| 473 | * Parses a YAML value. |
|