mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-09 08:14:59 +00:00
apply rector rules: symfony **UP TO** 44
This commit is contained in:
@@ -95,12 +95,4 @@ class CustomFieldsGroupType extends AbstractType
|
||||
'data_class' => CustomFieldsGroup::class,
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getBlockPrefix()
|
||||
{
|
||||
return 'custom_fields_group';
|
||||
}
|
||||
}
|
||||
|
@@ -18,8 +18,8 @@ use Symfony\Component\Form\Extension\Core\Type\IntegerType;
|
||||
*/
|
||||
class PostTextIntegerExtension extends PostTextExtension
|
||||
{
|
||||
public function getExtendedType()
|
||||
public function getExtendedTypes(): iterable
|
||||
{
|
||||
return IntegerType::class;
|
||||
return [IntegerType::class];
|
||||
}
|
||||
}
|
||||
|
@@ -18,8 +18,8 @@ use Symfony\Component\Form\Extension\Core\Type\NumberType;
|
||||
*/
|
||||
class PostTextNumberExtension extends PostTextExtension
|
||||
{
|
||||
public function getExtendedType()
|
||||
public function getExtendedTypes(): iterable
|
||||
{
|
||||
return NumberType::class;
|
||||
return [NumberType::class];
|
||||
}
|
||||
}
|
||||
|
@@ -53,9 +53,4 @@ class ChoiceWithOtherType extends AbstractType
|
||||
'multiple' => false,
|
||||
]);
|
||||
}
|
||||
|
||||
public function getBlockPrefix()
|
||||
{
|
||||
return 'choice_with_other';
|
||||
}
|
||||
}
|
||||
|
@@ -45,9 +45,4 @@ class CustomFieldType extends AbstractType
|
||||
->setRequired(['group'])
|
||||
->addAllowedTypes('group', [\Chill\CustomFieldsBundle\Entity\CustomFieldsGroup::class]);
|
||||
}
|
||||
|
||||
public function getBlockPrefix()
|
||||
{
|
||||
return 'custom_field';
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user