lib/TheTwelve/Foursquare/UsersGateway.php
protected function buildUserResourceUri($resource, $userId = null)
    {

        $userId = is_null($userId) ? $this->userId : $userId;
        return '/users/' . $userId . '/' . $resource;

    }
protected function buildUserResourceUri($resource, $userId = null)
    {

        $userId = is_null($userId) ? $this->userId : $userId;
        return '/users/' . $userId . '/' . $resource;

    }
protected function buildUserResourceUri ( $ resource , $ userId = null ) { $ userId = is_null ( $ userId ) ? $ this -> userId : $ userId ; return '/users/' . $ userId . '/' . $ resource ; }
build the resource URI
@param string $resource
@param string|null $userId
@return string
build the resource URI