public static function validateConditionsConfig(array $json) : void
    {
        foreach ($json as $condition) {
            if (!self::keysExist(['exec'], $condition) || empty($condition['exec'])) {
                throw new \RuntimeException('Config error: \'exec\' is required for conditions');
            }
            if (!empty($condition['args']) && !is_array($condition['args'])) {
                throw new \RuntimeException('Config error: invalid \'args\' configuration');
            }
        }
    }
public static function validateConditionsConfig(array $json) : void
    {
        foreach ($json as $condition) {
            if (!self::keysExist(['exec'], $condition) || empty($condition['exec'])) {
                throw new \RuntimeException('Config error: \'exec\' is required for conditions');
            }
            if (!empty($condition['args']) && !is_array($condition['args'])) {
                throw new \RuntimeException('Config error: invalid \'args\' configuration');
            }
        }
    }
public static function validateConditionsConfig ( array $ json ) : void { foreach ( $ json as $ condition ) { if ( ! self :: keysExist ( [ 'exec' ] , $ condition ) || empty ( $ condition [ 'exec' ] ) ) { throw new \ RuntimeException ( 'Config error: \'exec\' is required for conditions' ) ; } if ( ! empty ( $ condition [ 'args' ] ) && ! is_array ( $ condition [ 'args' ] ) ) { throw new \ RuntimeException ( 'Config error: invalid \'args\' configuration' ) ; } } }
Validate a list of condition configurations

@param  array $json
@throws \RuntimeException
Validate a list of condition configurations