protected function fixPage()
    {
        if (null !== $this->total) {
            $this->page = \min($this->page, $this->getLastPage());
        }
    }
protected function fixPage()
    {
        if (null !== $this->total) {
            $this->page = \min($this->page, $this->getLastPage());
        }
    }
protected function fixPage ( ) { if ( null !== $ this -> total ) { $ this -> page = \ min ( $ this -> page , $ this -> getLastPage ( ) ) ; } }
Fix current page so it is not past the last one.
Fix current page so it is not past the last one .