src/Controller/TypeController.php
protected function getPageFromQueryParams(array $query_params)
    {
        $page = 1;

        if (isset($query_params['page'])) {
            $page = (integer) $query_params['page'];
        }

        return $page < 1 ? 1 : $page;
    }
protected function getPageFromQueryParams(array $query_params)
    {
        $page = 1;

        if (isset($query_params['page'])) {
            $page = (integer) $query_params['page'];
        }

        return $page < 1 ? 1 : $page;
    }
protected function getPageFromQueryParams ( array $ query_params ) { $ page = 1 ; if ( isset ( $ query_params [ 'page' ] ) ) { $ page = ( integer ) $ query_params [ 'page' ] ; } return $ page < 1 ? 1 : $ page ; }
Return page from request query params.

@param  array $query_params
@return int
Return page from request query params .