protected function fetchParameters($locationOrArray)
    {
        // Yup, it's an array. Return it.
        if (is_array($locationOrArray)) {
            return $locationOrArray;
        }

        // It's a file.
        $maybeConfig = ConfigFactory::loadConfigFile($locationOrArray);

        Validator::mustBeAnArray($maybeConfig);
        Validator::mustNotBeEmpty($maybeConfig);

        return $maybeConfig;
    }
protected function fetchParameters($locationOrArray)
    {
        // Yup, it's an array. Return it.
        if (is_array($locationOrArray)) {
            return $locationOrArray;
        }

        // It's a file.
        $maybeConfig = ConfigFactory::loadConfigFile($locationOrArray);

        Validator::mustBeAnArray($maybeConfig);
        Validator::mustNotBeEmpty($maybeConfig);

        return $maybeConfig;
    }
protected function fetchParameters ( $ locationOrArray ) { // Yup, it's an array. Return it. if ( is_array ( $ locationOrArray ) ) { return $ locationOrArray ; } // It's a file. $ maybeConfig = ConfigFactory :: loadConfigFile ( $ locationOrArray ) ; Validator :: mustBeAnArray ( $ maybeConfig ) ; Validator :: mustNotBeEmpty ( $ maybeConfig ) ; return $ maybeConfig ; }
Fetch the runtime parameters or defaults.

@since 3.0.0

@param string|array $locationOrArray Parameters location or array.

@return array
@throw InvalidConfigException
Fetch the runtime parameters or defaults .