src/Pagination/Paginator.php
protected function calculateOffset()
    {
        if (empty($this->page) || empty($this->perPage)) {
            throw new \RuntimeException('Cannot calculate offset. Insufficient data');
        }

        $this->offset = ($this->page - 1) * $this->perPage;
    }
protected function calculateOffset()
    {
        if (empty($this->page) || empty($this->perPage)) {
            throw new \RuntimeException('Cannot calculate offset. Insufficient data');
        }

        $this->offset = ($this->page - 1) * $this->perPage;
    }
protected function calculateOffset ( ) { if ( empty ( $ this -> page ) || empty ( $ this -> perPage ) ) { throw new \ RuntimeException ( 'Cannot calculate offset. Insufficient data' ) ; } $ this -> offset = ( $ this -> page - 1 ) * $ this -> perPage ; }
Calculate the offset based on the current values.
Calculate the offset based on the current values .