Skip to content

Commit bf4501a

Browse files
committed
[Yaml] Fix comment and change method name
1 parent 343ee3e commit bf4501a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/Yaml/Parser.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ private function getNextEmbedBlock($indentation = null, $inSequence = false)
448448
}
449449

450450
// we ignore "comment" lines only when we are not inside a scalar block
451-
if (empty($blockScalarIndentations) && $this->isCurrentLineComment() && false === $this->isPreviousNonCommentLineIsCollectionItem()) {
451+
if (empty($blockScalarIndentations) && $this->isCurrentLineComment() && false === $this->checkIfPreviousNonCommentLineIsCollectionItem()) {
452452
continue;
453453
}
454454

@@ -826,11 +826,11 @@ private function isCurrentLineCollectionItem()
826826
}
827827

828828
/**
829-
* Tests whether or not the current comment line is in a collection.
829+
* Tests whether the current comment line is in a collection.
830830
*
831831
* @return bool
832832
*/
833-
private function isPreviousNonCommentLineIsCollectionItem()
833+
private function checkIfPreviousNonCommentLineIsCollectionItem()
834834
{
835835
$isCollectionItem = false;
836836
$moves = 0;

0 commit comments

Comments
 (0)