apply rector rules

This commit is contained in:
2023-07-28 02:40:02 +02:00
parent 157cdf6dfc
commit f570fe92a5
112 changed files with 252 additions and 562 deletions

View File

@@ -59,8 +59,6 @@ class CRUDController extends AbstractController
* BAse method for edit action.
*
* IMplemented by the method formEditAction, with action as 'edit'
*
* @param mixed $id
*/
public function edit(Request $request, mixed $id): Response
{
@@ -120,8 +118,6 @@ class CRUDController extends AbstractController
* Base method for the view action.
*
* Implemented by the method viewAction, with action as 'view'
*
* @param mixed $id
*/
public function view(Request $request, mixed $id): Response
{
@@ -182,7 +178,6 @@ class CRUDController extends AbstractController
* Throw an \Symfony\Component\Security\Core\Exception\AccessDeniedHttpException
* if not accessible.
*
* @param mixed $entity
*
* @throws \Symfony\Component\Security\Core\Exception\AccessDeniedHttpException
*/
@@ -223,7 +218,6 @@ class CRUDController extends AbstractController
* It is preferable to override customizeForm instead of overriding
* this method.
*
* @param mixed $entity
* @param string $formClass
*/
protected function createFormFor(string $action, mixed $entity, ?string $formClass = null, array $formOptions = []): FormInterface
@@ -484,9 +478,7 @@ class CRUDController extends AbstractController
* 6. Launch rendering, the parameter is fetch using `getTemplateFor`
* The parameters may be personnalized using `generateTemplateParameter`.
*
* @param mixed $id
* @param string $formClass
*
* @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
*/
protected function formEditAction(string $action, Request $request, mixed $id, ?string $formClass = null, array $formOptions = []): Response
@@ -877,7 +869,6 @@ class CRUDController extends AbstractController
* * save-and-new: return to new page of current crud ;
* * save-and-view: return to view page of current crud ;
*
* @param mixed $entity
*
* @return \Symfony\Component\HttpFoundation\RedirectResponse
*/
@@ -1050,9 +1041,6 @@ class CRUDController extends AbstractController
* * `crud_name`: the crud name
* 6. Launch rendering, the parameter is fetch using `getTemplateFor`
* The parameters may be personnalized using `generateTemplateParameter`.
*
* @param mixed $id
* @param mixed $_format
*/
protected function viewAction(string $action, Request $request, mixed $id, mixed $_format = 'html'): Response
{