File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/Symfony/Component/Yaml Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -312,7 +312,9 @@ private function getNextEmbedBlock($indentation = null)
312
312
$ removeComments = !preg_match ($ removeCommentsPattern , $ this ->currentLine );
313
313
314
314
while ($ this ->moveToNextLine ()) {
315
- if ($ this ->getCurrentLineIndentation () === $ newIndent ) {
315
+ $ indent = $ this ->getCurrentLineIndentation ();
316
+
317
+ if ($ indent === $ newIndent ) {
316
318
$ removeComments = !preg_match ($ removeCommentsPattern , $ this ->currentLine );
317
319
}
318
320
@@ -329,8 +331,6 @@ private function getNextEmbedBlock($indentation = null)
329
331
continue ;
330
332
}
331
333
332
- $ indent = $ this ->getCurrentLineIndentation ();
333
-
334
334
if (preg_match ('#^(?P<text> *)$# ' , $ this ->currentLine , $ match )) {
335
335
// empty line
336
336
$ data [] = $ match ['text ' ];
You can’t perform that action at this time.
0 commit comments