chore: code cleanup with rector and php-cs-fixer

This commit is contained in:
Björn Fromme committed 2026-05-04 17:20:01 +02:00
1 parent d211425ff2
commit 1fa8f88a6d
38 files changed
+130 -98

No files matched your search

@@ -7,6 +7,8 @@ namespace App\Repository;
use App\Entity\BookingEditDraft;
use App\Entity\User;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Query\Parameter;
use Doctrine\Persistence\ManagerRegistry;
/**
@@ -47,8 +49,10 @@ class BookingEditDraftRepository extends ServiceEntityRepository
->delete()
->where('d.user = :user')
->andWhere('d.bookingId = :bookingId')
->setParameter('user', $user)
->setParameter('bookingId', $bookingId)
->setParameters(new ArrayCollection([
new Parameter('user', $user),
new Parameter('bookingId', $bookingId),
]))
->getQuery()
->execute();
}