Skip to content

Commit

Permalink
change static to self for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
asumaran committed Feb 16, 2024
1 parent 41b3f4d commit ea65150
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/woocommerce/includes/class-wc-geo-ip.php
Expand Up @@ -1194,7 +1194,7 @@ public function geoip_open( $filename, $flags ) {
$this->memory_buffer = fread( $this->filehandle, $s_array['size'] );
}
} else {
static::log( 'GeoIP API: Can not open ' . $filename, 'error' );
self::log( 'GeoIP API: Can not open ' . $filename, 'error' );
}
}

Expand Down Expand Up @@ -1553,7 +1553,7 @@ public function _geoip_seek_country_v6( $ipnum ) {
}
}

static::log( 'GeoIP API: Error traversing database - perhaps it is corrupt?', 'error' );
self::log( 'GeoIP API: Error traversing database - perhaps it is corrupt?', 'error' );

return false;
}
Expand Down Expand Up @@ -1608,7 +1608,7 @@ private function _geoip_seek_country( $ipnum ) {
}
}

static::log( 'GeoIP API: Error traversing database - perhaps it is corrupt?', 'error' );
self::log( 'GeoIP API: Error traversing database - perhaps it is corrupt?', 'error' );

return false;
}
Expand Down Expand Up @@ -1637,7 +1637,7 @@ public function geoip_record_by_addr( $addr ) {
*/
public function geoip_country_id_by_addr_v6( $addr ) {
if ( ! defined( 'AF_INET6' ) ) {
static::log( 'GEOIP (geoip_country_id_by_addr_v6): PHP was compiled with --disable-ipv6 option' );
self::log( 'GEOIP (geoip_country_id_by_addr_v6): PHP was compiled with --disable-ipv6 option' );
return false;
}
$ipnum = inet_pton( $addr );
Expand Down

0 comments on commit ea65150

Please sign in to comment.