Skip to content

Commit 7517de8

Browse files
committed
Apply coding standards
1 parent 2e331aa commit 7517de8

File tree

17 files changed

+34
-27
lines changed

17 files changed

+34
-27
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ before starting to add changes. Use example [placed in the end of the page](#exa
1515
- [#84](https://github.com/OS2Forms/os2forms/pull/84)
1616
Added digital post test command.
1717
- [#96](https://github.com/OS2Forms/os2forms/pull/96)
18+
- Fix
1819

1920
## [3.14.1] 2024-01-16
2021

modules/os2forms_digital_post/src/Drush/Commands/DigitalPostTestCommands.php

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function __construct(
2626
private readonly DigitalPostHelper $digitalPostHelper,
2727
private readonly Token $token,
2828
private readonly EntityPrintPluginManagerInterface $entityPrintPluginManager,
29-
private readonly Settings $digitalPostSettings
29+
private readonly Settings $digitalPostSettings,
3030
) {
3131
}
3232

@@ -53,12 +53,15 @@ public function __construct(
5353
* @command os2forms-digital-post:test:send
5454
* @usage os2forms-digital-post:test:send --help
5555
*/
56-
public function send(array $recipients, array $options = [
57-
'subject' => 'os2forms_digital_post',
58-
'message' => 'This is a test message from os2forms_digital_post sent on [current-date:html_datetime].',
59-
'digital-post-type' => SF1601::TYPE_AUTOMATISK_VALG,
60-
'dump-digital-post-settings' => FALSE,
61-
]): void {
56+
public function send(
57+
array $recipients,
58+
array $options = [
59+
'subject' => 'os2forms_digital_post',
60+
'message' => 'This is a test message from os2forms_digital_post sent on [current-date:html_datetime].',
61+
'digital-post-type' => SF1601::TYPE_AUTOMATISK_VALG,
62+
'dump-digital-post-settings' => FALSE,
63+
],
64+
): void {
6265
$io = new SymfonyStyle($this->input(), $this->output());
6366

6467
if ($options['dump-digital-post-settings']) {

modules/os2forms_digital_post/src/EventSubscriber/BeskedfordelerEventSubscriber.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ public function __construct(
2323
private readonly BeskedfordelerHelper $beskedfordelerHelper,
2424
private readonly MessageHelper $messageHelper,
2525
private readonly WebformHelperSF1601 $webformHelper,
26-
LoggerInterface $logger) {
26+
LoggerInterface $logger,
27+
) {
2728
parent::__construct($logger);
2829
}
2930

modules/os2forms_digital_post/src/Form/SettingsForm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ final class SettingsForm extends FormBase {
3232
public function __construct(
3333
private readonly Settings $settings,
3434
private readonly CertificateLocatorHelper $certificateLocatorHelper,
35-
EntityTypeManagerInterface $entityTypeManager
35+
EntityTypeManagerInterface $entityTypeManager,
3636
) {
3737
$this->queueStorage = $entityTypeManager->getStorage('advancedqueue_queue');
3838
}

modules/os2forms_digital_post/src/Helper/AbstractMessageHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ abstract class AbstractMessageHelper {
2424
public function __construct(
2525
readonly protected Settings $settings,
2626
readonly protected ElementInfoManager $elementInfoManager,
27-
readonly protected WebformTokenManagerInterface $webformTokenManager
27+
readonly protected WebformTokenManagerInterface $webformTokenManager,
2828
) {
2929
}
3030

modules/os2forms_digital_post/src/Helper/BeskedfordelerHelper.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ class BeskedfordelerHelper {
2424
public function __construct(
2525
private readonly Connection $database,
2626
private readonly MeMoHelper $meMoHelper,
27-
LoggerInterface $logger) {
27+
LoggerInterface $logger,
28+
) {
2829
$this->setLogger($logger);
2930
}
3031

modules/os2forms_digital_post/src/Helper/CertificateLocatorHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class CertificateLocatorHelper {
2323
* {@inheritdoc}
2424
*/
2525
public function __construct(
26-
private readonly Settings $settings
26+
private readonly Settings $settings,
2727
) {
2828
}
2929

modules/os2forms_digital_post/src/Helper/DigitalPostHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function __construct(
3434
private readonly ForsendelseHelper $forsendelseHelper,
3535
private readonly BeskedfordelerHelper $beskedfordelerHelper,
3636
private readonly LoggerChannelInterface $logger,
37-
private readonly LoggerChannelInterface $submissionLogger
37+
private readonly LoggerChannelInterface $submissionLogger,
3838
) {
3939
}
4040

modules/os2forms_digital_post/src/Helper/WebformHelperSF1601.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function __construct(
5757
private readonly BeskedfordelerHelper $beskedfordelerHelper,
5858
private readonly LoggerChannelInterface $logger,
5959
private readonly LoggerChannelInterface $submissionLogger,
60-
private readonly DigitalPostHelper $digitalPostHelper
60+
private readonly DigitalPostHelper $digitalPostHelper,
6161
) {
6262
$this->webformSubmissionStorage = $entityTypeManager->getStorage('webform_submission');
6363
$this->queueStorage = $entityTypeManager->getStorage('advancedqueue_queue');

modules/os2forms_digital_post/src/Model/Document.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function __construct(
1717
readonly public string $content,
1818
readonly public string $mimeType,
1919
readonly public string $filename,
20-
readonly public string $language = self::LANGUAGE_DEFAULT
20+
readonly public string $language = self::LANGUAGE_DEFAULT,
2121
) {
2222
}
2323

0 commit comments

Comments
 (0)