@@ -68,7 +68,7 @@ public function dump($input, int $inline = 0, int $indent = 0, int $flags = 0):
68
68
$ output .= "\n" ;
69
69
}
70
70
71
- if ($ inline >= 1 && Yaml::DUMP_MULTI_LINE_LITERAL_BLOCK & $ flags && \is_string ($ value ) && false !== strpos ($ value , "\n" ) && false === strpos ($ value , "\r" )) {
71
+ if (Yaml::DUMP_MULTI_LINE_LITERAL_BLOCK & $ flags && \is_string ($ value ) && false !== strpos ($ value , "\n" ) && false === strpos ($ value , "\r" )) {
72
72
// If the first line starts with a space character, the spec requires a blockIndicationIndicator
73
73
// http://www.yaml.org/spec/1.2/spec.html#id2793979
74
74
$ blockIndentationIndicator = (' ' === substr ($ value , 0 , 1 )) ? (string ) $ this ->indentation : '' ;
@@ -97,7 +97,7 @@ public function dump($input, int $inline = 0, int $indent = 0, int $flags = 0):
97
97
if ($ value instanceof TaggedValue) {
98
98
$ output .= sprintf ('%s%s !%s ' , $ prefix , $ dumpAsMap ? Inline::dump ($ key , $ flags ).': ' : '- ' , $ value ->getTag ());
99
99
100
- if ($ inline >= 1 && Yaml::DUMP_MULTI_LINE_LITERAL_BLOCK & $ flags && \is_string ($ value ->getValue ()) && false !== strpos ($ value ->getValue (), "\n" ) && false === strpos ($ value ->getValue (), "\r\n" )) {
100
+ if (Yaml::DUMP_MULTI_LINE_LITERAL_BLOCK & $ flags && \is_string ($ value ->getValue ()) && false !== strpos ($ value ->getValue (), "\n" ) && false === strpos ($ value ->getValue (), "\r\n" )) {
101
101
// If the first line starts with a space character, the spec requires a blockIndicationIndicator
102
102
// http://www.yaml.org/spec/1.2/spec.html#id2793979
103
103
$ blockIndentationIndicator = (' ' === substr ($ value ->getValue (), 0 , 1 )) ? (string ) $ this ->indentation : '' ;
0 commit comments