Skip to content

Commit

Permalink
chore: fix codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
schneider-felix committed Oct 6, 2024
1 parent 8317f9d commit 8f9a9fb
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 14 deletions.
3 changes: 1 addition & 2 deletions src/Controller/Api/MailArchiveController.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ public function __construct(
private readonly AbstractMailSender $mailSender,
private readonly RequestStack $requestStack,
private readonly EmlFileManager $emlFileManager,
)
{
) {
}

#[Route(path: '/api/_action/frosh-mail-archive/resend-mail', name: 'api.action.frosh-mail-archive.resend-mail')]
Expand Down
4 changes: 3 additions & 1 deletion src/Migration/Migration1598204175SenderToJson.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@ public function update(Connection $connection): void
CHANGE `sender` `sender` json NOT NULL AFTER `id`;');
}

public function updateDestructive(Connection $connection): void {}
public function updateDestructive(Connection $connection): void
{
}
}
4 changes: 3 additions & 1 deletion src/Migration/Migration1690743548AddEmlPath.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@ public function update(Connection $connection): void
ADD `eml_path` varchar(2048) NULL;');
}

public function updateDestructive(Connection $connection): void {}
public function updateDestructive(Connection $connection): void
{
}
}
4 changes: 3 additions & 1 deletion src/Migration/Migration1691326842Attachment.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,7 @@ public function update(Connection $connection): void
');
}

public function updateDestructive(Connection $connection): void {}
public function updateDestructive(Connection $connection): void
{
}
}
4 changes: 3 additions & 1 deletion src/Migration/Migration1694604822AddSourceMailId.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,7 @@ public function update(Connection $connection): void
$connection->executeStatement("ALTER TABLE `frosh_mail_archive` ADD `source_mail_id` BINARY(16) NULL;");
}

public function updateDestructive(Connection $connection): void {}
public function updateDestructive(Connection $connection): void
{
}
}
4 changes: 3 additions & 1 deletion src/Migration/Migration1694714751TransportInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,7 @@ public function update(Connection $connection): void
$connection->executeStatement("ALTER TABLE `frosh_mail_archive` ADD `transport_state` VARCHAR(255) NULL;");
}

public function updateDestructive(Connection $connection): void {}
public function updateDestructive(Connection $connection): void
{
}
}
4 changes: 3 additions & 1 deletion src/Migration/Migration1707002823DropEmlFiled.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,7 @@ public function update(Connection $connection): void
$connection->executeStatement('ALTER TABLE `frosh_mail_archive` DROP COLUMN `eml`');
}

public function updateDestructive(Connection $connection): void {}
public function updateDestructive(Connection $connection): void
{
}
}
4 changes: 3 additions & 1 deletion src/Migration/Migration1713775973AlterSubjectFieldLength.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,7 @@ public function update(Connection $connection): void
$connection->executeStatement('ALTER TABLE `frosh_mail_archive` MODIFY `subject` VARCHAR(998) NOT NULL;');
}

public function updateDestructive(Connection $connection): void {}
public function updateDestructive(Connection $connection): void
{
}
}
3 changes: 2 additions & 1 deletion src/Services/EmlFileManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ class EmlFileManager
public function __construct(
#[Autowire(service: 'frosh_platform_mail_archive.filesystem.private')]
private readonly FilesystemOperator $filesystem,
) {}
) {
}

/**
* @return string Path to the eml file
Expand Down
3 changes: 2 additions & 1 deletion src/Services/MailSender.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ public function __construct(
private readonly EntityRepository $froshMailArchiveRepository,
private readonly EntityRepository $customerRepository,
private readonly EmlFileManager $emlFileManager,
) {}
) {
}

public function send(Email $email, ?Envelope $envelope = null): void
{
Expand Down
3 changes: 2 additions & 1 deletion src/Subscriber/MailArchiveDeleteSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ class MailArchiveDeleteSubscriber implements EventSubscriberInterface
public function __construct(
private readonly EntityRepository $froshMailArchiveRepository,
private readonly EmlFileManager $emlFileManager,
) {}
) {
}

public static function getSubscribedEvents(): array
{
Expand Down
3 changes: 1 addition & 2 deletions src/Subscriber/MailTransportSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ class MailTransportSubscriber implements EventSubscriberInterface
public function __construct(
private readonly EntityRepository $froshMailArchiveRepository,
private readonly EmlFileManager $emlFileManager,
)
{
) {
}

public static function getSubscribedEvents(): array
Expand Down

0 comments on commit 8f9a9fb

Please sign in to comment.