protected function getAssetScheme($asset)
    {
        if (starts_with($asset, ['//', 'http://', 'https://'])) {
            return $asset;
        }

        if (substr($asset, 0, 1) == '/') {
            $asset = Url::asset($asset);
        }

        return $asset;
    }
protected function getAssetScheme($asset)
    {
        if (starts_with($asset, ['//', 'http://', 'https://'])) {
            return $asset;
        }

        if (substr($asset, 0, 1) == '/') {
            $asset = Url::asset($asset);
        }

        return $asset;
    }
protected function getAssetScheme ( $ asset ) { if ( starts_with ( $ asset , [ '//' , 'http://' , 'https://' ] ) ) { return $ asset ; } if ( substr ( $ asset , 0 , 1 ) == '/' ) { $ asset = Url :: asset ( $ asset ) ; } return $ asset ; }
Internal helper, get asset scheme
@param string $asset Specifies a path (URL) to the asset.
@return string
Internal helper get asset scheme