public function validate($configuration, $required)
    {
        // search for any null or empty field to throw an exception
        $missing = '';
        foreach ($configuration as $key => $value) {
            if (in_array($key, $required) &&
                (empty($value) || $value == null || $value == '')
            ) {
                $missing .= ' '.$key;
            }
        }

        if ($missing) {
            throw new MissingConfigurationException('Missed Configuration:'.$missing);
        }
    }
public function validate($configuration, $required)
    {
        // search for any null or empty field to throw an exception
        $missing = '';
        foreach ($configuration as $key => $value) {
            if (in_array($key, $required) &&
                (empty($value) || $value == null || $value == '')
            ) {
                $missing .= ' '.$key;
            }
        }

        if ($missing) {
            throw new MissingConfigurationException('Missed Configuration:'.$missing);
        }
    }
public function validate ( $ configuration , $ required ) { // search for any null or empty field to throw an exception $ missing = '' ; foreach ( $ configuration as $ key => $ value ) { if ( in_array ( $ key , $ required ) && ( empty ( $ value ) || $ value == null || $ value == '' ) ) { $ missing .= ' ' . $ key ; } } if ( $ missing ) { throw new MissingConfigurationException ( 'Missed Configuration:' . $ missing ) ; } }
Checks for any required configuration is missed.

@param $configuration
@param $required

@throws \Vinelab\Cdn\Exceptions\MissingConfigurationException
Checks for any required configuration is missed .