public function getUserInRequest() {
    if (isset($_COOKIE[$this->cookieName])) {
      $user = $this->validateToken($_COOKIE[$this->cookieName],
          $this->clientId);
      if ($user) {
        $accountInfo = $this->getUserById($user->getUserId());
        $accountInfo->setProviderId($user->getProviderId());
        return $accountInfo;
      }
    }
    return null;
  }
public function getUserInRequest() {
    if (isset($_COOKIE[$this->cookieName])) {
      $user = $this->validateToken($_COOKIE[$this->cookieName],
          $this->clientId);
      if ($user) {
        $accountInfo = $this->getUserById($user->getUserId());
        $accountInfo->setProviderId($user->getProviderId());
        return $accountInfo;
      }
    }
    return null;
  }
public function getUserInRequest ( ) { if ( isset ( $ _COOKIE [ $ this -> cookieName ] ) ) { $ user = $ this -> validateToken ( $ _COOKIE [ $ this -> cookieName ] , $ this -> clientId ) ; if ( $ user ) { $ accountInfo = $ this -> getUserById ( $ user -> getUserId ( ) ) ; $ accountInfo -> setProviderId ( $ user -> getProviderId ( ) ) ; return $ accountInfo ; } } return null ; }
Gets GitkitUser for the http request. Complete user info is retrieved from
Gitkit server.

@return Gitkit_Account|null Gitkit user at Gitkit server, null for invalid
token
Gets GitkitUser for the http request . Complete user info is retrieved from Gitkit server .