Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5907444

Browse files
committed
remove unreachable code
1 parent c72f853 commit 5907444

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

src/Symfony/Component/Yaml/Parser.php

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1181,27 +1181,6 @@ private function parseQuotedString(string $yaml): ?string
11811181
}
11821182

11831183
return $value;
1184-
1185-
for ($i = 1; isset($yaml[$i]) && $quotation !== $yaml[$i]; ++$i) {
1186-
}
1187-
1188-
// quoted single line string
1189-
if (isset($yaml[$i]) && $quotation === $yaml[$i]) {
1190-
return $yaml;
1191-
}
1192-
1193-
$lines = [$yaml];
1194-
1195-
while ($this->moveToNextLine()) {
1196-
for ($i = 1; isset($this->currentLine[$i]) && $quotation !== $this->currentLine[$i]; ++$i) {
1197-
}
1198-
1199-
$lines[] = trim($this->currentLine);
1200-
1201-
if (isset($this->currentLine[$i]) && $quotation === $this->currentLine[$i]) {
1202-
break;
1203-
}
1204-
}
12051184
}
12061185

12071186
private function lexInlineMapping(string $yaml): string

0 commit comments

Comments
 (0)