cleanup for self-review

This commit is contained in:
jordanbrauer
2021-02-13 13:31:25 -06:00
parent 9a0240bc7b
commit 19a1569fa8
9 changed files with 21 additions and 23 deletions

View File

@ -179,7 +179,7 @@ final class TestCaseFactory
// Strip out any %-encoded octets.
$relativePath = (string) preg_replace('|%[a-fA-F0-9][a-fA-F0-9]|', '', $relativePath);
// Remove escaped quote sequences
// Remove escaped quote sequences (maintain namespace)
$relativePath = str_replace(array_map(function (string $quote): string {
return sprintf('\\%s', $quote);
}, ['\'', '"']), '', $relativePath);