DataSift\Storyplayer\Cli\Feature_LocalhostSupport::detectOs PHP Method

detectOs() protected method

protected detectOs ( )
    protected function detectOs()
    {
        if (stristr(PHP_OS, 'DAR')) {
            return "Localhost_OSX";
        } else {
            if (stristr(PHP_OS, 'WIN')) {
                return "Localhost_Windows";
            } else {
                if (stristr(PHP_OS, 'LINUX')) {
                    // @TODO: detect the different types of Linux here
                    return "Localhost_Unix";
                } else {
                    return "Localhost_Unix";
                }
            }
        }
    }