original_string: public function validate($authTokenPayload) {
  
      if($authTokenPayload == null) {
        return false;
      }
  
      $tokenResponse = $this->tokens->find($authTokenPayload);
  
      if($tokenResponse == null) {
        return false;
      }
  
      $user = $this->users->retrieveByID( $tokenResponse->getAuthIdentifier() );
  
      if($user == null) {
        return false;
      }
  
      return $user;
    }
code: public function validate($authTokenPayload) {
  
      if($authTokenPayload == null) {
        return false;
      }
  
      $tokenResponse = $this->tokens->find($authTokenPayload);
  
      if($tokenResponse == null) {
        return false;
      }
  
      $user = $this->users->retrieveByID( $tokenResponse->getAuthIdentifier() );
  
      if($user == null) {
        return false;
      }
  
      return $user;
    }
code_tokens: public function validate ( $ authTokenPayload ) { if ( $ authTokenPayload == null ) { return false ; } $ tokenResponse = $ this -> tokens -> find ( $ authTokenPayload ) ; if ( $ tokenResponse == null ) { return false ; } $ user = $ this -> users -> retrieveByID ( $ tokenResponse -> getAuthIdentifier ( ) ) ; if ( $ user == null ) { return false ; } return $ user ; }
docstring: Validates a public auth token. Returns User object on success, otherwise false.
  
  @param $authTokenPayload
  @return bool|UserInterface
docstring_tokens: Validates a public auth token . Returns User object on success otherwise false .