Skip to content

Commit 84cf3cc

Browse files
committed
Apply coding standards
1 parent 2e331aa commit 84cf3cc

File tree

16 files changed

+33
-27
lines changed

16 files changed

+33
-27
lines changed

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

+10-7
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

+2-1
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

+1-1
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

+1-1
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

+2-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

modules/os2forms_digital_post/src/Plugin/AdvancedQueue/JobType/SendDigitalPostSF1601.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function __construct(
5050
array $configuration,
5151
$plugin_id,
5252
$plugin_definition,
53-
WebformHelperSF1601 $helper
53+
WebformHelperSF1601 $helper,
5454
) {
5555
parent::__construct($configuration, $plugin_id, $plugin_definition);
5656
$this->helper = $helper;

modules/os2forms_forloeb/src/Controller/MaestroNotificationController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class MaestroNotificationController extends ControllerBase {
2323
*/
2424
public function __construct(
2525
private readonly WebformSubmissionStorageInterface $webformSubmissionStorage,
26-
private readonly MaestroHelper $maestroHelper
26+
private readonly MaestroHelper $maestroHelper,
2727
) {
2828
}
2929

modules/os2forms_forloeb/src/Form/SettingsForm.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __construct(
3030
ConfigFactoryInterface $configFactory,
3131
private readonly RoleStorageInterface $roleStorage,
3232
private readonly EntityStorageInterface $queueStorage,
33-
private readonly ModuleExtensionList $moduleHandler
33+
private readonly ModuleExtensionList $moduleHandler,
3434
) {
3535
parent::__construct($configFactory);
3636
}

modules/os2forms_forloeb/src/MaestroHelper.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function __construct(
8080
private readonly EntityPrintPluginManagerInterface $entityPrintPluginManager,
8181
private readonly DigitalPostHelper $digitalPostHelper,
8282
private readonly LoggerChannelInterface $logger,
83-
private readonly LoggerChannelInterface $submissionLogger
83+
private readonly LoggerChannelInterface $submissionLogger,
8484
) {
8585
$this->config = $configFactory->get(SettingsForm::SETTINGS);
8686
$this->webformSubmissionStorage = $entityTypeManager->getStorage('webform_submission');
@@ -148,7 +148,7 @@ private function handleSubmissionNotification(
148148
string $notificationType,
149149
WebformSubmissionInterface $submission,
150150
array $templateTask,
151-
int $maestroQueueID
151+
int $maestroQueueID,
152152
): ?Job {
153153
$context = [
154154
'webform_submission' => $submission,
@@ -225,7 +225,7 @@ private function sendNotification(
225225
string $notificationType,
226226
WebformSubmissionInterface $submission,
227227
array $templateTask,
228-
int $maestroQueueID
228+
int $maestroQueueID,
229229
) {
230230
$context = [
231231
'webform_submission' => $submission,
@@ -309,7 +309,7 @@ private function sendNotificationEmail(
309309
string $subject,
310310
string $body,
311311
WebformSubmissionInterface $submission,
312-
string $notificationType
312+
string $notificationType,
313313
): void {
314314
try {
315315
$message = [
@@ -376,7 +376,7 @@ private function sendNotificationDigitalPost(
376376
string $taskUrl,
377377
string $actionLabel,
378378
WebformSubmissionInterface $submission,
379-
string $notificationType
379+
string $notificationType,
380380
): void {
381381
try {
382382
$document = new Document(
@@ -593,7 +593,7 @@ private function renderHtml(
593593
array $content,
594594
string $taskUrl,
595595
string $actionLabel,
596-
WebformSubmissionInterface $submission
596+
WebformSubmissionInterface $submission,
597597
): string|MarkupInterface {
598598
$template = $this->config->get('templates')['notification_' . $type] ?? NULL;
599599
if (file_exists($template)) {

modules/os2forms_forloeb/src/Plugin/AdvancedQueue/JobType/SendMeastroNotification.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct(
4040
array $configuration,
4141
$plugin_id,
4242
$plugin_definition,
43-
private readonly MaestroHelper $helper
43+
private readonly MaestroHelper $helper,
4444
) {
4545
parent::__construct($configuration, $plugin_id, $plugin_definition);
4646
}

modules/os2forms_nemid/src/EventSubscriber/NemloginRedirectSubscriber.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ public function __construct(
8888
EntityFieldManagerInterface $entity_field_manager,
8989
ConfigFactoryInterface $config_factory,
9090
MessengerInterface $messenger,
91-
KillSwitch $page_cache_kill_switch) {
91+
KillSwitch $page_cache_kill_switch,
92+
) {
9293
$this->nemloginAuthProvider = $nemloginAuthProvider;
9394
$this->account = $account;
9495
$this->entityFieldManager = $entity_field_manager;

src/Plugin/WebformHandler/SaveToFileWebformHandler.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ protected function handleError($state, $message, $file_path, $file_type) {
764764
*/
765765
protected function buildTokenTreeElement(
766766
array $token_types = ['webform', 'webform_submission'],
767-
$description = NULL
767+
$description = NULL,
768768
) {
769769
$description = $description ?: $this->t('Use [webform_submission:values:ELEMENT_KEY:raw] to get plain text values.');
770770
return parent::buildTokenTreeElement($token_types, $description);

0 commit comments

Comments
 (0)