GL-2039: Added prompt for nodejs and php project selection. #2118
Annotations
3 warnings
Run Infection for added files only:
src/Command/CodeStudio/CodeStudioWizardCommand.php#L213
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$gitlabCicdExistingVariablesKeyed[$key] = $variable;
}
foreach ($gitlabCicdVariables as $variable) {
- $this->checklist->addItem("Setting GitLab CI/CD variables for <comment>{$variable['key']}</comment>");
+
if (!array_key_exists($variable['key'], $gitlabCicdExistingVariablesKeyed)) {
$this->gitLabClient->projects()->addVariable($project['id'], $variable['key'], $variable['value'], $variable['protected'], NULL, ['masked' => $variable['masked'], 'variable_type' => $variable['variable_type']]);
} else {
|
Run Infection for added files only:
src/Command/CodeStudio/CodeStudioWizardCommand.php#L216
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
foreach ($gitlabCicdVariables as $variable) {
$this->checklist->addItem("Setting GitLab CI/CD variables for <comment>{$variable['key']}</comment>");
if (!array_key_exists($variable['key'], $gitlabCicdExistingVariablesKeyed)) {
- $this->gitLabClient->projects()->addVariable($project['id'], $variable['key'], $variable['value'], $variable['protected'], NULL, ['masked' => $variable['masked'], 'variable_type' => $variable['variable_type']]);
+ $this->gitLabClient->projects()->addVariable($project['id'], $variable['key'], $variable['value'], $variable['protected'], NULL, ['variable_type' => $variable['variable_type']]);
} else {
$this->gitLabClient->projects()->updateVariable($project['id'], $variable['key'], $variable['value'], $variable['protected'], NULL, ['masked' => $variable['masked'], 'variable_type' => $variable['variable_type']]);
}
|
Run Infection for added files only:
src/Command/CodeStudio/CodeStudioWizardCommand.php#L222
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
} else {
$this->gitLabClient->projects()->updateVariable($project['id'], $variable['key'], $variable['value'], $variable['protected'], NULL, ['masked' => $variable['masked'], 'variable_type' => $variable['variable_type']]);
}
- $this->checklist->completePreviousItem();
+
}
}
private function setGitLabCiCdVariablesForNodeProject(array $project, string $cloudApplicationUuid, string $cloudKey, string $cloudSecret, string $projectAccessTokenName, string $projectAccessToken, string $nodeVersion) : void
|
Loading