mirror of
https://github.com/Respect/Validation.git
synced 2024-05-17 13:46:40 +02:00
Remove unreachable guards to satisfy Codecov; these cases are also protected by the regex on L36
This commit is contained in:
parent
35d8d2e0c7
commit
91ee5cc6ee
|
@ -41,13 +41,8 @@ final class Hetu extends Simple
|
|||
'+' => '18',
|
||||
'-','U','V','W','X','Y' => '19',
|
||||
'A','B','C','D','E','F' => '20',
|
||||
default => null,
|
||||
};
|
||||
|
||||
if ($century === null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$dateRule = new Date();
|
||||
if (!$dateRule->evaluate($century . $m[3] . '-' . $m[2] . '-' . $m[1])->isValid) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue