* @return string
*/
public function getDomain() {
- if ( isset( $this->domain ) ) {
- return $this->domain;
- } else {
- return 'invaliddomain';
- }
+ return $this->domain ?? 'invaliddomain';
}
/**
/**
* @deprecated since 1.28, use SessionManager::invalidateSessionForUser() instead.
+ * @return bool
*/
public function resetAuthToken() {
# Override this!