original_string: public function getUserFeed($userName = null, $location = null)
      {
          if ($location instanceof Zend_Gdata_Photos_UserQuery) {
              $location->setType('feed');
              if ($userName !== null) {
                  $location->setUser($userName);
              }
              $uri = $location->getQueryUrl();
          } else if ($location instanceof Zend_Gdata_Query) {
              if ($userName !== null) {
                  $location->setUser($userName);
              }
              $uri = $location->getQueryUrl();
          } else if ($location !== null) {
              $uri = $location;
          } else if ($userName !== null) {
              $uri = self::PICASA_BASE_FEED_URI . '/' .
                  self::DEFAULT_PROJECTION . '/' . self::USER_PATH . '/' .
                  $userName;
          } else {
              $uri = self::PICASA_BASE_FEED_URI . '/' .
                  self::DEFAULT_PROJECTION . '/' . self::USER_PATH . '/' .
                  self::DEFAULT_USER;
          }
  
          return parent::getFeed($uri, 'Zend_Gdata_Photos_UserFeed');
      }
code: public function getUserFeed($userName = null, $location = null)
      {
          if ($location instanceof Zend_Gdata_Photos_UserQuery) {
              $location->setType('feed');
              if ($userName !== null) {
                  $location->setUser($userName);
              }
              $uri = $location->getQueryUrl();
          } else if ($location instanceof Zend_Gdata_Query) {
              if ($userName !== null) {
                  $location->setUser($userName);
              }
              $uri = $location->getQueryUrl();
          } else if ($location !== null) {
              $uri = $location;
          } else if ($userName !== null) {
              $uri = self::PICASA_BASE_FEED_URI . '/' .
                  self::DEFAULT_PROJECTION . '/' . self::USER_PATH . '/' .
                  $userName;
          } else {
              $uri = self::PICASA_BASE_FEED_URI . '/' .
                  self::DEFAULT_PROJECTION . '/' . self::USER_PATH . '/' .
                  self::DEFAULT_USER;
          }
  
          return parent::getFeed($uri, 'Zend_Gdata_Photos_UserFeed');
      }
code_tokens: public function getUserFeed ( $ userName = null , $ location = null ) { if ( $ location instanceof Zend_Gdata_Photos_UserQuery ) { $ location -> setType ( 'feed' ) ; if ( $ userName !== null ) { $ location -> setUser ( $ userName ) ; } $ uri = $ location -> getQueryUrl ( ) ; } else if ( $ location instanceof Zend_Gdata_Query ) { if ( $ userName !== null ) { $ location -> setUser ( $ userName ) ; } $ uri = $ location -> getQueryUrl ( ) ; } else if ( $ location !== null ) { $ uri = $ location ; } else if ( $ userName !== null ) { $ uri = self :: PICASA_BASE_FEED_URI . '/' . self :: DEFAULT_PROJECTION . '/' . self :: USER_PATH . '/' . $ userName ; } else { $ uri = self :: PICASA_BASE_FEED_URI . '/' . self :: DEFAULT_PROJECTION . '/' . self :: USER_PATH . '/' . self :: DEFAULT_USER ; } return parent :: getFeed ( $ uri , 'Zend_Gdata_Photos_UserFeed' ) ; }
docstring: Retrieve a UserFeed containing AlbumEntries, PhotoEntries and
  TagEntries associated with a given user.
  
  @param string $userName The userName of interest
  @param mixed $location (optional) The location for the feed, as a URL
  or Query. If not provided, a default URL will be used instead.
  @return Zend_Gdata_Photos_UserFeed
  @throws Zend_Gdata_App_Exception
  @throws Zend_Gdata_App_HttpException
docstring_tokens: Retrieve a UserFeed containing AlbumEntries PhotoEntries and TagEntries associated with a given user .