src/Crawler/EventListCrawler.php
public function getPages(GeoLocation $location, $radius = 100): int
    {
        $node = $this->crawlUrl($location, $radius);

        if (null === $node) {
            return 0;
        }

        $lastNode = $node->filter('.pagination .pagination-page')->last();

        if (0 === $lastNode->count()) {
            return 0;
        }

        return (int) $lastNode->text();
    }
public function getPages(GeoLocation $location, $radius = 100): int
    {
        $node = $this->crawlUrl($location, $radius);

        if (null === $node) {
            return 0;
        }

        $lastNode = $node->filter('.pagination .pagination-page')->last();

        if (0 === $lastNode->count()) {
            return 0;
        }

        return (int) $lastNode->text();
    }
{@inheritdoc}