From 91ee5cc6ee02f0a8d680eef5807916f48d232fa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Hukkam=C3=A4ki?= Date: Thu, 14 Mar 2024 22:35:42 +0200 Subject: [PATCH] Remove unreachable guards to satisfy Codecov; these cases are also protected by the regex on L36 --- library/Rules/Hetu.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/library/Rules/Hetu.php b/library/Rules/Hetu.php index d6a8924c..624fe521 100644 --- a/library/Rules/Hetu.php +++ b/library/Rules/Hetu.php @@ -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;