lib/Collection/Result/Pagerfanta/PagerFactory.php
private function getMaxPerPage(Collection $collection): int
    {
        $limit = $collection->getLimit() ?? 0;

        return $limit > 0 && $limit < $this->maxLimit ? $limit : $this->maxLimit;
    }
private function getMaxPerPage(Collection $collection): int
    {
        $limit = $collection->getLimit() ?? 0;

        return $limit > 0 && $limit < $this->maxLimit ? $limit : $this->maxLimit;
    }
private function getMaxPerPage ( Collection $ collection ) : int { $ limit = $ collection -> getLimit ( ) ?? 0 ; return $ limit > 0 && $ limit < $ this -> maxLimit ? $ limit : $ this -> maxLimit ; }
Returns the maximum number of items per page for the provided collection,
while taking into account the injected maximum number of items.
Returns the maximum number of items per page for the provided collection while taking into account the injected maximum number of items .