mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-01 20:43:49 +00:00
apply more cs rules for php-cs
This commit is contained in:
@@ -26,6 +26,7 @@ class CustomFieldController extends AbstractController
|
||||
{
|
||||
/**
|
||||
* Creates a new CustomField entity.
|
||||
*
|
||||
* @Route("/{_locale}/admin/customfield/new", name="customfield_new")
|
||||
*/
|
||||
public function createAction(Request $request)
|
||||
@@ -86,7 +87,7 @@ class CustomFieldController extends AbstractController
|
||||
{
|
||||
$entity = new CustomField();
|
||||
|
||||
//add the custom field group if defined in URL
|
||||
// add the custom field group if defined in URL
|
||||
$cfGroupId = $request->query->get('customFieldsGroup', null);
|
||||
|
||||
if (null !== $cfGroupId) {
|
||||
@@ -95,8 +96,7 @@ class CustomFieldController extends AbstractController
|
||||
->find($cfGroupId);
|
||||
|
||||
if (!$cfGroup) {
|
||||
throw $this->createNotFoundException('CustomFieldsGroup with id '
|
||||
. $cfGroupId . ' is not found !');
|
||||
throw $this->createNotFoundException('CustomFieldsGroup with id '.$cfGroupId.' is not found !');
|
||||
}
|
||||
$entity->setCustomFieldsGroup($cfGroup);
|
||||
}
|
||||
@@ -111,6 +111,7 @@ class CustomFieldController extends AbstractController
|
||||
|
||||
/**
|
||||
* Edits an existing CustomField entity.
|
||||
*
|
||||
* @Route("/{_locale}/admin/customfield/update", name="customfield_update")
|
||||
*/
|
||||
public function updateAction(Request $request, mixed $id)
|
||||
|
Reference in New Issue
Block a user