@@ -81,28 +81,28 @@ public function dump(mixed $input, int $inline = 0, int $indent = 0, int $flags
81
81
$ blockChompingIndicator = '- ' ;
82
82
}
83
83
84
- $ output .= sprintf ('%s%s%s |%s%s ' , $ prefix , $ dumpAsMap ? Inline::dump ($ key , $ flags ).': ' : '- ' , '' , $ blockIndentationIndicator , $ blockChompingIndicator );
84
+ $ output .= \ sprintf ('%s%s%s |%s%s ' , $ prefix , $ dumpAsMap ? Inline::dump ($ key , $ flags ).': ' : '- ' , '' , $ blockIndentationIndicator , $ blockChompingIndicator );
85
85
86
86
foreach (explode ("\n" , $ value ) as $ row ) {
87
87
if ('' === $ row ) {
88
88
$ output .= "\n" ;
89
89
} else {
90
- $ output .= sprintf ("\n%s%s%s " , $ prefix , str_repeat (' ' , $ this ->indentation ), $ row );
90
+ $ output .= \ sprintf ("\n%s%s%s " , $ prefix , str_repeat (' ' , $ this ->indentation ), $ row );
91
91
}
92
92
}
93
93
94
94
continue ;
95
95
}
96
96
97
97
if ($ value instanceof TaggedValue) {
98
- $ output .= sprintf ('%s%s !%s ' , $ prefix , $ dumpAsMap ? Inline::dump ($ key , $ flags ).': ' : '- ' , $ value ->getTag ());
98
+ $ output .= \ sprintf ('%s%s !%s ' , $ prefix , $ dumpAsMap ? Inline::dump ($ key , $ flags ).': ' : '- ' , $ value ->getTag ());
99
99
100
100
if (Yaml::DUMP_MULTI_LINE_LITERAL_BLOCK & $ flags && \is_string ($ value ->getValue ()) && str_contains ($ value ->getValue (), "\n" ) && !str_contains ($ value ->getValue (), "\r\n" )) {
101
101
$ blockIndentationIndicator = $ this ->getBlockIndentationIndicator ($ value ->getValue ());
102
- $ output .= sprintf (' |%s ' , $ blockIndentationIndicator );
102
+ $ output .= \ sprintf (' |%s ' , $ blockIndentationIndicator );
103
103
104
104
foreach (explode ("\n" , $ value ->getValue ()) as $ row ) {
105
- $ output .= sprintf ("\n%s%s%s " , $ prefix , str_repeat (' ' , $ this ->indentation ), $ row );
105
+ $ output .= \ sprintf ("\n%s%s%s " , $ prefix , str_repeat (' ' , $ this ->indentation ), $ row );
106
106
}
107
107
108
108
continue ;
@@ -126,7 +126,7 @@ public function dump(mixed $input, int $inline = 0, int $indent = 0, int $flags
126
126
127
127
$ willBeInlined = $ inline - 1 <= 0 || !\is_array ($ value ) && $ dumpObjectAsInlineMap || !$ value ;
128
128
129
- $ output .= sprintf ('%s%s%s%s ' ,
129
+ $ output .= \ sprintf ('%s%s%s%s ' ,
130
130
$ prefix ,
131
131
$ dumpAsMap ? Inline::dump ($ key , $ flags ).': ' : '- ' ,
132
132
$ willBeInlined ? ' ' : "\n" ,
@@ -140,14 +140,14 @@ public function dump(mixed $input, int $inline = 0, int $indent = 0, int $flags
140
140
141
141
private function dumpTaggedValue (TaggedValue $ value , int $ inline , int $ indent , int $ flags , string $ prefix ): string
142
142
{
143
- $ output = sprintf ('%s!%s ' , $ prefix ? $ prefix .' ' : '' , $ value ->getTag ());
143
+ $ output = \ sprintf ('%s!%s ' , $ prefix ? $ prefix .' ' : '' , $ value ->getTag ());
144
144
145
145
if (Yaml::DUMP_MULTI_LINE_LITERAL_BLOCK & $ flags && \is_string ($ value ->getValue ()) && str_contains ($ value ->getValue (), "\n" ) && !str_contains ($ value ->getValue (), "\r\n" )) {
146
146
$ blockIndentationIndicator = $ this ->getBlockIndentationIndicator ($ value ->getValue ());
147
- $ output .= sprintf (' |%s ' , $ blockIndentationIndicator );
147
+ $ output .= \ sprintf (' |%s ' , $ blockIndentationIndicator );
148
148
149
149
foreach (explode ("\n" , $ value ->getValue ()) as $ row ) {
150
- $ output .= sprintf ("\n%s%s%s " , $ prefix , str_repeat (' ' , $ this ->indentation ), $ row );
150
+ $ output .= \ sprintf ("\n%s%s%s " , $ prefix , str_repeat (' ' , $ this ->indentation ), $ row );
151
151
}
152
152
153
153
return $ output ;
0 commit comments