chore: code cleanup

This commit is contained in:
Björn Fromme committed 2023-12-07 15:17:30 +01:00
1 parent 55f169751f
commit 77924b6a31
5 files changed
+7 -5

No files matched your search

@@ -28,10 +28,12 @@ class IndexController extends AbstractController
{
/** @var User $user */
$user = $this->getUser();
$hotels = $this
->hotelDataProvider
->findByCode($user->getHotelCode())
;
$hotelBusProIds = array_map(function (Hotel $hotel) {
return $hotel->getBusProId();
}, $hotels);