private static function getHomeDir()
    {
        // Linux/Unix-like systems.
        if ($homeDir = getenv('HOME')) {
            return $homeDir;
        }

        $homeDrive = getenv('HOMEDRIVE');
        $homePath = getenv('HOMEPATH');

        return ($homeDrive && $homePath) ? $homeDrive . $homePath : null;
    }
private static function getHomeDir()
    {
        
        if ($homeDir = getenv('HOME')) {
            return $homeDir;
        }

        $homeDrive = getenv('HOMEDRIVE');
        $homePath = getenv('HOMEPATH');

        return ($homeDrive && $homePath) ? $homeDrive . $homePath : null;
    }
private static function getHomeDir ( ) { // Linux/Unix-like systems. if ( $ homeDir = getenv ( 'HOME' ) ) { return $ homeDir ; } $ homeDrive = getenv ( 'HOMEDRIVE' ) ; $ homePath = getenv ( 'HOMEPATH' ) ; return ( $ homeDrive && $ homePath ) ? $ homeDrive . $ homePath : null ; }
Gets the environment's HOME directory if available.

@return string|null
Gets the environment s HOME directory if available .