public function preventSessionsForUser( $username ) {
if ( !$this->canChangeUser() ) {
throw new \BadMethodCallException(
- __METHOD__ . ' must be implmented when canChangeUser() is false'
+ __METHOD__ . ' must be implemented when canChangeUser() is false'
);
}
}
if ( strlen( $hash ) < 32 ) {
// Should never happen, even md5 is 128 bits
// @codeCoverageIgnoreStart
- throw new \UnexpectedValueException( 'Hash fuction returned less than 128 bits' );
+ throw new \UnexpectedValueException( 'Hash function returned less than 128 bits' );
// @codeCoverageIgnoreEnd
}
if ( strlen( $hash ) >= 40 ) {