code: 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;
      }
docs: Gets the environment's HOME directory if available.
  
  @return string|null