Lines Matching refs:inline
45 * @param int $inline The level where you switch to inline YAML
49 public function dump($input, int $inline = 0, int $indent = 0, int $flags = 0): string
59 if ($inline <= 0 || (!\is_array($input) && !$input instanceof TaggedValue && $dumpObjectAsInlineMap) || empty($input)) {
62 $output .= $this->dumpTaggedValue($input, $inline, $indent, $flags, $prefix);
113 if ($inline - 1 <= 0 || null === $value->getValue() || \is_scalar($value->getValue())) {
114 $output .= ' '.$this->dump($value->getValue(), $inline - 1, 0, $flags)."\n";
117 $output .= $this->dump($value->getValue(), $inline - 1, $dumpAsMap ? $indent + $this->indentation : $indent + 2, $flags);
129 $willBeInlined = $inline - 1 <= 0 || !\is_array($value) && $dumpObjectAsInlineMap || empty($value);
135 $this->dump($value, $inline - 1, $willBeInlined ? 0 : $indent + $this->indentation, $flags)
143 private function dumpTaggedValue(TaggedValue $value, int $inline, int $indent, int $flags, string $prefix): string
160 if ($inline - 1 <= 0 || null === $value->getValue() || \is_scalar($value->getValue())) {
161 return $output.' '.$this->dump($value->getValue(), $inline - 1, 0, $flags)."\n";
164 return $output."\n".$this->dump($value->getValue(), $inline - 1, $indent, $flags);