chore: code cleanup
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user