8000 [Yaml] minor CS cleaning · symfony/symfony@613804d · GitHub
[go: up one dir, main page]

Skip to content

Commit 613804d

Browse files
mhujerfabpot
authored andcommitted
[Yaml] minor CS cleaning
1 parent 0239d4a commit 613804d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Symfony/Component/Yaml/Parser.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ private function getNextEmbedBlock($indentation = null, $inSequence = false)
311311
if (null === $indentation) {
312312
$newIndent = $this->getCurrentLineIndentation();
313313

314-
$unindentedEmbedBlock = $this->isStringUnIndentedCollectionItem($this->currentLine);
314+
$unindentedEmbedBlock = $this->isStringUnIndentedCollectionItem();
315315

316316
if (!$this->isCurrentLineEmpty() && 0 === $newIndent && !$unindentedEmbedBlock) {
317317
throw new ParseException('Indentation problem.', $this->getRealCurrentLineNb() + 1, $this->currentLine);
@@ -337,7 +337,7 @@ private function getNextEmbedBlock($indentation = null, $inSequence = false)
337337
return;
338338
}
339339

340-
$isItUnindentedCollection = $this->isStringUnIndentedCollectionItem($this->currentLine);
340+
$isItUnindentedCollection = $this->isStringUnIndentedCollectionItem();
341341

342342
// Comments must not be removed inside a block scalar
343343
$removeCommentsPattern = '~'.self::BLOCK_SCALAR_HEADER_PATTERN.'$~';
@@ -350,7 +350,7 @@ private function getNextEmbedBlock($indentation = null, $inSequence = false)
350350
$removeComments = !preg_match($removeCommentsPattern, $this->currentLine);
351351
}
352352

353-
if ($isItUnindentedCollection && !$this->isStringUnIndentedCollectionItem($this->currentLine) && $newIndent === $indent) {
353+
if ($isItUnindentedCollection && !$this->isStringUnIndentedCollectionItem() && $newIndent === $indent) {
354354
$this->moveToPreviousLine();
355355
break;
356356
}
@@ -653,7 +653,7 @@ private function isNextLineUnIndentedCollection()
653653
if (
654654
$this->getCurrentLineIndentation() == $currentIndentation
655655
&&
656-
$this->isStringUnIndentedCollectionItem($this->currentLine)
656+
$this->isStringUnIndentedCollectionItem()
657657
) {
658658
$ret = true;
659659
}

0 commit comments

Comments
 (0)
0