Tweak docblocks in GeoIP class
This commit is contained in:
parent
47489fb800
commit
f45d367d9f
|
@ -1448,8 +1448,8 @@ class WC_Geo_IP {
|
|||
/**
|
||||
* Seek country IPv6.
|
||||
*
|
||||
* @param int $ipnum [description]
|
||||
* @return bool|int
|
||||
* @param int $ipnum
|
||||
* @return string
|
||||
*/
|
||||
function _geoip_seek_country_v6( $ipnum ) {
|
||||
// arrays from unpack start with offset 1
|
||||
|
@ -1621,7 +1621,7 @@ class WC_Geo_IP {
|
|||
*/
|
||||
public function geoip_country_code_by_addr( $addr ) {
|
||||
if ( $this->databaseType == self::GEOIP_CITY_EDITION_REV1 ) {
|
||||
$record = $this->geoip_record_by_addr( $addr);
|
||||
$record = $this->geoip_record_by_addr( $addr );
|
||||
if ( $record !== false ) {
|
||||
return $record->country_code;
|
||||
}
|
||||
|
@ -1641,7 +1641,6 @@ class WC_Geo_IP {
|
|||
* @param string $string
|
||||
* @param int $start
|
||||
* @param int $length
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
private function _safe_substr( $string, $start, $length ) {
|
||||
|
|
Loading…
Reference in New Issue