public function getServerName()
    {
        //====================================================================//
        // Check if Server Name is Overiden by Application Module
        if (isset(Splash::configuration()->ServerHost)) {
            return Splash::configuration()->ServerHost;
        }
        //====================================================================//
        // Check if Available with Secured Reading
        if (!empty(Splash::input('SERVER_NAME'))) {
            return Splash::input('SERVER_NAME');
        }
        //====================================================================//
        // Fallback to Unsecured Mode (Required for Phpunit)
        if (isset($_SERVER['SERVER_NAME'])) {
            return $_SERVER['SERVER_NAME'];
        }

        return '';
    }
public function getServerName()
    {
        //====================================================================//
        // Check if Server Name is Overiden by Application Module
        if (isset(Splash::configuration()->ServerHost)) {
            return Splash::configuration()->ServerHost;
        }
        //====================================================================//
        // Check if Available with Secured Reading
        if (!empty(Splash::input('SERVER_NAME'))) {
            return Splash::input('SERVER_NAME');
        }
        //====================================================================//
        // Fallback to Unsecured Mode (Required for Phpunit)
        if (isset($_SERVER['SERVER_NAME'])) {
            return $_SERVER['SERVER_NAME'];
        }

        return '';
    }
public function getServerName ( ) { //====================================================================// // Check if Server Name is Overiden by Application Module if ( isset ( Splash :: configuration ( ) -> ServerHost ) ) { return Splash :: configuration ( ) -> ServerHost ; } //====================================================================// // Check if Available with Secured Reading if ( ! empty ( Splash :: input ( 'SERVER_NAME' ) ) ) { return Splash :: input ( 'SERVER_NAME' ) ; } //====================================================================// // Fallback to Unsecured Mode (Required for Phpunit) if ( isset ( $ _SERVER [ 'SERVER_NAME' ] ) ) { return $ _SERVER [ 'SERVER_NAME' ] ; } return '' ; }
Safe Get Client Server Url

@return string

@SuppressWarnings(PHPMD.Superglobals)
Safe Get Client Server Url