Code Duplication    Length = 7-7 lines in 2 locations

includes/class-wc-geo-ip.php 2 locations

@@ 1276-1282 (lines=7) @@
1273
					$offset -= 4;
1274
				}
1275
			}
1276
			if ( ( $this->databaseType == self::GEOIP_COUNTRY_EDITION )
1277
				|| ( $this->databaseType == self::GEOIP_COUNTRY_EDITION_V6 )
1278
				|| ( $this->databaseType == self::GEOIP_PROXY_EDITION )
1279
				|| ( $this->databaseType == self::GEOIP_NETSPEED_EDITION )
1280
			) {
1281
				$this->databaseSegments = self::GEOIP_COUNTRY_BEGIN;
1282
			}
1283
		} else {
1284
			$filepos = ftell( $this->filehandle );
1285
			fseek( $this->filehandle, -3, SEEK_END );
@@ 1346-1352 (lines=7) @@
1343
				}
1344
			}
1345
1346
			if ( ( $this->databaseType == self::GEOIP_COUNTRY_EDITION )
1347
				|| ( $this->databaseType == self::GEOIP_COUNTRY_EDITION_V6 )
1348
				|| ( $this->databaseType == self::GEOIP_PROXY_EDITION )
1349
				|| ( $this->databaseType == self::GEOIP_NETSPEED_EDITION )
1350
			) {
1351
				$this->databaseSegments = self::GEOIP_COUNTRY_BEGIN;
1352
			}
1353
1354
			fseek( $this->filehandle, $filepos, SEEK_SET );
1355
		}