src/Potter/Utils/Paginator.php
private function setCurrentPage($_currentPage = null)
    {
        if (is_null($_currentPage)):
            global $paged;
            $this->currentPage = $paged;
        else:
            $this->currentPage = $_currentPage;
        endif;

        if (empty($this->currentPage)):
            $this->currentPage = 1;
        endif;
    }
private function setCurrentPage($_currentPage = null)
    {
        if (is_null($_currentPage)):
            global $paged;
            $this->currentPage = $paged;
        else:
            $this->currentPage = $_currentPage;
        endif;

        if (empty($this->currentPage)):
            $this->currentPage = 1;
        endif;
    }
@param null $_currentPage

@return void