From c78cd0c2fecfb55f0e00fa46b35b68fccf222f78 Mon Sep 17 00:00:00 2001 From: Fred Bradley Date: Thu, 16 Dec 2021 11:10:31 +0000 Subject: [PATCH] Apply fixes from StyleCI [ci skip] [skip ci] --- src/Controllers/HumanResourcesEmployeeController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controllers/HumanResourcesEmployeeController.php b/src/Controllers/HumanResourcesEmployeeController.php index d26b1a4..7eebca9 100644 --- a/src/Controllers/HumanResourcesEmployeeController.php +++ b/src/Controllers/HumanResourcesEmployeeController.php @@ -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; } }