Code Duplication    Length = 13-13 lines in 2 locations

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

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