Fix code smells
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user