mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
php cs fixes after updating php cs fixer
This commit is contained in:
@@ -36,7 +36,9 @@ class CustomFieldsGroupController extends AbstractController
|
||||
/**
|
||||
* CustomFieldsGroupController constructor.
|
||||
*/
|
||||
public function __construct(private readonly CustomFieldProvider $customFieldProvider, private readonly TranslatorInterface $translator) {}
|
||||
public function __construct(private readonly CustomFieldProvider $customFieldProvider, private readonly TranslatorInterface $translator)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new CustomFieldsGroup entity.
|
||||
@@ -78,7 +80,7 @@ class CustomFieldsGroupController extends AbstractController
|
||||
{
|
||||
$em = $this->getDoctrine()->getManager();
|
||||
|
||||
$entity = $em->getRepository(\Chill\CustomFieldsBundle\Entity\CustomFieldsGroup::class)->find($id);
|
||||
$entity = $em->getRepository(CustomFieldsGroup::class)->find($id);
|
||||
|
||||
if (!$entity) {
|
||||
throw $this->createNotFoundException('Unable to find CustomFieldsGroup entity.');
|
||||
@@ -101,7 +103,7 @@ class CustomFieldsGroupController extends AbstractController
|
||||
{
|
||||
$em = $this->getDoctrine()->getManager();
|
||||
|
||||
$cfGroups = $em->getRepository(\Chill\CustomFieldsBundle\Entity\CustomFieldsGroup::class)->findAll();
|
||||
$cfGroups = $em->getRepository(CustomFieldsGroup::class)->findAll();
|
||||
$defaultGroups = $this->getDefaultGroupsId();
|
||||
|
||||
$makeDefaultFormViews = [];
|
||||
@@ -133,13 +135,13 @@ class CustomFieldsGroupController extends AbstractController
|
||||
|
||||
$em = $this->getDoctrine()->getManager();
|
||||
|
||||
$cFGroup = $em->getRepository(\Chill\CustomFieldsBundle\Entity\CustomFieldsGroup::class)->findOneById($cFGroupId);
|
||||
$cFGroup = $em->getRepository(CustomFieldsGroup::class)->findOneById($cFGroupId);
|
||||
|
||||
if (!$cFGroup) {
|
||||
throw $this->createNotFoundException('customFieldsGroup not found with '."id {$cFGroupId}");
|
||||
}
|
||||
|
||||
$cFDefaultGroup = $em->getRepository(\Chill\CustomFieldsBundle\Entity\CustomFieldsDefaultGroup::class)
|
||||
$cFDefaultGroup = $em->getRepository(CustomFieldsDefaultGroup::class)
|
||||
->findOneByEntity($cFGroup->getEntity());
|
||||
|
||||
if ($cFDefaultGroup) {
|
||||
@@ -194,7 +196,7 @@ class CustomFieldsGroupController extends AbstractController
|
||||
{
|
||||
$em = $this->getDoctrine()->getManager();
|
||||
|
||||
$entity = $em->getRepository(\Chill\CustomFieldsBundle\Entity\CustomFieldsGroup::class)->find($id);
|
||||
$entity = $em->getRepository(CustomFieldsGroup::class)->find($id);
|
||||
|
||||
if (!$entity) {
|
||||
throw $this->createNotFoundException('Unable to find CustomFieldsGroups entity.');
|
||||
@@ -238,7 +240,7 @@ class CustomFieldsGroupController extends AbstractController
|
||||
{
|
||||
$em = $this->getDoctrine()->getManager();
|
||||
|
||||
$entity = $em->getRepository(\Chill\CustomFieldsBundle\Entity\CustomFieldsGroup::class)->find($id);
|
||||
$entity = $em->getRepository(CustomFieldsGroup::class)->find($id);
|
||||
|
||||
if (!$entity) {
|
||||
throw $this->createNotFoundException('Unable to find CustomFieldsGroup entity.');
|
||||
@@ -262,7 +264,7 @@ class CustomFieldsGroupController extends AbstractController
|
||||
{
|
||||
$em = $this->getDoctrine()->getManager();
|
||||
|
||||
$entity = $em->getRepository(\Chill\CustomFieldsBundle\Entity\CustomFieldsGroup::class)->find($id);
|
||||
$entity = $em->getRepository(CustomFieldsGroup::class)->find($id);
|
||||
|
||||
if (!$entity) {
|
||||
throw $this->createNotFoundException('Unable to find CustomFieldsGroup entity.');
|
||||
|
Reference in New Issue
Block a user