private function parseConfig (string $configText) : array
    {
        $config = $this->deindent($configText);

        if (empty($config))
        {
            return [];
        }

        try
        {
            $parsed = Yaml::parse($config);

            return is_array($parsed)
                ? $parsed
                : [];
        }
        catch (ParseException $e)
        {
            return [];
        }
    }
private function parseConfig (string $configText) : array
    {
        $config = $this->deindent($configText);

        if (empty($config))
        {
            return [];
        }

        try
        {
            $parsed = Yaml::parse($config);

            return is_array($parsed)
                ? $parsed
                : [];
        }
        catch (ParseException $e)
        {
            return [];
        }
    }
private function parseConfig ( string $ configText ) : array { $ config = $ this -> deindent ( $ configText ) ; if ( empty ( $ config ) ) { return [ ] ; } try { $ parsed = Yaml :: parse ( $ config ) ; return is_array ( $ parsed ) ? $ parsed : [ ] ; } catch ( ParseException $ e ) { return [ ] ; } }
Parses the config from the given config text

@param string $configText

@return array
Parses the config from the given config text