Skip to content

Commit

Permalink
Fix: JIRA config array keys using
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeliot-Tm committed Jun 13, 2024
1 parent e019347 commit 9221d42
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,20 @@ public function prepare(array $config): array
$this->addLogOptions($serviceConfig, $config);
$this->addProxyOptions($serviceConfig, $config);

if ($config['serviceDeskId']) {
if (isset($config['serviceDeskId'])) {
$serviceConfig['serviceDeskId'] = $config['serviceDeskId'];
}

return $serviceConfig;
}


/**
* @param array<string, mixed> $serviceConfig
* @param array<string, mixed> $config
*/
private function addAuthOptions(array &$serviceConfig, array $config): void
{
if ($serviceConfig['tokenBasedAuth']) {
if ($serviceConfig['useTokenBasedAuth']) {
$serviceConfig['jiraUser'] = $config['jiraUser'];
$serviceConfig['jiraPassword'] = $config['jiraPassword'];
} else {
Expand Down

0 comments on commit 9221d42

Please sign in to comment.