src/Sulu/Component/SmartContent/ContentType.php
private function getCurrentPage($pageParameter)
    {
        if (null === $this->requestStack->getCurrentRequest()) {
            return 1;
        }

        $page = $this->requestStack->getCurrentRequest()->get($pageParameter, 1);
        if ($page < 1 || $page > PHP_INT_MAX) {
            throw new PageOutOfBoundsException($page);
        }

        return $page;
    }
private function getCurrentPage($pageParameter)
    {
        if (null === $this->requestStack->getCurrentRequest()) {
            return 1;
        }

        $page = $this->requestStack->getCurrentRequest()->get($pageParameter, 1);
        if ($page < 1 || $page > PHP_INT_MAX) {
            throw new PageOutOfBoundsException($page);
        }

        return $page;
    }
private function getCurrentPage ( $ pageParameter ) { if ( null === $ this -> requestStack -> getCurrentRequest ( ) ) { return 1 ; } $ page = $ this -> requestStack -> getCurrentRequest ( ) -> get ( $ pageParameter , 1 ) ; if ( $ page < 1 || $ page > PHP_INT_MAX ) { throw new PageOutOfBoundsException ( $ page ) ; } return $ page ; }
Determine current page from current request.

@param string $pageParameter

@return int

@throws PageOutOfBoundsException
Determine current page from current request .