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'
);
}
}
* reset whatever token it does use here.
*
* @protected For use by \MediaWiki\Session\SessionManager only
- * @param User $user;
+ * @param User $user
*/
public function invalidateSessionsForUser( User $user ) {
}
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 ) {