private function indentMultilineYamlArray(string $yaml): string
    {
        // But, if the *value* is an array, then ITS children will
        // also need to be indented artificially by the same amount
        $yaml = str_replace("\n", "\n".$this->getCurrentIndentation(), $yaml);

        // now indent this level
        return $this->getCurrentIndentation().$yaml;
    }
private function indentMultilineYamlArray(string $yaml): string
    {
        // But, if the *value* is an array, then ITS children will
        // also need to be indented artificially by the same amount
        $yaml = str_replace("\n", "\n".$this->getCurrentIndentation(), $yaml);

        // now indent this level
        return $this->getCurrentIndentation().$yaml;
    }
private function indentMultilineYamlArray ( string $ yaml ) : string { // But, if the *value* is an array, then ITS children will // also need to be indented artificially by the same amount $ yaml = str_replace ( "\n" , "\n" . $ this -> getCurrentIndentation ( ) , $ yaml ) ; // now indent this level return $ this -> getCurrentIndentation ( ) . $ yaml ; }
Takes an unindented multi-line YAML string and indents it so
it can be inserted into the current position.

Usually an empty line needs to be prepended to this result before
adding to the content.
Takes an unindented multi - line YAML string and indents it so it can be inserted into the current position .