Skip to content

Commit

Permalink
Merge pull request #35 from cranleighschool/analysis-1b5ZD1
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
fredbradley authored Dec 16, 2021
2 parents 60f4101 + c78cd0c commit 8b2e752
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Controllers/HumanResourcesEmployeeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,17 +158,17 @@ public function update(int $id, array $attributes): JsonResponse
* attribute.
*
* @param array $attributes
*
* @return array
*/
private function fixEmptyNationalitiesData(array $attributes): array
{
if (isset($attributes['nationalities'])) {
$nationalities = $attributes['nationalities'];
if (count($nationalities)==1 && empty($nationalities[0])) {
if (count($nationalities) == 1 && empty($nationalities[0])) {
unset($attributes['nationalities']);
}
}

return $attributes;
}
}

0 comments on commit 8b2e752

Please sign in to comment.