@@ -347,7 +347,7 @@ private function getNextEmbedBlock($indentation = null, $inSequence = false)
347
347
if (null === $ indentation ) {
348
348
$ newIndent = $ this ->getCurrentLineIndentation ();
349
349
350
- $ unindentedEmbedBlock = $ this ->isStringUnIndentedCollectionItem ($ this -> currentLine );
350
+ $ unindentedEmbedBlock = $ this ->isStringUnIndentedCollectionItem ();
351
351
352
352
if (!$ this ->isCurrentLineEmpty () && 0 === $ newIndent && !$ unindentedEmbedBlock ) {
353
353
throw new ParseException ('Indentation problem. ' , $ this ->getRealCurrentLineNb () + 1 , $ this ->currentLine );
@@ -373,7 +373,7 @@ private function getNextEmbedBlock($indentation = null, $inSequence = false)
373
373
return ;
374
374
}
375
375
376
- $ isItUnindentedCollection = $ this ->isStringUnIndentedCollectionItem ($ this -> currentLine );
376
+ $ isItUnindentedCollection = $ this ->isStringUnIndentedCollectionItem ();
377
377
378
378
// Comments must not be removed inside a block scalar
379
379
$ removeCommentsPattern = '~ ' .self ::BLOCK_SCALAR_HEADER_PATTERN .'$~ ' ;
@@ -386,7 +386,7 @@ private function getNextEmbedBlock($indentation = null, $inSequence = false)
386
386
$ removeComments = !preg_match ($ removeCommentsPattern , $ this ->currentLine );
387
387
}
388
388
389
- if ($ isItUnindentedCollection && !$ this ->isStringUnIndentedCollectionItem ($ this -> currentLine ) && $ newIndent === $ indent ) {
389
+ if ($ isItUnindentedCollection && !$ this ->isStringUnIndentedCollectionItem () && $ newIndent === $ indent ) {
390
390
$ this ->moveToPreviousLine ();
391
391
break ;
392
392
}
@@ -690,7 +690,7 @@ private function isNextLineUnIndentedCollection()
690
690
if (
691
691
$ this ->getCurrentLineIndentation () == $ currentIndentation
692
692
&&
693
- $ this ->isStringUnIndentedCollectionItem ($ this -> currentLine )
693
+ $ this ->isStringUnIndentedCollectionItem ()
694
694
) {
695
695
$ ret = true ;
696
696
}
0 commit comments