public static function validateHookConfig(array $json) : void
    {
        if (!self::keysExist(['enabled', 'actions'], $json)) {
            throw new \RuntimeException('Config error: invalid hook configuration');
        }
        if (!is_array($json['actions'])) {
            throw new \RuntimeException('Config error: \'actions\' must be an array');
        }
        self::validateActionsConfig($json['actions']);
    }
public static function validateHookConfig(array $json) : void
    {
        if (!self::keysExist(['enabled', 'actions'], $json)) {
            throw new \RuntimeException('Config error: invalid hook configuration');
        }
        if (!is_array($json['actions'])) {
            throw new \RuntimeException('Config error: \'actions\' must be an array');
        }
        self::validateActionsConfig($json['actions']);
    }
public static function validateHookConfig ( array $ json ) : void { if ( ! self :: keysExist ( [ 'enabled' , 'actions' ] , $ json ) ) { throw new \ RuntimeException ( 'Config error: invalid hook configuration' ) ; } if ( ! is_array ( $ json [ 'actions' ] ) ) { throw new \ RuntimeException ( 'Config error: \'actions\' must be an array' ) ; } self :: validateActionsConfig ( $ json [ 'actions' ] ) ; }
Validate a hook configuration

@param  array $json
@return void
@throws \RuntimeException
Validate a hook configuration