@@ -311,7 +311,7 @@ private function getNextEmbedBlock($indentation = null, $inSequence = false)
311
311
if (null === $ indentation ) {
312
312
$ newIndent = $ this ->getCurrentLineIndentation ();
313
313
314
- $ unindentedEmbedBlock = $ this ->isStringUnIndentedCollectionItem ($ this -> currentLine );
314
+ $ unindentedEmbedBlock = $ this ->isStringUnIndentedCollectionItem ();
315
315
316
316
if (!$ this ->isCurrentLineEmpty () && 0 === $ newIndent && !$ unindentedEmbedBlock ) {
317
317
throw new ParseException ('Indentation problem. ' , $ this ->getRealCurrentLineNb () + 1 , $ this ->currentLine );
@@ -337,7 +337,7 @@ private function getNextEmbedBlock($indentation = null, $inSequence = false)
337
337
return ;
338
338
}
339
339
340
- $ isItUnindentedCollection = $ this ->isStringUnIndentedCollectionItem ($ this -> currentLine );
340
+ $ isItUnindentedCollection = $ this ->isStringUnIndentedCollectionItem ();
341
341
342
342
// Comments must not be removed inside a block scalar
343
343
$ removeCommentsPattern = '~ ' .self ::BLOCK_SCALAR_HEADER_PATTERN .'$~ ' ;
@@ -350,7 +350,7 @@ private function getNextEmbedBlock($indentation = null, $inSequence = false)
350
350
$ removeComments = !preg_match ($ removeCommentsPattern , $ this ->currentLine );
351
351
}
352
352
353
- if ($ isItUnindentedCollection && !$ this ->isStringUnIndentedCollectionItem ($ this -> currentLine ) && $ newIndent === $ indent ) {
353
+ if ($ isItUnindentedCollection && !$ this ->isStringUnIndentedCollectionItem () && $ newIndent === $ indent ) {
354
354
$ this ->moveToPreviousLine ();
355
355
break ;
356
356
}
@@ -653,7 +653,7 @@ private function isNextLineUnIndentedCollection()
653
653
if (
654
654
$ this ->getCurrentLineIndentation () == $ currentIndentation
655
655
&&
656
- $ this ->isStringUnIndentedCollectionItem ($ this -> currentLine )
656
+ $ this ->isStringUnIndentedCollectionItem ()
657
657
) {
658
658
$ ret = true ;
659
659
}
0 commit comments