src/Jackiedo/LogReader/LogReader.php
protected function getPageFromInput($currentPage = null, array $options = [])
    {
        if (is_numeric($currentPage)) {
            return intval($currentPage);
        }

        $pageName = (array_key_exists('pageName', $options)) ? $options['pageName'] : 'page';

        $page = $this->request->input($pageName);

        if (is_numeric($page)) {
            return intval($page);
        }

        return 1;
    }
protected function getPageFromInput($currentPage = null, array $options = [])
    {
        if (is_numeric($currentPage)) {
            return intval($currentPage);
        }

        $pageName = (array_key_exists('pageName', $options)) ? $options['pageName'] : 'page';

        $page = $this->request->input($pageName);

        if (is_numeric($page)) {
            return intval($page);
        }

        return 1;
    }
protected function getPageFromInput ( $ currentPage = null , array $ options = [ ] ) { if ( is_numeric ( $ currentPage ) ) { return intval ( $ currentPage ) ; } $ pageName = ( array_key_exists ( 'pageName' , $ options ) ) ? $ options [ 'pageName' ] : 'page' ; $ page = $ this -> request -> input ( $ pageName ) ; if ( is_numeric ( $ page ) ) { return intval ( $ page ) ; } return 1 ; }
Returns the current page from the current input. Used for pagination.

@param  int    $currentPage
@param  array  $options  [path => '', query => [], fragment => '', pageName => '']

@return int
Returns the current page from the current input . Used for pagination .