public static function createPagination(array $tokens, array $options) {
        if(!isset($options['pagination_as_query']) || !$options['pagination_as_query']) return '';

        $perPageParam = isset($options['per_page_param']) ? $options['per_page_param'] : PaginationQuery::DEFAULT_PER_PAGE_PARAM;
        $pageParam    = isset($options['page_param']) ? $options['page_param'] : PaginationQuery::DEFAULT_PAGE_PARAM;

        $paginationParameters = PaginationQuery::create($tokens, $perPageParam, $pageParam);

        return $paginationParameters ? http_build_query($paginationParameters) : '';
    }
public static function createPagination(array $tokens, array $options) {
        if(!isset($options['pagination_as_query']) || !$options['pagination_as_query']) return '';

        $perPageParam = isset($options['per_page_param']) ? $options['per_page_param'] : PaginationQuery::DEFAULT_PER_PAGE_PARAM;
        $pageParam    = isset($options['page_param']) ? $options['page_param'] : PaginationQuery::DEFAULT_PAGE_PARAM;

        $paginationParameters = PaginationQuery::create($tokens, $perPageParam, $pageParam);

        return $paginationParameters ? http_build_query($paginationParameters) : '';
    }
public static function createPagination ( array $ tokens , array $ options ) { if ( ! isset ( $ options [ 'pagination_as_query' ] ) || ! $ options [ 'pagination_as_query' ] ) return '' ; $ perPageParam = isset ( $ options [ 'per_page_param' ] ) ? $ options [ 'per_page_param' ] : PaginationQuery :: DEFAULT_PER_PAGE_PARAM ; $ pageParam = isset ( $ options [ 'page_param' ] ) ? $ options [ 'page_param' ] : PaginationQuery :: DEFAULT_PAGE_PARAM ; $ paginationParameters = PaginationQuery :: create ( $ tokens , $ perPageParam , $ pageParam ) ; return $ paginationParameters ? http_build_query ( $ paginationParameters ) : '' ; }
Create a string of pagination parameters

@param array $tokens
@param array $options
@return string

@SuppressWarnings("PHPMD.StaticAccess")
Create a string of pagination parameters