Lines Matching defs:indentation
26 * The amount of spaces to use for indentation of nested nodes.
30 protected $indentation;
32 public function __construct(int $indentation = 4)
34 if ($indentation < 1) {
35 throw new \InvalidArgumentException('The indentation must be greater than zero.');
38 $this->indentation = $indentation;
46 * @param int $indent The level of indentation (used internally)
74 $blockIndentationIndicator = (' ' === substr($value, 0, 1)) ? (string) $this->indentation : '';
90 $output .= sprintf("\n%s%s%s", $prefix, str_repeat(' ', $this->indentation), $row);
103 $blockIndentationIndicator = (' ' === substr($value->getValue(), 0, 1)) ? (string) $this->indentation : '';
107 $output .= sprintf("\n%s%s%s", $prefix, str_repeat(' ', $this->indentation), $row);
117 $output .= $this->dump($value->getValue(), $inline - 1, $dumpAsMap ? $indent + $this->indentation : $indent + 2, $flags);
135 $this->dump($value, $inline - 1, $willBeInlined ? 0 : $indent + $this->indentation, $flags)
150 $blockIndentationIndicator = (' ' === substr($value->getValue(), 0, 1)) ? (string) $this->indentation : '';
154 $output .= sprintf("\n%s%s%s", $prefix, str_repeat(' ', $this->indentation), $row);