protected function checkSources($config, $defaults = '')
    {
        Validator::mustBeStringOrArray($config);
        Validator::mustNotBeEmpty($config);
        if (is_string($config)) {
            Validator::mustBeLoadable($config);
        }

        if (empty($defaults)) {
            return;
        }

        Validator::mustBeStringOrArray($defaults);
        if (is_string($defaults)) {
            Validator::mustBeLoadable($defaults);
        }
    }
protected function checkSources($config, $defaults = '')
    {
        Validator::mustBeStringOrArray($config);
        Validator::mustNotBeEmpty($config);
        if (is_string($config)) {
            Validator::mustBeLoadable($config);
        }

        if (empty($defaults)) {
            return;
        }

        Validator::mustBeStringOrArray($defaults);
        if (is_string($defaults)) {
            Validator::mustBeLoadable($defaults);
        }
    }
protected function checkSources ( $ config , $ defaults = '' ) { Validator :: mustBeStringOrArray ( $ config ) ; Validator :: mustNotBeEmpty ( $ config ) ; if ( is_string ( $ config ) ) { Validator :: mustBeLoadable ( $ config ) ; } if ( empty ( $ defaults ) ) { return ; } Validator :: mustBeStringOrArray ( $ defaults ) ; if ( is_string ( $ defaults ) ) { Validator :: mustBeLoadable ( $ defaults ) ; } }
Checks the sources to ensure loadable.

@since 3.0.0

@param mixed $config The configuration to check.
@param mixed $defaults (Optional) The defaults to check.

@return void
@throws InvalidSourceException
Checks the sources to ensure loadable .