protected function determineRedirectType()
    {
        $this->redirectType = intval($this->getRoutedParameter('type', $this->redirectType));

        if (!in_array($this->redirectType, [301, 302]))
        {
            $this->setNotReady("Invalid redirect type specified.", null, 404);
        }
    }
protected function determineRedirectType()
    {
        $this->redirectType = intval($this->getRoutedParameter('type', $this->redirectType));

        if (!in_array($this->redirectType, [301, 302]))
        {
            $this->setNotReady("Invalid redirect type specified.", null, 404);
        }
    }
protected function determineRedirectType ( ) { $ this -> redirectType = intval ( $ this -> getRoutedParameter ( 'type' , $ this -> redirectType ) ) ; if ( ! in_array ( $ this -> redirectType , [ 301 , 302 ] ) ) { $ this -> setNotReady ( "Invalid redirect type specified." , null , 404 ) ; } }
Determine redirect type
Determine redirect type