php cs fixes after updating php cs fixer

This commit is contained in:
2024-01-10 10:31:25 +01:00
parent 60ede58af0
commit 3c8e59e088
682 changed files with 2097 additions and 882 deletions

View File

@@ -37,7 +37,8 @@ class ReportController extends AbstractController
private readonly AuthorizationHelper $authorizationHelper,
private readonly PaginatorFactory $paginator,
private readonly TranslatorInterface $translator
) {}
) {
}
/**
* Create a new report for a given person and of a given type.
@@ -56,7 +57,7 @@ class ReportController extends AbstractController
$cFGroup = $em->getRepository(\Chill\CustomFieldsBundle\Entity\CustomFieldsGroup::class)
->find($cf_group_id);
$person = $em->getRepository(\Chill\PersonBundle\Entity\Person::class)
$person = $em->getRepository(Person::class)
->find($person_id);
if (null === $person || null === $cFGroup) {
@@ -182,7 +183,7 @@ class ReportController extends AbstractController
{
$em = $this->getDoctrine()->getManager();
$person = $em->getRepository(\Chill\PersonBundle\Entity\Person::class)->find($person_id);
$person = $em->getRepository(Person::class)->find($person_id);
$this->denyAccessUnlessGranted('CHILL_PERSON_SEE', $person);
@@ -239,7 +240,7 @@ class ReportController extends AbstractController
{
$em = $this->getDoctrine()->getManager();
$person = $em->getRepository(\Chill\PersonBundle\Entity\Person::class)->find($person_id);
$person = $em->getRepository(Person::class)->find($person_id);
$cFGroup = $em
->getRepository(\Chill\CustomFieldsBundle\Entity\CustomFieldsGroup::class)
->find($cf_group_id);
@@ -287,7 +288,7 @@ class ReportController extends AbstractController
{
$em = $this->getDoctrine()->getManager();
$person = $em->getRepository(\Chill\PersonBundle\Entity\Person::class)
$person = $em->getRepository(Person::class)
->find($person_id);
if (null === $person) {
@@ -309,7 +310,7 @@ class ReportController extends AbstractController
}
$cFGroups = $em->getRepository(\Chill\CustomFieldsBundle\Entity\CustomFieldsGroup::class)
->findByEntity(\Chill\ReportBundle\Entity\Report::class);
->findByEntity(Report::class);
if (1 === \count($cFGroups)) {
return $this->redirectToRoute('report_new', ['person_id' => $person_id, 'cf_group_id' => $cFGroups[0]->getId()]);
@@ -331,7 +332,7 @@ class ReportController extends AbstractController
])
->getForm();
$person = $em->getRepository(\Chill\PersonBundle\Entity\Person::class)->find($person_id);
$person = $em->getRepository(Person::class)->find($person_id);
return $this->render('@ChillReport/Report/select_report_type.html.twig', [
'form' => $form->createView(),
@@ -358,7 +359,7 @@ class ReportController extends AbstractController
$em = $this->getDoctrine()->getManager();
$cFGroups = $em->getRepository(\Chill\CustomFieldsBundle\Entity\CustomFieldsGroup::class)
->findByEntity(\Chill\ReportBundle\Entity\Report::class);
->findByEntity(Report::class);
if (1 === \count($cFGroups)) {
return $this->redirectToRoute('report_export_list', ['cf_group_id' => $cFGroups[0]->getId()]);
@@ -458,7 +459,7 @@ class ReportController extends AbstractController
{
$em = $this->getDoctrine()->getManager();
$person = $em->getRepository(\Chill\PersonBundle\Entity\Person::class)->find($person_id);
$person = $em->getRepository(Person::class)->find($person_id);
$entity = $em->getRepository('ChillReportBundle:Report')->find($report_id);