original_string: public function get($type)
      {
          if ($type != 'request_token' && $type != 'access_token') {
              throw new \Dropbox\Exception("Expected a type of either 'request_token' or 'access_token', got '$type'");
          } else {
              if (isset($_SESSION[$this->namespace][$this->userID][$type])) {
                  $token = $this->decrypt($_SESSION[$this->namespace][$this->userID][$type]);
                  return $token;
              }
              return false;
          }
      }
code: public function get($type)
      {
          if ($type != 'request_token' && $type != 'access_token') {
              throw new \Dropbox\Exception("Expected a type of either 'request_token' or 'access_token', got '$type'");
          } else {
              if (isset($_SESSION[$this->namespace][$this->userID][$type])) {
                  $token = $this->decrypt($_SESSION[$this->namespace][$this->userID][$type]);
                  return $token;
              }
              return false;
          }
      }
code_tokens: public function get ( $ type ) { if ( $ type != 'request_token' && $ type != 'access_token' ) { throw new \ Dropbox \ Exception ( "Expected a type of either 'request_token' or 'access_token', got '$type'" ) ; } else { if ( isset ( $ _SESSION [ $ this -> namespace ] [ $ this -> userID ] [ $ type ] ) ) { $ token = $ this -> decrypt ( $ _SESSION [ $ this -> namespace ] [ $ this -> userID ] [ $ type ] ) ; return $ token ; } return false ; } }
docstring: Get an OAuth token from the session
  If the encrpytion object is set then decrypt the token before returning
  @param string $type Token type to retrieve
  @return array|bool
docstring_tokens: Get an OAuth token from the session If the encrpytion object is set then decrypt the token before returning