src/Paginator/Paginator.php
public function getPagesInRange($lowerBound, $upperBound)
    {
        $lowerBound = $this->normalizePageNumber($lowerBound);
        $upperBound = $this->normalizePageNumber($upperBound);

        $pages = array();

        for ($pageNumber = $lowerBound; $pageNumber <= $upperBound; $pageNumber++) {
            $pages[$pageNumber] = $pageNumber;
        }

        return $pages;
    }
public function getPagesInRange($lowerBound, $upperBound)
    {
        $lowerBound = $this->normalizePageNumber($lowerBound);
        $upperBound = $this->normalizePageNumber($upperBound);

        $pages = array();

        for ($pageNumber = $lowerBound; $pageNumber <= $upperBound; $pageNumber++) {
            $pages[$pageNumber] = $pageNumber;
        }

        return $pages;
    }
public function getPagesInRange ( $ lowerBound , $ upperBound ) { $ lowerBound = $ this -> normalizePageNumber ( $ lowerBound ) ; $ upperBound = $ this -> normalizePageNumber ( $ upperBound ) ; $ pages = array ( ) ; for ( $ pageNumber = $ lowerBound ; $ pageNumber <= $ upperBound ; $ pageNumber ++ ) { $ pages [ $ pageNumber ] = $ pageNumber ; } return $ pages ; }
Returns a subset of pages within a given range.

@param  int $lowerBound Lower bound of the range
@param  int $upperBound Upper bound of the range
@return array
Returns a subset of pages within a given range .