user()); } /** * @SuppressWarnings(PHPMD.Superglobals) */ public function user() { if (!is_null($this->user)) { return $this->user; } $isAuthenticated = isset($GLOBALS['user']) && 'nobody' !== $GLOBALS['user']->id; if ($isAuthenticated) { $this->user = $GLOBALS['user']->getAuthenticatedUser(); } return $this->user; } public function addChallenge(Response $response) { return $response; } }