mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-02 21:13:57 +00:00
DX: apply rector rules up to php8.0
This commit is contained in:
@@ -57,10 +57,8 @@ class CustomFieldController extends AbstractController
|
||||
|
||||
/**
|
||||
* Displays a form to edit an existing CustomField entity.
|
||||
*
|
||||
* @param mixed $id
|
||||
*/
|
||||
public function editAction($id)
|
||||
public function editAction(mixed $id)
|
||||
{
|
||||
$em = $this->getDoctrine()->getManager();
|
||||
|
||||
@@ -112,10 +110,8 @@ class CustomFieldController extends AbstractController
|
||||
* Finds and displays a CustomField entity.
|
||||
*
|
||||
* @deprecated is not used since there is no link to show action
|
||||
*
|
||||
* @param mixed $id
|
||||
*/
|
||||
public function showAction($id)
|
||||
public function showAction(mixed $id)
|
||||
{
|
||||
$em = $this->getDoctrine()->getManager();
|
||||
|
||||
@@ -131,10 +127,8 @@ class CustomFieldController extends AbstractController
|
||||
|
||||
/**
|
||||
* Edits an existing CustomField entity.
|
||||
*
|
||||
* @param mixed $id
|
||||
*/
|
||||
public function updateAction(Request $request, $id)
|
||||
public function updateAction(Request $request, mixed $id)
|
||||
{
|
||||
$em = $this->getDoctrine()->getManager();
|
||||
|
||||
@@ -170,11 +164,10 @@ class CustomFieldController extends AbstractController
|
||||
*
|
||||
* @param CustomField $entity The entity
|
||||
* @param string
|
||||
* @param mixed $type
|
||||
*
|
||||
* @return \Symfony\Component\Form\Form The form
|
||||
*/
|
||||
private function createCreateForm(CustomField $entity, $type)
|
||||
private function createCreateForm(CustomField $entity, mixed $type)
|
||||
{
|
||||
$form = $this->createForm(CustomFieldType::class, $entity, [
|
||||
'action' => $this->generateUrl(
|
||||
@@ -195,11 +188,10 @@ class CustomFieldController extends AbstractController
|
||||
* Creates a form to edit a CustomField entity.
|
||||
*
|
||||
* @param CustomField $entity The entity
|
||||
* @param mixed $type
|
||||
*
|
||||
* @return \Symfony\Component\Form\Form The form
|
||||
*/
|
||||
private function createEditForm(CustomField $entity, $type)
|
||||
private function createEditForm(CustomField $entity, mixed $type)
|
||||
{
|
||||
$form = $this->createForm(CustomFieldType::class, $entity, [
|
||||
'action' => $this->generateUrl('customfield_update', ['id' => $entity->getId()]),
|
||||
|
@@ -33,25 +33,11 @@ use function in_array;
|
||||
*/
|
||||
class CustomFieldsGroupController extends AbstractController
|
||||
{
|
||||
/**
|
||||
* @var CustomFieldProvider
|
||||
*/
|
||||
private $customfieldProvider;
|
||||
|
||||
/**
|
||||
* @var TranslatorInterface
|
||||
*/
|
||||
private $translator;
|
||||
|
||||
/**
|
||||
* CustomFieldsGroupController constructor.
|
||||
*/
|
||||
public function __construct(
|
||||
CustomFieldProvider $customFieldProvider,
|
||||
TranslatorInterface $translator
|
||||
) {
|
||||
$this->customfieldProvider = $customFieldProvider;
|
||||
$this->translator = $translator;
|
||||
public function __construct(private CustomFieldProvider $customfieldProvider, private TranslatorInterface $translator)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -85,10 +71,8 @@ class CustomFieldsGroupController extends AbstractController
|
||||
|
||||
/**
|
||||
* Displays a form to edit an existing CustomFieldsGroup entity.
|
||||
*
|
||||
* @param mixed $id
|
||||
*/
|
||||
public function editAction($id)
|
||||
public function editAction(mixed $id)
|
||||
{
|
||||
$em = $this->getDoctrine()->getManager();
|
||||
|
||||
@@ -241,10 +225,8 @@ class CustomFieldsGroupController extends AbstractController
|
||||
|
||||
/**
|
||||
* Finds and displays a CustomFieldsGroup entity.
|
||||
*
|
||||
* @param mixed $id
|
||||
*/
|
||||
public function showAction($id)
|
||||
public function showAction(mixed $id)
|
||||
{
|
||||
$em = $this->getDoctrine()->getManager();
|
||||
|
||||
@@ -265,10 +247,8 @@ class CustomFieldsGroupController extends AbstractController
|
||||
|
||||
/**
|
||||
* Edits an existing CustomFieldsGroup entity.
|
||||
*
|
||||
* @param mixed $id
|
||||
*/
|
||||
public function updateAction(Request $request, $id)
|
||||
public function updateAction(Request $request, mixed $id)
|
||||
{
|
||||
$em = $this->getDoctrine()->getManager();
|
||||
|
||||
|
Reference in New Issue
Block a user