Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit c0b5ee7

Browse files
committed
DW-532: Fixed stuff after code review
1 parent 69483cc commit c0b5ee7

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

src/Helper/WebformHelper.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,7 @@ public function sendDigitalPost(string $submissionId, array $handlerConfiguratio
125125

126126
/** @var \Drupal\os2forms_cpr_lookup\CPR\CprServiceResult $cprSearchResult */
127127
$cprSearchResult = $this->cprService->search($submissionData[$handlerConfiguration['cpr_element']]);
128-
129128
$context = $this->getTemplateContext($webform_submission, $cprSearchResult, $handlerConfiguration);
130-
131-
if (TRUE === $handlerConfiguration['debug']) {
132-
$this->templateManager->renderPdf($handlerConfiguration['template'], $context, TRUE);
133-
return;
134-
}
135-
136129
$result = FALSE;
137130

138131
switch ($handlerConfiguration['channel']) {

src/Plugin/AdvancedQueue/JobType/SendDigitalPost.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Symfony\Component\DependencyInjection\ContainerInterface;
1111

1212
/**
13-
* Archive document job.
13+
* Send digital post.
1414
*
1515
* @AdvancedQueueJobType(
1616
* id = "Drupal\os2forms_digital_post\Plugin\AdvancedQueue\JobType\SendDigitalPost",
@@ -19,7 +19,7 @@
1919
*/
2020
class SendDigitalPost extends JobTypeBase implements ContainerFactoryPluginInterface {
2121
/**
22-
* The archiving helper.
22+
* The webform helper.
2323
*
2424
* @var \Drupal\os2forms_digital_post\Helper\WebformHelper
2525
*/
@@ -51,7 +51,7 @@ public function __construct(
5151
}
5252

5353
/**
54-
* Processes the ArchiveDocument job.
54+
* Processes the send digital post job.
5555
*/
5656
public function process(Job $job): JobResult {
5757
$payload = $job->getPayload();

0 commit comments

Comments
 (0)