fixes after merge of master into upgrade-sf4

This commit is contained in:
2024-02-12 22:31:16 +01:00
parent 37af488f69
commit f889d67e94
664 changed files with 795 additions and 1980 deletions

View File

@@ -26,8 +26,7 @@ final readonly class ExportFormHelper
private AuthorizationHelperForCurrentUserInterface $authorizationHelper,
private ExportManager $exportManager,
private FormFactoryInterface $formFactory,
) {
}
) {}
public function getDefaultData(string $step, DirectExportInterface|ExportInterface $export, array $options = []): array
{

View File

@@ -15,9 +15,7 @@ use Symfony\Contracts\Translation\TranslatorInterface;
class DateTimeHelper
{
public function __construct(private readonly TranslatorInterface $translator)
{
}
public function __construct(private readonly TranslatorInterface $translator) {}
public function getLabel($header): callable
{

View File

@@ -79,9 +79,7 @@ class ExportAddressHelper
*/
private ?array $unitRefsKeysCache = [];
public function __construct(private readonly AddressRender $addressRender, private readonly AddressRepository $addressRepository, private readonly GeographicalUnitLayerRepositoryInterface $geographicalUnitLayerRepository, private readonly TranslatableStringHelperInterface $translatableStringHelper)
{
}
public function __construct(private readonly AddressRender $addressRender, private readonly AddressRepository $addressRepository, private readonly GeographicalUnitLayerRepositoryInterface $geographicalUnitLayerRepository, private readonly TranslatableStringHelperInterface $translatableStringHelper) {}
public function addSelectClauses(int $params, QueryBuilder $queryBuilder, $entityName = 'address', $prefix = 'add')
{

View File

@@ -21,9 +21,7 @@ use Chill\MainBundle\Templating\TranslatableStringHelperInterface;
*/
class TranslatableStringExportLabelHelper
{
public function __construct(private readonly TranslatableStringHelperInterface $translatableStringHelper)
{
}
public function __construct(private readonly TranslatableStringHelperInterface $translatableStringHelper) {}
public function getLabel(string $key, array $values, string $header)
{

View File

@@ -16,9 +16,7 @@ use Chill\MainBundle\Templating\Entity\UserRender;
class UserHelper
{
public function __construct(private readonly UserRender $userRender, private readonly UserRepositoryInterface $userRepository)
{
}
public function __construct(private readonly UserRender $userRender, private readonly UserRepositoryInterface $userRepository) {}
/**
* Return a callable that will transform a value into a string representing a user.

View File

@@ -20,6 +20,4 @@ namespace Chill\MainBundle\Export;
*
* When used, the `ExportManager` will not handle aggregator for this class.
*/
interface ListInterface extends ExportInterface
{
}
interface ListInterface extends ExportInterface {}

View File

@@ -17,8 +17,7 @@ final readonly class SortExportElement
{
public function __construct(
private TranslatorInterface $translator,
) {
}
) {}
/**
* @param array<int|string, FilterInterface> $elements