mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 19:13: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:
@@ -101,8 +101,7 @@ final readonly class CollateAddressWithReferenceOrPostalCode implements CollateA
|
||||
public function __construct(
|
||||
private Connection $connection,
|
||||
private LoggerInterface $logger,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
/**
|
||||
* @throws \Throwable
|
||||
|
@@ -22,8 +22,7 @@ final readonly class CollateAddressWithReferenceOrPostalCodeCronJob implements C
|
||||
public function __construct(
|
||||
private ClockInterface $clock,
|
||||
private CollateAddressWithReferenceOrPostalCodeInterface $collateAddressWithReferenceOrPostalCode,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function canRun(?CronJobExecution $cronJobExecution): bool
|
||||
{
|
||||
|
@@ -24,8 +24,7 @@ final readonly class RefreshAddressToGeographicalUnitMaterializedViewCronJob imp
|
||||
public function __construct(
|
||||
private Connection $connection,
|
||||
private ClockInterface $clock,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function canRun(?CronJobExecution $cronJobExecution): bool
|
||||
{
|
||||
|
@@ -21,8 +21,7 @@ class ViewEntityInfoManager
|
||||
*/
|
||||
private readonly iterable $vienEntityInfoProviders,
|
||||
private readonly Connection $connection,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function synchronizeOnDB(): void
|
||||
{
|
||||
|
@@ -22,9 +22,7 @@ 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
|
||||
{
|
||||
|
@@ -50,9 +50,7 @@ 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
|
||||
{
|
||||
|
@@ -20,9 +20,7 @@ use function is_int;
|
||||
|
||||
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
|
||||
{
|
||||
|
@@ -64,9 +64,7 @@ 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
|
||||
{
|
||||
|
@@ -47,9 +47,7 @@ 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
|
||||
{
|
||||
|
@@ -21,9 +21,7 @@ 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
|
||||
{
|
||||
|
@@ -57,9 +57,7 @@ class PostalCodeBaseImporter
|
||||
|
||||
private array $waitingForInsert = [];
|
||||
|
||||
public function __construct(private readonly Connection $defaultConnection)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly Connection $defaultConnection) {}
|
||||
|
||||
public function finalize(): void
|
||||
{
|
||||
|
@@ -26,9 +26,7 @@ class PostalCodeFRFromOpenData
|
||||
{
|
||||
private const CSV = 'https://datanova.legroupe.laposte.fr/explore/dataset/laposte_hexasmal/download/?format=csv&timezone=Europe/Berlin&lang=fr&use_labels_for_header=true&csv_separator=%3B';
|
||||
|
||||
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
|
||||
{
|
||||
|
@@ -22,9 +22,7 @@ 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
|
||||
{
|
||||
|
@@ -71,8 +71,7 @@ class RollingDate
|
||||
private readonly string $roll,
|
||||
private readonly ?\DateTimeImmutable $fixedDate = null,
|
||||
private readonly DateTimeImmutable $pivotDate = new DateTimeImmutable('now')
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function getFixedDate(): ?DateTimeImmutable
|
||||
{
|
||||
|
@@ -20,7 +20,5 @@ namespace Chill\MainBundle\Service\ShortMessage;
|
||||
|
||||
class NullShortMessageSender implements ShortMessageSenderInterface
|
||||
{
|
||||
public function send(ShortMessage $shortMessage): void
|
||||
{
|
||||
}
|
||||
public function send(ShortMessage $shortMessage): void {}
|
||||
}
|
||||
|
@@ -26,9 +26,7 @@ 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
|
||||
{
|
||||
|
@@ -25,9 +25,7 @@ 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
|
||||
{
|
||||
|
@@ -20,9 +20,7 @@ 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
|
||||
{
|
||||
|
@@ -36,8 +36,7 @@ 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
|
||||
{
|
||||
|
Reference in New Issue
Block a user