Fix code smells

This commit is contained in:
2024-06-11 21:57:56 +02:00
parent d4918dd893
commit 94dfa17290
8 changed files with 18 additions and 21 deletions

View File

@ -216,7 +216,7 @@ final class MD_STD_IN {
}
$rewritten .= $parsed['host'];
if (!empty($parsed['port'])) $rewritten .= ':' . $parsed['port'];
$rewritten .= str_replace('%2F' , '/', urlencode($parsed['path']));
$rewritten .= str_replace('%2F', '/', urlencode($parsed['path']));
if (!empty($parsed['query'])) {
$rewritten .= '?' . str_replace('%3D', '=', urlencode($parsed['query']));
}
@ -267,7 +267,7 @@ final class MD_STD_IN {
}
if (($output = \filter_var($input, FILTER_VALIDATE_EMAIL)) === false) {
throw new MDInvalidEmail("Invalid input email address" . ' '. $input);
throw new MDInvalidEmail("Invalid input email address" . ' ' . $input);
}
return $output;