mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-29 10:05:03 +00:00
Rector changes and immplementations of required methods
This commit is contained in:
@@ -50,7 +50,7 @@ final class PersonController extends AbstractController
|
||||
) {}
|
||||
|
||||
#[Route(path: '/{_locale}/person/{person_id}/general/edit', name: 'chill_person_general_edit')]
|
||||
public function editAction(int $person_id, Request $request)
|
||||
public function editAction(int $person_id, Request $request): \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response
|
||||
{
|
||||
$person = $this->_getPerson($person_id);
|
||||
|
||||
@@ -241,7 +241,7 @@ final class PersonController extends AbstractController
|
||||
}
|
||||
|
||||
#[Route(path: '/{_locale}/person/{person_id}/general', name: 'chill_person_view')]
|
||||
public function viewAction(int $person_id)
|
||||
public function viewAction(int $person_id): \Symfony\Component\HttpFoundation\Response
|
||||
{
|
||||
$person = $this->_getPerson($person_id);
|
||||
|
||||
@@ -273,7 +273,7 @@ final class PersonController extends AbstractController
|
||||
*
|
||||
* @return Person
|
||||
*/
|
||||
private function _getPerson(int $id)
|
||||
private function _getPerson(int $id): ?\Chill\PersonBundle\Entity\Person
|
||||
{
|
||||
return $this->personRepository->find($id);
|
||||
}
|
||||
|
Reference in New Issue
Block a user