Code Duplication    Length = 13-13 lines in 2 locations

includes/libraries/wpinv-euvat/class-wpinv-euvat.php 2 locations

@@ 558-570 (lines=13) @@
555
        return $filename;
556
    }
557
558
    public static function geoip2_country_reader() {
559
        try {
560
            self::load_geoip2();
561
562
            if ( $filename = self::geoip2_country_dbfile() ) {
563
                return new \GeoIp2\Database\Reader( $filename );
564
            }
565
        } catch( Exception $e ) {
566
            return false;
567
        }
568
        
569
        return false;
570
    }
571
572
    public static function geoip2_city_reader() {
573
        try {
@@ 572-584 (lines=13) @@
569
        return false;
570
    }
571
572
    public static function geoip2_city_reader() {
573
        try {
574
            self::load_geoip2();
575
576
            if ( $filename = self::geoip2_city_dbfile() ) {
577
                return new \GeoIp2\Database\Reader( $filename );
578
            }
579
        } catch( Exception $e ) {
580
            return false;
581
        }
582
        
583
        return false;
584
    }
585
586
    public static function geoip2_country_record( $ip_address ) {
587
        try {