Skip to content

Commit 5e806f2

Browse files
committed
Cleanup
1 parent ddf1c6f commit 5e806f2

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
"require-dev": {
2727
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.2",
2828
"drupal/coder": "^8.3",
29-
"mglaman/drupal-check": "^1.4"
29+
"mglaman/drupal-check": "^1.4",
30+
"mglaman/phpstan-drupal": "~1.2.0"
3031
},
3132
"scripts": {
3233
"code-analysis/drupal-check": [

src/Plugin/rest/resource/WebformAllFormSubmissions.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace Drupal\os2forms_rest_api\Plugin\rest\resource;
44

5-
use Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException;
6-
use Drupal\Component\Plugin\Exception\PluginNotFoundException;
75
use Drupal\Core\Url;
86
use Drupal\os2forms_rest_api\WebformHelper;
97
use Drupal\rest\ModifiedResourceResponse;

src/WebformHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ public function webformThirdPartySettingsFormAlter(array &$form, FormStateInterf
179179
* @return \Drupal\webform\WebformInterface|null
180180
* The webform if found.
181181
*/
182-
public function getWebform(string $webformId, string $submissionUuid = NULL): ?WebformInterface {
182+
public function getWebform(string $webformId, ?string $submissionUuid = NULL): ?WebformInterface {
183183
if (NULL !== $submissionUuid) {
184184
$storage = $this->entityTypeManager->getStorage('webform_submission');
185185
$submissionIds = $storage

0 commit comments

Comments
 (0)