src/Guzzle/Service/Resource/ResourceIterator.php
protected function calculatePageSize()
    {
        if ($this->limit && $this->iteratedCount + $this->pageSize > $this->limit) {
            return 1 + ($this->limit - $this->iteratedCount);
        }

        return (int) $this->pageSize;
    }
protected function calculatePageSize()
    {
        if ($this->limit && $this->iteratedCount + $this->pageSize > $this->limit) {
            return 1 + ($this->limit - $this->iteratedCount);
        }

        return (int) $this->pageSize;
    }
protected function calculatePageSize ( ) { if ( $ this -> limit && $ this -> iteratedCount + $ this -> pageSize > $ this -> limit ) { return 1 + ( $ this -> limit - $ this -> iteratedCount ) ; } return ( int ) $ this -> pageSize ; }
Returns the value that should be specified for the page size for a request that will maintain any hard limits,
but still honor the specified pageSize if the number of items retrieved + pageSize < hard limit

@return int Returns the page size of the next request.
Returns the value that should be specified for the page size for a request that will maintain any hard limits but still honor the specified pageSize if the number of items retrieved + pageSize < hard limit