Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitadb111d

Browse files
committed
[Yaml] Fix comment and change method name
1 parentef179aa commitadb111d

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
@@ -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 whetheror notthe current comment line is in a collection.
794+
* Tests whether the current comment line is in a collection.
795795
*
796796
* @return bool
797797
*/
798-
privatefunctionisPreviousNonCommentLineIsCollectionItem()
798+
privatefunctioncheckIfPreviousNonCommentLineIsCollectionItem()
799799
{
800800
$isCollectionItem =false;
801801
$moves =0;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp