mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-30 19: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:
@@ -36,9 +36,7 @@ class AddressRender implements ChillEntityRenderInterface
|
||||
'extended_infos' => false,
|
||||
];
|
||||
|
||||
public function __construct(private readonly \Twig\Environment $templating, private readonly TranslatableStringHelperInterface $translatableStringHelper)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly \Twig\Environment $templating, private readonly TranslatableStringHelperInterface $translatableStringHelper) {}
|
||||
|
||||
public function renderBox($addr, array $options): string
|
||||
{
|
||||
|
@@ -25,9 +25,7 @@ class CommentRender implements ChillEntityRenderInterface
|
||||
{
|
||||
use BoxUtilsChillEntityRenderTrait;
|
||||
|
||||
public function __construct(private readonly UserRepositoryInterface $userRepository, private readonly \Twig\Environment $engine)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly UserRepositoryInterface $userRepository, private readonly \Twig\Environment $engine) {}
|
||||
|
||||
public function renderBox($entity, array $options): string
|
||||
{
|
||||
|
@@ -30,9 +30,7 @@ class UserRender implements ChillEntityRenderInterface
|
||||
'absence' => true,
|
||||
];
|
||||
|
||||
public function __construct(private readonly TranslatableStringHelper $translatableStringHelper, private readonly \Twig\Environment $engine, private readonly TranslatorInterface $translator)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly TranslatableStringHelper $translatableStringHelper, private readonly \Twig\Environment $engine, private readonly TranslatorInterface $translator) {}
|
||||
|
||||
public function renderBox($entity, array $options): string
|
||||
{
|
||||
|
@@ -22,8 +22,7 @@ final readonly class FilterOrderGetActiveFilterHelper
|
||||
private TranslatorInterface $translator,
|
||||
private PropertyAccessorInterface $propertyAccessor,
|
||||
private UserRender $userRender,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
/**
|
||||
* Return all the data required to display the active filters
|
||||
|
@@ -54,8 +54,7 @@ final class FilterOrderHelper
|
||||
public function __construct(
|
||||
private readonly FormFactoryInterface $formFactory,
|
||||
private readonly RequestStack $requestStack,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function addSingleCheckbox(string $name, string $label): self
|
||||
{
|
||||
|
@@ -40,9 +40,7 @@ class FilterOrderHelperBuilder
|
||||
*/
|
||||
private array $userPickers = [];
|
||||
|
||||
public function __construct(private readonly FormFactoryInterface $formFactory, private readonly RequestStack $requestStack)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly FormFactoryInterface $formFactory, private readonly RequestStack $requestStack) {}
|
||||
|
||||
public function addSingleCheckbox(string $name, string $label): self
|
||||
{
|
||||
|
@@ -18,9 +18,7 @@ use Symfony\Contracts\Translation\TranslatorInterface;
|
||||
|
||||
class FilterOrderHelperFactory implements FilterOrderHelperFactoryInterface
|
||||
{
|
||||
public function __construct(private readonly FormFactoryInterface $formFactory, private readonly RequestStack $requestStack)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly FormFactoryInterface $formFactory, private readonly RequestStack $requestStack) {}
|
||||
|
||||
public function create(string $context, ?array $options = []): FilterOrderHelperBuilder
|
||||
{
|
||||
|
@@ -25,8 +25,7 @@ class Templating extends AbstractExtension
|
||||
public function __construct(
|
||||
private readonly RequestStack $requestStack,
|
||||
private readonly FilterOrderGetActiveFilterHelper $filterOrderGetActiveFilterHelper,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function getFilters(): array
|
||||
{
|
||||
|
@@ -22,9 +22,7 @@ class TranslatableStringTwig extends AbstractExtension
|
||||
/**
|
||||
* TranslatableStringTwig constructor.
|
||||
*/
|
||||
public function __construct(private readonly TranslatableStringHelper $helper)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly TranslatableStringHelper $helper) {}
|
||||
|
||||
/**
|
||||
* Returns a list of filters to add to the existing list.
|
||||
|
Reference in New Issue
Block a user