fix: [workflowModules:splunkHec] Fixed indentation

composer_fix
Sami Mokaddem 2023-03-10 08:44:30 +01:00
parent 7155b9afe2
commit 69e3948dea
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 8 additions and 8 deletions

View File

@ -43,12 +43,12 @@ class Module_splunk_hec_export extends Module_webhook
'type' => 'input',
'placeholder' => '00000000-0000-0000-000000000000'
],
[
[
'id' => 'source_type',
'label' => __('Source Type'),
'type' => 'select',
'type' => 'input',
'default' => '',
'default' => '',
'placeholder' => 'misp:event'
],
[
@ -132,12 +132,12 @@ class Module_splunk_hec_export extends Module_webhook
'Server' => ['self_signed' => empty($params['verify_tls']['value'])]
];
$hec_event = [
'event' => $splunk_event
];
if (!empty($source_type)) {
$hec_event['sourcetype'] = $source_type;
}
$hec_event = [
'event' => $splunk_event
];
if (!empty($source_type)) {
$hec_event['sourcetype'] = $source_type;
}
$response = $this->doRequest(
$url,