new cs rule: single_line_empty_body

Rule is added to the last version of php-cs-fixer
This commit is contained in:
2023-09-12 15:58:59 +02:00
parent b9231a91a3
commit d2323e91ca
606 changed files with 639 additions and 1804 deletions

View File

@@ -52,8 +52,7 @@ class CustomFieldChoice extends AbstractCustomField
* @var TranslatableStringHelper Helper that find the string in current locale from an array of translation
*/
private readonly TranslatableStringHelper $translatableStringHelper
) {
}
) {}
public function allowOtherChoice(CustomField $cf)
{

View File

@@ -48,8 +48,7 @@ class CustomFieldDate extends AbstractCustomField
public function __construct(
private readonly Environment $templating,
private readonly TranslatableStringHelper $translatableStringHelper
) {
}
) {}
public function buildForm(FormBuilderInterface $builder, CustomField $customField)
{

View File

@@ -36,8 +36,7 @@ class CustomFieldLongChoice extends AbstractCustomField
private readonly OptionRepository $optionRepository,
private readonly TranslatableStringHelper $translatableStringHelper,
private readonly \Twig\Environment $templating,
) {
}
) {}
public function buildForm(FormBuilderInterface $builder, CustomField $customField)
{

View File

@@ -43,8 +43,7 @@ class CustomFieldNumber extends AbstractCustomField
public function __construct(
private readonly Environment $templating,
private readonly TranslatableStringHelper $translatableStringHelper
) {
}
) {}
public function buildForm(FormBuilderInterface $builder, CustomField $customField)
{

View File

@@ -33,8 +33,7 @@ class CustomFieldText extends AbstractCustomField
public function __construct(
private readonly Environment $templating,
private readonly TranslatableStringHelper $translatableStringHelper
) {
}
) {}
/**
* Create a form according to the maxLength option.

View File

@@ -34,8 +34,7 @@ class CustomFieldTitle extends AbstractCustomField
* @var TranslatableStringHelper Helper that find the string in current locale from an array of translation
*/
private readonly TranslatableStringHelper $translatableStringHelper
) {
}
) {}
public function buildForm(FormBuilderInterface $builder, CustomField $customField)
{