original_string: public function isAuthenticated()
      {
          // Validate token.
          $authenticated = $this->validateToken($this->getCookieToken());
          if ($authenticated) {
              $this->setCookieToken($this->dispenseToken()); // Dispense a new token.
          }
          return $authenticated;
      }
code: public function isAuthenticated()
      {
          // Validate token.
          $authenticated = $this->validateToken($this->getCookieToken());
          if ($authenticated) {
              $this->setCookieToken($this->dispenseToken()); // Dispense a new token.
          }
          return $authenticated;
      }
code_tokens: public function isAuthenticated ( ) { // Validate token. $ authenticated = $ this -> validateToken ( $ this -> getCookieToken ( ) ) ; if ( $ authenticated ) { $ this -> setCookieToken ( $ this -> dispenseToken ( ) ) ; // Dispense a new token. } return $ authenticated ; }
docstring: Checks whether or not the current user is authenticated.
  
  @return bool
docstring_tokens: Checks whether or not the current user is authenticated .