Skip to content

Commit

Permalink
correct checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
BenoitLeveque committed Aug 24, 2024
1 parent 5383f63 commit 7236b29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/Campaign/ResponseFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,7 @@ public function createResponse(array $data, Campaign $campaign): Response
foreach ($enumValues as $field => $enum) {
$enumClass = $this->enums->getEnums($enum['class']);
$enumId = $enumClass->getIdByLabel($data[$enum['key']] ?? null);
if ($field === 'PhpVersion' && 0 === $enumId) {
dump($data[$enum['key']] ?? null, '---');
}

if ($enumClass instanceof JobTitleEnums && 0 === $enumId) {
$enumId = $enumClass->oldChoices[$data[$enum['key']]] ?? 0;
}
Expand Down
3 changes: 2 additions & 1 deletion src/Filter/JobTitleFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ private function supportOldValues(array $values): array
JobTitleEnums::DEV_JUNIOR,
JobTitleEnums::DEV_CONFIRME,
JobTitleEnums::DEV_SENIOR,
JobTitleEnums::DEV_EXPERT
JobTitleEnums::DEV_EXPERT,
];

$oldTitle = [
Expand All @@ -65,6 +65,7 @@ private function supportOldValues(array $values): array
if ([] !== array_intersect($values, $mapping)) {
$values = array_merge($values, $oldTitle);
}

return $values;
}

Expand Down

0 comments on commit 7236b29

Please sign in to comment.