Classes/Fusion/PaginationArrayImplementation.php
protected function getNumberOfPages()
    {
        $numberOfPages = \ceil($this->totalCount / $this->itemsPerPage);

        if ($this->maximumNumberOfLinks > $numberOfPages) {
            return $numberOfPages;
        }
        return $numberOfPages;
    }
protected function getNumberOfPages()
    {
        $numberOfPages = \ceil($this->totalCount / $this->itemsPerPage);

        if ($this->maximumNumberOfLinks > $numberOfPages) {
            return $numberOfPages;
        }
        return $numberOfPages;
    }
protected function getNumberOfPages ( ) { $ numberOfPages = \ ceil ( $ this -> totalCount / $ this -> itemsPerPage ) ; if ( $ this -> maximumNumberOfLinks > $ numberOfPages ) { return $ numberOfPages ; } return $ numberOfPages ; }
calculates the number of pages

@return integer
calculates the number of pages