mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
apply rector rules
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user