mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-03-14 09:57:43 +00:00
apply rector rules
This commit is contained in:
@@ -22,6 +22,8 @@ use Doctrine\Persistence\ManagerRegistry;
|
||||
*
|
||||
* This class was generated by the Doctrine ORM. Add your own custom
|
||||
* repository methods below.
|
||||
*
|
||||
* @extends \Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository<\Chill\BudgetBundle\Entity\Charge>
|
||||
*/
|
||||
class ChargeRepository extends ServiceEntityRepository
|
||||
{
|
||||
@@ -59,10 +61,7 @@ class ChargeRepository extends ServiceEntityRepository
|
||||
$qb->orderBy($sort);
|
||||
}
|
||||
|
||||
$qb->setParameters([
|
||||
'entity' => $entity,
|
||||
'date' => $date,
|
||||
]);
|
||||
$qb->setParameters(new \Doctrine\Common\Collections\ArrayCollection([new \Doctrine\ORM\Query\Parameter('entity', $entity), new \Doctrine\ORM\Query\Parameter('date', $date)]));
|
||||
|
||||
return $qb->getQuery()->getResult();
|
||||
}
|
||||
|
||||
@@ -22,6 +22,8 @@ use Doctrine\Persistence\ManagerRegistry;
|
||||
*
|
||||
* This class was generated by the Doctrine ORM. Add your own custom
|
||||
* repository methods below.
|
||||
*
|
||||
* @extends \Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository<\Chill\BudgetBundle\Entity\Resource>
|
||||
*/
|
||||
class ResourceRepository extends ServiceEntityRepository
|
||||
{
|
||||
@@ -59,10 +61,7 @@ class ResourceRepository extends ServiceEntityRepository
|
||||
$qb->orderBy($sort);
|
||||
}
|
||||
|
||||
$qb->setParameters([
|
||||
'entity' => $entity,
|
||||
'date' => $date,
|
||||
]);
|
||||
$qb->setParameters(new \Doctrine\Common\Collections\ArrayCollection([new \Doctrine\ORM\Query\Parameter('entity', $entity), new \Doctrine\ORM\Query\Parameter('date', $date)]));
|
||||
|
||||
return $qb->getQuery()->getResult();
|
||||
}
|
||||
|
||||
@@ -69,7 +69,7 @@ class BudgetElementVoter extends Voter implements ProvideRoleHierarchyInterface
|
||||
return $this->voter->supports($attribute, $subject);
|
||||
}
|
||||
|
||||
protected function voteOnAttribute(string $attribute, mixed $subject, TokenInterface $token): bool
|
||||
protected function voteOnAttribute(string $attribute, mixed $subject, TokenInterface $token, ?\Symfony\Component\Security\Core\Authorization\Voter\Vote $vote = null): bool
|
||||
{
|
||||
if (
|
||||
$subject instanceof Person
|
||||
|
||||
Reference in New Issue
Block a user