: IP::sanitizeRange( "$ip/16" );
# Bail out if a request already came from this range...
- $key = wfMemcKey( get_class( $this ), 'attempt', $this->mType, $this->mKey, $ip );
+ $key = wfMemcKey( static::class, 'attempt', $this->mType, $this->mKey, $ip );
if ( $cache->get( $key ) ) {
return; // possibly the same user
}
* @return string
*/
protected function cacheMissKey() {
- return wfMemcKey( get_class( $this ), 'misses', $this->mType, $this->mKey );
+ return wfMemcKey( static::class, 'misses', $this->mType, $this->mKey );
}
}