Skip to content

Commit 6b5629e

Browse files
authored
Merge branch 'develop' into release/3.16.1
2 parents cabde70 + 44e74c1 commit 6b5629e

File tree

30 files changed

+64
-319
lines changed

30 files changed

+64
-319
lines changed

CHANGELOG.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,19 @@ before starting to add changes. Use example [placed in the end of the page](#exa
1111

1212
## [Unreleased]
1313

14+
- Applied coding standards
15+
- [#192](https://github.com/OS2Forms/os2forms/pull/129)
16+
Added audit logging module from os2web
17+
- Remove dependency on webform migration module
18+
- [#100](https://github.com/OS2Forms/os2forms/pull/100)
19+
Removed unused `tecnickcom/tcpdf` package.
20+
1421
## [3.16.1] 2024-09-20
1522

1623
- [#133]https://github.com/OS2Forms/os2forms/pull/133
1724
[OS-119] Keeping value of CPR clean, not adding address protection text
1825

19-
## [3.16.0] 2024-08-27
26+
## [3.16.0-beta1] 2024-08-27
2027

2128
[#110](https://github.com/OS2Forms/os2forms/pull/110)
2229

@@ -283,7 +290,8 @@ before starting to add changes. Use example [placed in the end of the page](#exa
283290
- Security in case of vulnerabilities.
284291
```
285292

286-
[Unreleased]: https://github.com/OS2Forms/os2forms/compare/3.15.8...HEAD
293+
[Unreleased]: https://github.com/OS2Forms/os2forms/compare/3.16.0-beta1...HEAD
294+
[3.16.0-beta1]: https://github.com/OS2Forms/os2forms/compare/3.15.8...3.16.0-beta1
287295
[3.15.8]: https://github.com/OS2Forms/os2forms/compare/3.15.7...3.15.8
288296
[3.15.7]: https://github.com/OS2Forms/os2forms/compare/3.15.6...3.15.7
289297
[3.15.6]: https://github.com/OS2Forms/os2forms/compare/3.15.5...3.15.6

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
"drupal/webform": "^6.1",
5959
"drupal/webform_composite": "^1.0@RC",
6060
"drupal/webform_encrypt": "^2.0@alpha",
61-
"drupal/webform_migrate": "^2.0@alpha",
6261
"drupal/webform_node_element": "^1.2",
6362
"drupal/webform_remote_handlers": "^3.0",
6463
"drupal/webform_remote_select": "^1.0.6",
@@ -69,12 +68,12 @@
6968
"http-interop/http-factory-guzzle": "^1.0.0",
7069
"itk-dev/beskedfordeler-drupal": "^1.0",
7170
"itk-dev/serviceplatformen": "^1.5",
71+
"os2web/os2web_audit": "^0.1",
7272
"os2web/os2web_datalookup": "^1.5",
7373
"os2web/os2web_nemlogin": "^1.0",
7474
"php-http/guzzle7-adapter": "^1.0",
7575
"phpoffice/phpword": "^0.18.2",
7676
"symfony/options-resolver": "^5.4 || ^6.0",
77-
"tecnickcom/tcpdf": "~6",
7877
"webmozart/path-util": "^2.3",
7978
"wsdltophp/packagebase": "^5.0",
8079
"zaporylie/composer-drupal-optimizations": "^1.2",
@@ -149,7 +148,8 @@
149148
"phpstan/extension-installer": true,
150149
"simplesamlphp/composer-module-installer": true,
151150
"vaimo/composer-patches": true,
152-
"zaporylie/composer-drupal-optimizations": true
151+
"zaporylie/composer-drupal-optimizations": true,
152+
"mglaman/composer-drupal-lenient": true
153153
}
154154
}
155155
}

modules/os2forms_autocomplete/src/Plugin/WebformElement/AutocompleteElement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ protected function defineDefaultProperties() {
3838
/**
3939
* {@inheritdoc}
4040
*/
41-
public function prepare(array &$element, WebformSubmissionInterface $webform_submission = NULL) {
41+
public function prepare(array &$element, ?WebformSubmissionInterface $webform_submission = NULL) {
4242
parent::prepare($element, $webform_submission);
4343

4444
if (isset($element['#webform_key'])) {

modules/os2forms_dawa/src/Plugin/WebformElement/DawaElementAddress.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function getDefaultProperties() {
3131
/**
3232
* {@inheritdoc}
3333
*/
34-
public function prepare(array &$element, WebformSubmissionInterface $webform_submission = NULL) {
34+
public function prepare(array &$element, ?WebformSubmissionInterface $webform_submission = NULL) {
3535
parent::prepare($element, $webform_submission);
3636

3737
$element['#autocomplete_route_parameters']['remove_place_name'] = $element['#remove_place_name'] ?? FALSE;

modules/os2forms_dawa/src/Plugin/WebformElement/DawaElementAddressMatrikula.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function getDefaultProperties() {
3636
/**
3737
* {@inheritdoc}
3838
*/
39-
public function prepare(array &$element, WebformSubmissionInterface $webform_submission = NULL) {
39+
public function prepare(array &$element, ?WebformSubmissionInterface $webform_submission = NULL) {
4040
parent::prepare($element, $webform_submission);
4141

4242
$element['#webform_composite_elements']['address']['#remove_place_name'] = TRUE;

modules/os2forms_dawa/src/Plugin/WebformElement/DawaElementBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function getDefaultProperties() {
2525
/**
2626
* {@inheritdoc}
2727
*/
28-
public function prepare(array &$element, WebformSubmissionInterface $webform_submission = NULL) {
28+
public function prepare(array &$element, ?WebformSubmissionInterface $webform_submission = NULL) {
2929
parent::prepare($element, $webform_submission);
3030

3131
$element['#autocomplete_route_name'] = 'os2forms_dawa.element.autocomplete';

modules/os2forms_dawa/src/Plugin/WebformElement/DawaElementBlock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function getDefaultProperties() {
3030
/**
3131
* {@inheritdoc}
3232
*/
33-
public function prepare(array &$element, WebformSubmissionInterface $webform_submission = NULL) {
33+
public function prepare(array &$element, ?WebformSubmissionInterface $webform_submission = NULL) {
3434
parent::prepare($element, $webform_submission);
3535

3636
$element['#autocomplete_route_parameters']['remove_code'] = $element['#remove_code'] ?? FALSE;

modules/os2forms_dawa/src/Plugin/WebformElement/DawaElementMatrikula.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function getDefaultProperties() {
3131
/**
3232
* {@inheritdoc}
3333
*/
34-
public function prepare(array &$element, WebformSubmissionInterface $webform_submission = NULL) {
34+
public function prepare(array &$element, ?WebformSubmissionInterface $webform_submission = NULL) {
3535
parent::prepare($element, $webform_submission);
3636

3737
$element['#autocomplete_route_parameters']['remove_code'] = $element['#remove_code'] ?? FALSE;

modules/os2forms_digital_post/src/Helper/DigitalPostHelper.php

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
use Drupal\os2web_datalookup\Plugin\os2web\DataLookup\DataLookupInterfaceCompany;
1212
use Drupal\os2web_datalookup\Plugin\os2web\DataLookup\DataLookupInterfaceCpr;
1313
use Drupal\webform\WebformSubmissionInterface;
14-
use ItkDev\Serviceplatformen\Service\SF1601\Serializer;
1514
use ItkDev\Serviceplatformen\Service\SF1601\SF1601;
15+
use ItkDev\Serviceplatformen\Service\SF1601\Serializer;
1616
use Oio\Fjernprint\ForsendelseI;
1717
use Psr\Log\LoggerInterface;
1818
use Psr\Log\LoggerTrait;
@@ -55,7 +55,7 @@ public function __construct(
5555
*
5656
* @phpstan-return array<int, mixed>
5757
*/
58-
public function sendDigitalPost(string $type, Message $message, ?ForsendelseI $forsendelse, WebformSubmissionInterface $submission = NULL): array {
58+
public function sendDigitalPost(string $type, Message $message, ?ForsendelseI $forsendelse, ?WebformSubmissionInterface $submission = NULL): array {
5959
$senderSettings = $this->settings->getSender();
6060
$options = [
6161
'test_mode' => (bool) $this->settings->getTestMode(),
@@ -76,6 +76,15 @@ public function sendDigitalPost(string $type, Message $message, ?ForsendelseI $f
7676

7777
/**
7878
* {@inheritdoc}
79+
*
80+
* @param mixed $level
81+
* The level.
82+
* @param string $message
83+
* The message.
84+
* @param array $context
85+
* The context.
86+
*
87+
* @phpstan-param array<string, mixed> $context
7988
*/
8089
public function log($level, $message, array $context = []): void {
8190
$this->logger->log($level, $message, $context);

modules/os2forms_digital_post/src/Helper/MeMoHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
use Drupal\os2web_datalookup\LookupResult\CompanyLookupResult;
2020
use Drupal\os2web_datalookup\LookupResult\CprLookupResult;
2121
use Drupal\webform\WebformSubmissionInterface;
22-
use ItkDev\Serviceplatformen\Service\SF1601\Serializer;
2322
use ItkDev\Serviceplatformen\Service\SF1601\SF1601;
23+
use ItkDev\Serviceplatformen\Service\SF1601\Serializer;
2424

2525
/**
2626
* MeMo helper.

0 commit comments

Comments
 (0)