protected function isSchemeRequired(RouteContract $route): bool
    {
        $requiredSchemes = false;
        $requestScheme   = $this->request->getUri()->getScheme();

        if ($route->isHttpOnly()) {
            $requiredSchemes = $requestScheme !== 'http';
        } elseif ($route->isHttpsOnly()) {
            $requiredSchemes = $requestScheme !== 'https';
        }

        return $requiredSchemes;
    }
protected function isSchemeRequired(RouteContract $route): bool
    {
        $requiredSchemes = false;
        $requestScheme   = $this->request->getUri()->getScheme();

        if ($route->isHttpOnly()) {
            $requiredSchemes = $requestScheme !== 'http';
        } elseif ($route->isHttpsOnly()) {
            $requiredSchemes = $requestScheme !== 'https';
        }

        return $requiredSchemes;
    }
protected function isSchemeRequired ( RouteContract $ route ) : bool { $ requiredSchemes = false ; $ requestScheme = $ this -> request -> getUri ( ) -> getScheme ( ) ; if ( $ route -> isHttpOnly ( ) ) { $ requiredSchemes = $ requestScheme !== 'http' ; } elseif ( $ route -> isHttpsOnly ( ) ) { $ requiredSchemes = $ requestScheme !== 'https' ; } return $ requiredSchemes ; }
Check if a scheme is required.

@param \Viserio\Component\Contract\Routing\Route $route

@return bool
Check if a scheme is required .