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:
@@ -129,8 +129,6 @@ abstract class AbstractCRUDController extends AbstractController
|
||||
*
|
||||
* By default, count all entities. You can customize the query by
|
||||
* using the method `customizeQuery`.
|
||||
*
|
||||
* @param mixed $_format
|
||||
*/
|
||||
protected function countEntities(string $action, Request $request, mixed $_format): int
|
||||
{
|
||||
|
@@ -218,7 +218,6 @@ class ApiController extends AbstractCRUDController
|
||||
* @param string $postedDataType the type of the posted data (the content)
|
||||
* @param string $postedDataContext a context to deserialize posted data (the content)
|
||||
* @param bool $forcePersist force to persist the created element (only for POST request)
|
||||
* @param mixed $id
|
||||
* @throw BadRequestException if unable to deserialize the posted data
|
||||
* @throw BadRequestException if the method is not POST or DELETE
|
||||
*/
|
||||
@@ -337,9 +336,6 @@ class ApiController extends AbstractCRUDController
|
||||
* 4. launch `onPostCheckACL`. If the result is an instance of Response,
|
||||
* this response is returned ;
|
||||
* 5. Serialize the entity and return the result. The serialization context is given by `getSerializationContext`
|
||||
*
|
||||
* @param mixed $id
|
||||
* @param mixed $_format
|
||||
*/
|
||||
protected function entityGet(string $action, Request $request, mixed $id, mixed $_format = 'html'): Response
|
||||
{
|
||||
@@ -451,8 +447,6 @@ class ApiController extends AbstractCRUDController
|
||||
* PATCH, PUT, or POST method).
|
||||
*
|
||||
* This is called **after** the entity was altered.
|
||||
*
|
||||
* @param mixed $entity
|
||||
*/
|
||||
protected function getContextForSerializationPostAlter(string $action, Request $request, string $_format, mixed $entity, array $more = []): array
|
||||
{
|
||||
@@ -489,7 +483,6 @@ class ApiController extends AbstractCRUDController
|
||||
* 4. Serialize the entities in a Collection, using `SerializeCollection`
|
||||
*
|
||||
* @param string $action
|
||||
* @param mixed $_format
|
||||
*/
|
||||
protected function indexApiAction($action, Request $request, mixed $_format)
|
||||
{
|
||||
|
@@ -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