Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 613804d

Browse filesBrowse files
mhujerfabpot
authored andcommitted
[Yaml] minor CS cleaning
1 parent 0239d4a commit 613804d
Copy full SHA for 613804d

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed

‎src/Symfony/Component/Yaml/Parser.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Yaml/Parser.php
+4-4Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.