$dumpObjectAsInlineMap = true;
if (Yaml::DUMP_OBJECT_AS_MAP &
$flags && ($input instanceof \ArrayObject ||
$input instanceof \stdClass
)) { $dumpObjectAsInlineMap =
empty((array) $input);
} if ($inline <= 0
|| (!\
is_array($input) && !
$input instanceof TaggedValue &&
$dumpObjectAsInlineMap) ||
empty($input)) { $output .=
$prefix.Inline::
dump($input,
$flags);
} elseif ($input instanceof TaggedValue
) { $output .=
$this->
dumpTaggedValue($input,
$inline,
$indent,
$flags,
$prefix);
} else { $dumpAsMap = Inline::
isHash($input);
foreach ($input as $key =>
$value) { if ('' !==
$output && "\n" !==
$output[-1
]) { $output .= "\n";
} if (\
is_int($key) && Yaml::DUMP_NUMERIC_KEY_AS_STRING &
$flags) { $key =
(string) $key;
} if (Yaml::DUMP_MULTI_LINE_LITERAL_BLOCK &
$flags && \
is_string($value) &&
str_contains($value, "\n"
) && !
str_contains($value, "\r"
)) {