apply more cs rules for php-cs

This commit is contained in:
2023-10-17 13:27:03 +02:00
parent 0b0cbed9db
commit bc2041cbdd
1485 changed files with 8169 additions and 9620 deletions

View File

@@ -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)