remove unreachable code
This commit is contained in:
parent
c72f85333a
commit
5907444e81
@ -1181,27 +1181,6 @@ class Parser
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $value;
|
return $value;
|
||||||
|
|
||||||
for ($i = 1; isset($yaml[$i]) && $quotation !== $yaml[$i]; ++$i) {
|
|
||||||
}
|
|
||||||
|
|
||||||
// quoted single line string
|
|
||||||
if (isset($yaml[$i]) && $quotation === $yaml[$i]) {
|
|
||||||
return $yaml;
|
|
||||||
}
|
|
||||||
|
|
||||||
$lines = [$yaml];
|
|
||||||
|
|
||||||
while ($this->moveToNextLine()) {
|
|
||||||
for ($i = 1; isset($this->currentLine[$i]) && $quotation !== $this->currentLine[$i]; ++$i) {
|
|
||||||
}
|
|
||||||
|
|
||||||
$lines[] = trim($this->currentLine);
|
|
||||||
|
|
||||||
if (isset($this->currentLine[$i]) && $quotation === $this->currentLine[$i]) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private function lexInlineMapping(string $yaml): string
|
private function lexInlineMapping(string $yaml): string
|
||||||
|
Reference in New Issue
Block a user