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

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

View File

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

View File

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

View File

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

View File

@@ -25,8 +25,7 @@ class Templating extends AbstractExtension
public function __construct(
private readonly RequestStack $requestStack,
private readonly FilterOrderGetActiveFilterHelper $filterOrderGetActiveFilterHelper,
) {
}
) {}
public function getFilters(): array
{