Skip to content

Commit

Permalink
Merge branch '4.4' into 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus committed Nov 15, 2020
2 parents f284e03 + 443c622 commit 34b513f
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -1190,27 +1190,6 @@ private function parseQuotedString(string $yaml): ?string
}

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
Expand Down

0 comments on commit 34b513f

Please sign in to comment.