Lines Matching defs:indentation
155 throw new ParseException('A YAML file cannot contain tabs as indentation.', $this->getRealCurrentLineNb() + 1, $this->currentLine, $this->filename);
457 // If the indentation is not consistent at offset 0, it is to be considered as a ParseError
561 * Returns the current line indentation.
575 * @param int|null $indentation The indent level at which the block is to be read, or null for default
578 * @throws ParseException When indentation problem are detected
580 private function getNextEmbedBlock(int $indentation = null, bool $inSequence = false): string
588 if (null === $indentation) {
595 // empty and comment-like lines do not influence the indentation depth
617 $newIndent = $indentation;
633 // the previous line contained a dash but no item content, this line is a sequence item with the same indentation
829 * @param int $indentation The indentation indicator that was used to begin this block scalar
831 private function parseBlockScalar(string $style, string $chomping = '', int $indentation = 0): string
841 // leading blank lines are consumed before determining indentation
850 // determine indentation if not specified
851 if (0 === $indentation) {
855 ++$indentation;
859 if ($indentation > 0) {
860 $pattern = sprintf('/^ {%d}(.*)$/', $indentation);
868 if ($isCurrentLineBlank && \strlen($this->currentLine) > $indentation) {
869 $blockLines[] = substr($this->currentLine, $indentation);