Code Duplication    Length = 3-3 lines in 2 locations

src/validation.php 2 locations

@@ 700-702 (lines=3) @@
697
 */
698
function isEuVatNumber(string $pi, bool $validateOnVIES = false): bool
699
{
700
    if ($pi === null || $pi === '' || strlen($pi) < 2) {
701
        return false;
702
    }
703
704
    //try to find country code
705
    $countryCode = strtoupper(substr($pi, 0, 2));
@@ 744-746 (lines=3) @@
741
 */
742
function isITVat(string $pi): bool
743
{
744
    if ($pi === null || $pi === '' || strlen($pi) < 2) {
745
        return false;
746
    }
747
748
    //try to find country code
749
    $countryCode = strtoupper(substr($pi, 0, 2));