mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 19:13:49 +00:00
update php-cs-fixer and rector + fix rules
This commit is contained in:
@@ -57,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) {
|
||||
@@ -183,7 +183,7 @@ class ReportController extends AbstractController
|
||||
{
|
||||
$em = $this->managerRegistry->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);
|
||||
|
||||
@@ -240,7 +240,7 @@ class ReportController extends AbstractController
|
||||
{
|
||||
$em = $this->managerRegistry->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);
|
||||
@@ -288,7 +288,7 @@ class ReportController extends AbstractController
|
||||
{
|
||||
$em = $this->managerRegistry->getManager();
|
||||
|
||||
$person = $em->getRepository(\Chill\PersonBundle\Entity\Person::class)
|
||||
$person = $em->getRepository(Person::class)
|
||||
->find($person_id);
|
||||
|
||||
if (null === $person) {
|
||||
@@ -310,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()]);
|
||||
@@ -332,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(),
|
||||
@@ -359,7 +359,7 @@ class ReportController extends AbstractController
|
||||
$em = $this->managerRegistry->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()]);
|
||||
@@ -459,7 +459,7 @@ class ReportController extends AbstractController
|
||||
{
|
||||
$em = $this->managerRegistry->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);
|
||||
|
||||
|
Reference in New Issue
Block a user