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

Commitbf4501a

Browse files
committed
[Yaml] Fix comment and change method name
1 parent343ee3e commitbf4501a

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 whetheror notthe current comment line is in a collection.
829+
* Tests whether the current comment line is in a collection.
830830
*
831831
* @return bool
832832
*/
833-
privatefunctionisPreviousNonCommentLineIsCollectionItem()
833+
privatefunctioncheckIfPreviousNonCommentLineIsCollectionItem()
834834
{
835835
$isCollectionItem =false;
836836
$moves =0;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp