src/Pagination/PaginationUtils.php
public static function calculateCurrentPage(int $first, int $after, int $defaultPage = 1): int
    {
        return $first && $after
            ? (int) floor(($first + $after) / $first)
            : $defaultPage;
    }
public static function calculateCurrentPage(int $first, int $after, int $defaultPage = 1): int
    {
        return $first && $after
            ? (int) floor(($first + $after) / $first)
            : $defaultPage;
    }
public static function calculateCurrentPage ( int $ first , int $ after , int $ defaultPage = 1 ) : int { return $ first && $ after ? ( int ) floor ( ( $ first + $ after ) / $ first ) : $ defaultPage ; }
Calculate the current page to inform the user about the pagination state.

@param  int  $first
@param  int  $after
@param  int  $defaultPage
@return int
Calculate the current page to inform the user about the pagination state .