mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
Apply rector rules + fix CS
This commit is contained in:
@@ -42,9 +42,8 @@ class PersonAddressController extends AbstractController
|
||||
|
||||
/**
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/{_locale}/person/{person_id}/address/create", name="chill_person_address_create", methods={"POST"})
|
||||
* @param mixed $person_id
|
||||
*/
|
||||
public function createAction($person_id, Request $request)
|
||||
public function createAction(mixed $person_id, Request $request)
|
||||
{
|
||||
$person = $this->getDoctrine()->getManager()
|
||||
->getRepository(\Chill\PersonBundle\Entity\Person::class)
|
||||
@@ -101,10 +100,8 @@ class PersonAddressController extends AbstractController
|
||||
|
||||
/**
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/{_locale}/person/{person_id}/address/{address_id}/edit", name="chill_person_address_edit")
|
||||
* @param mixed $person_id
|
||||
* @param mixed $address_id
|
||||
*/
|
||||
public function editAction($person_id, $address_id)
|
||||
public function editAction(mixed $person_id, mixed $address_id)
|
||||
{
|
||||
$person = $this->getDoctrine()->getManager()
|
||||
->getRepository(\Chill\PersonBundle\Entity\Person::class)
|
||||
@@ -134,9 +131,8 @@ class PersonAddressController extends AbstractController
|
||||
|
||||
/**
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/{_locale}/person/{person_id}/address/list", name="chill_person_address_list")
|
||||
* @param mixed $person_id
|
||||
*/
|
||||
public function listAction($person_id)
|
||||
public function listAction(mixed $person_id)
|
||||
{
|
||||
$person = $this->getDoctrine()->getManager()
|
||||
->getRepository(\Chill\PersonBundle\Entity\Person::class)
|
||||
@@ -160,9 +156,8 @@ class PersonAddressController extends AbstractController
|
||||
|
||||
/**
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/{_locale}/person/{person_id}/address/new", name="chill_person_address_new")
|
||||
* @param mixed $person_id
|
||||
*/
|
||||
public function newAction($person_id)
|
||||
public function newAction(mixed $person_id)
|
||||
{
|
||||
$person = $this->getDoctrine()->getManager()
|
||||
->getRepository(\Chill\PersonBundle\Entity\Person::class)
|
||||
@@ -191,10 +186,8 @@ class PersonAddressController extends AbstractController
|
||||
|
||||
/**
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/{_locale}/person/{person_id}/address/{address_id}/update", name="chill_person_address_update")
|
||||
* @param mixed $person_id
|
||||
* @param mixed $address_id
|
||||
*/
|
||||
public function updateAction($person_id, $address_id, Request $request)
|
||||
public function updateAction(mixed $person_id, mixed $address_id, Request $request)
|
||||
{
|
||||
$person = $this->getDoctrine()->getManager()
|
||||
->getRepository(\Chill\PersonBundle\Entity\Person::class)
|
||||
|
@@ -40,10 +40,8 @@ class PersonDuplicateController extends \Symfony\Bundle\FrameworkBundle\Controll
|
||||
|
||||
/**
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/{_locale}/person/{person1_id}/duplicate/{person2_id}/confirm", name="chill_person_duplicate_confirm")
|
||||
* @param mixed $person1_id
|
||||
* @param mixed $person2_id
|
||||
*/
|
||||
public function confirmAction($person1_id, $person2_id, Request $request)
|
||||
public function confirmAction(mixed $person1_id, mixed $person2_id, Request $request)
|
||||
{
|
||||
if ($person1_id === $person2_id) {
|
||||
throw new InvalidArgumentException('Can not merge same person');
|
||||
@@ -106,9 +104,8 @@ class PersonDuplicateController extends \Symfony\Bundle\FrameworkBundle\Controll
|
||||
|
||||
/**
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/{_locale}/person/{person_id}/find-manually", name="chill_person_find_manually_duplicate")
|
||||
* @param mixed $person_id
|
||||
*/
|
||||
public function findManuallyDuplicateAction($person_id, Request $request)
|
||||
public function findManuallyDuplicateAction(mixed $person_id, Request $request)
|
||||
{
|
||||
$person = $this->_getPerson($person_id);
|
||||
|
||||
@@ -160,10 +157,8 @@ class PersonDuplicateController extends \Symfony\Bundle\FrameworkBundle\Controll
|
||||
|
||||
/**
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/{_locale}/person/{person1_id}/duplicate/{person2_id}/not-duplicate", name="chill_person_duplicate_not_duplicate")
|
||||
* @param mixed $person1_id
|
||||
* @param mixed $person2_id
|
||||
*/
|
||||
public function notDuplicateAction($person1_id, $person2_id)
|
||||
public function notDuplicateAction(mixed $person1_id, mixed $person2_id)
|
||||
{
|
||||
[$person1, $person2] = $this->_getPersonsByPriority($person1_id, $person2_id);
|
||||
|
||||
@@ -191,10 +186,8 @@ class PersonDuplicateController extends \Symfony\Bundle\FrameworkBundle\Controll
|
||||
|
||||
/**
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/{_locale}/person/{person1_id}/duplicate/{person2_id}/remove-not-duplicate", name="chill_person_remove_duplicate_not_duplicate")
|
||||
* @param mixed $person1_id
|
||||
* @param mixed $person2_id
|
||||
*/
|
||||
public function removeNotDuplicateAction($person1_id, $person2_id)
|
||||
public function removeNotDuplicateAction(mixed $person1_id, mixed $person2_id)
|
||||
{
|
||||
[$person1, $person2] = $this->_getPersonsByPriority($person1_id, $person2_id);
|
||||
|
||||
@@ -217,9 +210,8 @@ class PersonDuplicateController extends \Symfony\Bundle\FrameworkBundle\Controll
|
||||
|
||||
/**
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/{_locale}/person/{person_id}/duplicate/view", name="chill_person_duplicate_view")
|
||||
* @param mixed $person_id
|
||||
*/
|
||||
public function viewAction($person_id, PersonNotDuplicateRepository $personNotDuplicateRepository)
|
||||
public function viewAction(mixed $person_id, PersonNotDuplicateRepository $personNotDuplicateRepository)
|
||||
{
|
||||
$person = $this->_getPerson($person_id);
|
||||
|
||||
|
@@ -31,10 +31,8 @@ final class PersonResourceController extends AbstractController
|
||||
|
||||
/**
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/{_locale}/person/{person_id}/resources/{resource_id}/delete", name="chill_person_resource_delete")
|
||||
* @param mixed $person_id
|
||||
* @param mixed $resource_id
|
||||
*/
|
||||
public function deleteAction(Request $request, $person_id, $resource_id): Response
|
||||
public function deleteAction(Request $request, mixed $person_id, mixed $resource_id): Response
|
||||
{
|
||||
$personOwner = $this->personRepository->find($person_id);
|
||||
$resource = $this->personResourceRepository->find($resource_id);
|
||||
@@ -82,10 +80,8 @@ final class PersonResourceController extends AbstractController
|
||||
|
||||
/**
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/{_locale}/person/{person_id}/resources/{resource_id}/edit", name="chill_person_resource_edit")
|
||||
* @param mixed $resource_id
|
||||
* @param mixed $person_id
|
||||
*/
|
||||
public function editAction(Request $request, $resource_id, $person_id): Response
|
||||
public function editAction(Request $request, mixed $resource_id, mixed $person_id): Response
|
||||
{
|
||||
$resource = $this->personResourceRepository->find($resource_id);
|
||||
$personOwner = $this->personRepository->find($person_id);
|
||||
@@ -121,9 +117,8 @@ final class PersonResourceController extends AbstractController
|
||||
|
||||
/**
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/{_locale}/person/{person_id}/resources/list", name="chill_person_resource_list")
|
||||
* @param mixed $person_id
|
||||
*/
|
||||
public function listAction(Request $request, $person_id)
|
||||
public function listAction(Request $request, mixed $person_id)
|
||||
{
|
||||
$personOwner = $this->personRepository->find($person_id);
|
||||
$this->denyAccessUnlessGranted(PersonVoter::SEE, $personOwner);
|
||||
@@ -142,9 +137,8 @@ final class PersonResourceController extends AbstractController
|
||||
|
||||
/**
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/{_locale}/person/{person_id}/resources/new", name="chill_person_resource_new")
|
||||
* @param mixed $person_id
|
||||
*/
|
||||
public function newAction(Request $request, $person_id)
|
||||
public function newAction(Request $request, mixed $person_id)
|
||||
{
|
||||
$personOwner = $this->personRepository->find($person_id);
|
||||
$personResource = new PersonResource();
|
||||
|
@@ -28,9 +28,8 @@ class TimelinePersonController extends AbstractController
|
||||
|
||||
/**
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/{_locale}/person/{person_id}/timeline", name="chill_person_timeline")
|
||||
* @param mixed $person_id
|
||||
*/
|
||||
public function personAction(Request $request, $person_id)
|
||||
public function personAction(Request $request, mixed $person_id)
|
||||
{
|
||||
$person = $this->getDoctrine()
|
||||
->getRepository(Person::class)
|
||||
|
Reference in New Issue
Block a user