public static function getVars()
    {
        if (!is_array(static::$vars)) {
            $path = static::path("data/env.json");

            try {
                $vars = Json::decodeFromFile($path);
            } catch(\Exception $e) {
                $vars = [];
            }

            static::$vars = Helper::toArray($vars);
        }

        return static::$vars;
    }
public static function getVars()
    {
        if (!is_array(static::$vars)) {
            $path = static::path("data/env.json");

            try {
                $vars = Json::decodeFromFile($path);
            } catch(\Exception $e) {
                $vars = [];
            }

            static::$vars = Helper::toArray($vars);
        }

        return static::$vars;
    }
public static function getVars ( ) { if ( ! is_array ( static :: $ vars ) ) { $ path = static :: path ( "data/env.json" ) ; try { $ vars = Json :: decodeFromFile ( $ path ) ; } catch ( \ Exception $ e ) { $ vars = [ ] ; } static :: $ vars = Helper :: toArray ( $ vars ) ; } return static :: $ vars ; }
Get all defined environment variables.

@return array
Get all defined environment variables .