mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
new cs rule: single_line_empty_body
Rule is added to the last version of php-cs-fixer
This commit is contained in:
@@ -37,9 +37,7 @@ 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.
|
||||
|
@@ -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)
|
||||
{
|
||||
|
@@ -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)
|
||||
{
|
||||
|
@@ -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)
|
||||
{
|
||||
|
@@ -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)
|
||||
{
|
||||
|
@@ -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.
|
||||
|
@@ -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)
|
||||
{
|
||||
|
@@ -30,9 +30,7 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||
|
||||
class CustomFieldType extends AbstractType
|
||||
{
|
||||
public function __construct(private readonly CustomFieldProvider $customFieldProvider, private readonly ObjectManager $om, private readonly TranslatableStringHelper $translatableStringHelper)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly CustomFieldProvider $customFieldProvider, private readonly ObjectManager $om, private readonly TranslatableStringHelper $translatableStringHelper) {}
|
||||
|
||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||
{
|
||||
|
@@ -29,8 +29,7 @@ class CustomFieldsGroupType extends AbstractType
|
||||
private readonly array $customizableEntities,
|
||||
//TODO : add comment about this variable
|
||||
private readonly TranslatorInterface $translator
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
//TODO : details about the function
|
||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||
|
@@ -17,9 +17,7 @@ use Symfony\Component\Form\DataTransformerInterface;
|
||||
|
||||
class CustomFieldDataTransformer implements DataTransformerInterface
|
||||
{
|
||||
public function __construct(private readonly CustomFieldInterface $customFieldDefinition, private readonly CustomField $customField)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly CustomFieldInterface $customFieldDefinition, private readonly CustomField $customField) {}
|
||||
|
||||
public function reverseTransform($value)
|
||||
{
|
||||
|
@@ -20,9 +20,7 @@ use function gettype;
|
||||
|
||||
class CustomFieldsGroupToIdTransformer implements DataTransformerInterface
|
||||
{
|
||||
public function __construct(private readonly ObjectManager $om)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly ObjectManager $om) {}
|
||||
|
||||
/**
|
||||
* Transforms a string (id) to an object (CustomFieldsGroup).
|
||||
|
@@ -16,9 +16,7 @@ use Symfony\Component\Form\FormBuilderInterface;
|
||||
|
||||
class CustomFieldsTitleType extends AbstractType
|
||||
{
|
||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||
{
|
||||
}
|
||||
public function buildForm(FormBuilderInterface $builder, array $options) {}
|
||||
|
||||
public function getBlockPrefix()
|
||||
{
|
||||
|
@@ -42,9 +42,7 @@ class LinkedCustomFieldsType extends AbstractType
|
||||
*/
|
||||
private array $options = [];
|
||||
|
||||
public function __construct(private readonly TranslatableStringHelper $translatableStringHelper)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly TranslatableStringHelper $translatableStringHelper) {}
|
||||
|
||||
/**
|
||||
* append Choice on POST_SET_DATA event.
|
||||
|
@@ -29,9 +29,7 @@ class CustomFieldsHelper
|
||||
* @param CustomFieldProvider $provider The customfield provider that
|
||||
* contains all the declared custom fields
|
||||
*/
|
||||
public function __construct(private readonly EntityManagerInterface $em, private readonly CustomFieldProvider $provider)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly EntityManagerInterface $em, private readonly CustomFieldProvider $provider) {}
|
||||
|
||||
public function isEmptyValue(array $fields, CustomField $customField)
|
||||
{
|
||||
|
@@ -34,9 +34,7 @@ class CustomFieldRenderingTwig extends AbstractExtension
|
||||
'label_layout' => '@ChillCustomFields/CustomField/render_label.html.twig',
|
||||
];
|
||||
|
||||
public function __construct(private readonly CustomFieldsHelper $customFieldsHelper)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly CustomFieldsHelper $customFieldsHelper) {}
|
||||
|
||||
/**
|
||||
* (non-PHPdoc).
|
||||
|
Reference in New Issue
Block a user