src/SAREhub/Commons/Misc/EnvironmentHelper.php
public static function getVar(string $name, $defaultValue = null)
    {
        $value = getenv($name);
        return $value !== false ? $value : $defaultValue;
    }
public static function getVar(string $name, $defaultValue = null)
    {
        $value = getenv($name);
        return $value !== false ? $value : $defaultValue;
    }
public static function getVar ( string $ name , $ defaultValue = null ) { $ value = getenv ( $ name ) ; return $ value !== false ? $ value : $ defaultValue ; }
Returns value of environment variable or default value
@param string $name
@param null $defaultValue
@return mixed value from env or defaultValue
Returns value of environment variable or default value