Skip to content

Commit adb111d

Browse files
committed
[Yaml] Fix comment and change method name
1 parent ef179aa commit adb111d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/Yaml/Parser.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ private function getNextEmbedBlock($indentation = null, $inSequence = false)
417417
}
418418

419419
// we ignore "comment" lines only when we are not inside a scalar block
420-
if (empty($blockScalarIndentations) && $this->isCurrentLineComment() && false === $this->isPreviousNonCommentLineIsCollectionItem()) {
420+
if (empty($blockScalarIndentations) && $this->isCurrentLineComment() && false === $this->checkIfPreviousNonCommentLineIsCollectionItem()) {
421421
continue;
422422
}
423423

@@ -791,11 +791,11 @@ private function isCurrentLineCollectionItem()
791791
}
792792

793793
/**
794-
* Tests whether or not the current comment line is in a collection.
794+
* Tests whether the current comment line is in a collection.
795795
*
796796
* @return bool
797797
*/
798-
private function isPreviousNonCommentLineIsCollectionItem()
798+
private function checkIfPreviousNonCommentLineIsCollectionItem()
799799
{
800800
$isCollectionItem = false;
801801
$moves = 0;

0 commit comments

Comments
 (0)