php cs fixes after updating php cs fixer

This commit is contained in:
2024-01-10 10:31:25 +01:00
parent 60ede58af0
commit 3c8e59e088
682 changed files with 2097 additions and 882 deletions

View File

@@ -100,7 +100,8 @@ final readonly class CollateAddressWithReferenceOrPostalCode implements CollateA
public function __construct(
private Connection $connection,
private LoggerInterface $logger,
) {}
) {
}
/**
* @throws \Throwable

View File

@@ -22,7 +22,8 @@ final readonly class CollateAddressWithReferenceOrPostalCodeCronJob implements C
public function __construct(
private ClockInterface $clock,
private CollateAddressWithReferenceOrPostalCodeInterface $collateAddressWithReferenceOrPostalCode,
) {}
) {
}
public function canRun(?CronJobExecution $cronJobExecution): bool
{

View File

@@ -21,7 +21,8 @@ final readonly class RefreshAddressToGeographicalUnitMaterializedViewCronJob imp
public function __construct(
private Connection $connection,
private ClockInterface $clock,
) {}
) {
}
public function canRun(?CronJobExecution $cronJobExecution): bool
{

View File

@@ -23,7 +23,8 @@ class ViewEntityInfoManager
private readonly iterable $vienEntityInfoProviders,
private readonly Connection $connection,
private readonly LoggerInterface $logger,
) {}
) {
}
public function synchronizeOnDB(): void
{

View File

@@ -20,7 +20,9 @@ class AddressReferenceBEFromBestAddress
{
private const RELEASE = 'https://gitea.champs-libres.be/api/v1/repos/Chill-project/belgian-bestaddresses-transform/releases/tags/v1.0.0';
public function __construct(private readonly HttpClientInterface $client, private readonly AddressReferenceBaseImporter $baseImporter, private readonly AddressToReferenceMatcher $addressToReferenceMatcher) {}
public function __construct(private readonly HttpClientInterface $client, private readonly AddressReferenceBaseImporter $baseImporter, private readonly AddressToReferenceMatcher $addressToReferenceMatcher)
{
}
public function import(string $lang, array $lists): void
{

View File

@@ -45,7 +45,9 @@ final class AddressReferenceBaseImporter
private array $waitingForInsert = [];
public function __construct(private readonly Connection $defaultConnection, private readonly LoggerInterface $logger) {}
public function __construct(private readonly Connection $defaultConnection, private readonly LoggerInterface $logger)
{
}
public function finalize(): void
{

View File

@@ -17,7 +17,9 @@ use Symfony\Contracts\HttpClient\HttpClientInterface;
class AddressReferenceFromBano
{
public function __construct(private readonly HttpClientInterface $client, private readonly AddressReferenceBaseImporter $baseImporter, private readonly AddressToReferenceMatcher $addressToReferenceMatcher) {}
public function __construct(private readonly HttpClientInterface $client, private readonly AddressReferenceBaseImporter $baseImporter, private readonly AddressToReferenceMatcher $addressToReferenceMatcher)
{
}
public function import(string $departementNo): void
{

View File

@@ -64,7 +64,9 @@ final readonly class AddressToReferenceMatcher
'{{ reviewed }}' => Address::ADDR_REFERENCE_STATUS_REVIEWED,
];
public function __construct(private Connection $connection, private LoggerInterface $logger) {}
public function __construct(private Connection $connection, private LoggerInterface $logger)
{
}
public function checkAddressesMatchingReferences(): void
{

View File

@@ -43,7 +43,9 @@ final class GeographicalUnitBaseImporter
private array $waitingForInsert = [];
public function __construct(private readonly Connection $defaultConnection, private readonly LoggerInterface $logger) {}
public function __construct(private readonly Connection $defaultConnection, private readonly LoggerInterface $logger)
{
}
public function finalize(): void
{

View File

@@ -20,7 +20,9 @@ class PostalCodeBEFromBestAddress
{
private const RELEASE = 'https://gitea.champs-libres.be/api/v1/repos/Chill-project/belgian-bestaddresses-transform/releases/tags/v1.0.0';
public function __construct(private readonly PostalCodeBaseImporter $baseImporter, private readonly HttpClientInterface $client, private readonly LoggerInterface $logger) {}
public function __construct(private readonly PostalCodeBaseImporter $baseImporter, private readonly HttpClientInterface $client, private readonly LoggerInterface $logger)
{
}
public function import(string $lang = 'fr'): void
{

View File

@@ -54,7 +54,9 @@ class PostalCodeBaseImporter
private array $waitingForInsert = [];
public function __construct(private readonly Connection $defaultConnection) {}
public function __construct(private readonly Connection $defaultConnection)
{
}
public function finalize(): void
{

View File

@@ -25,7 +25,9 @@ class PostalCodeFRFromOpenData
{
private const CSV = 'https://datanova.laposte.fr/data-fair/api/v1/datasets/laposte-hexasmal/data-files/019HexaSmal.csv';
public function __construct(private readonly PostalCodeBaseImporter $baseImporter, private readonly HttpClientInterface $client, private readonly LoggerInterface $logger) {}
public function __construct(private readonly PostalCodeBaseImporter $baseImporter, private readonly HttpClientInterface $client, private readonly LoggerInterface $logger)
{
}
public function import(): void
{

View File

@@ -22,7 +22,9 @@ class ChillMailer implements MailerInterface
{
private string $prefix = '[Chill] ';
public function __construct(private readonly MailerInterface $initial, private readonly LoggerInterface $chillLogger) {}
public function __construct(private readonly MailerInterface $initial, private readonly LoggerInterface $chillLogger)
{
}
public function send(RawMessage $message, Envelope $envelope = null): void
{

View File

@@ -69,7 +69,8 @@ class RollingDate
private readonly string $roll,
private readonly ?\DateTimeImmutable $fixedDate = null,
private readonly \DateTimeImmutable $pivotDate = new \DateTimeImmutable('now')
) {}
) {
}
public function getFixedDate(): ?\DateTimeImmutable
{

View File

@@ -20,5 +20,7 @@ namespace Chill\MainBundle\Service\ShortMessage;
class NullShortMessageSender implements ShortMessageSenderInterface
{
public function send(ShortMessage $shortMessage): void {}
public function send(ShortMessage $shortMessage): void
{
}
}

View File

@@ -26,7 +26,9 @@ class ShortMessage
final public const PRIORITY_MEDIUM = 'medium';
public function __construct(private string $content, private PhoneNumber $phoneNumber, private string $priority = 'low') {}
public function __construct(private string $content, private PhoneNumber $phoneNumber, private string $priority = 'low')
{
}
public function getContent(): string
{

View File

@@ -25,7 +25,9 @@ use Symfony\Component\Messenger\Handler\MessageHandlerInterface;
*/
class ShortMessageHandler implements MessageHandlerInterface
{
public function __construct(private readonly ShortMessageTransporterInterface $messageTransporter) {}
public function __construct(private readonly ShortMessageTransporterInterface $messageTransporter)
{
}
public function __invoke(ShortMessage $message): void
{

View File

@@ -20,7 +20,9 @@ namespace Chill\MainBundle\Service\ShortMessage;
class ShortMessageTransporter implements ShortMessageTransporterInterface
{
public function __construct(private readonly ShortMessageSenderInterface $sender) {}
public function __construct(private readonly ShortMessageSenderInterface $sender)
{
}
public function send(ShortMessage $shortMessage): void
{

View File

@@ -36,7 +36,8 @@ class OvhShortMessageSender implements ShortMessageSenderInterface
// for DI, must remains as third argument
private readonly LoggerInterface $logger,
private readonly PhoneNumberUtil $phoneNumberUtil
) {}
) {
}
public function send(ShortMessage $shortMessage): void
{