Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jekuaitk committed Dec 17, 2024
1 parent ddf1c6f commit 5e806f2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.2",
"drupal/coder": "^8.3",
"mglaman/drupal-check": "^1.4"
"mglaman/drupal-check": "^1.4",
"mglaman/phpstan-drupal": "~1.2.0"
},
"scripts": {
"code-analysis/drupal-check": [
Expand Down
2 changes: 0 additions & 2 deletions src/Plugin/rest/resource/WebformAllFormSubmissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Drupal\os2forms_rest_api\Plugin\rest\resource;

use Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException;
use Drupal\Component\Plugin\Exception\PluginNotFoundException;
use Drupal\Core\Url;
use Drupal\os2forms_rest_api\WebformHelper;
use Drupal\rest\ModifiedResourceResponse;
Expand Down
2 changes: 1 addition & 1 deletion src/WebformHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public function webformThirdPartySettingsFormAlter(array &$form, FormStateInterf
* @return \Drupal\webform\WebformInterface|null
* The webform if found.
*/
public function getWebform(string $webformId, string $submissionUuid = NULL): ?WebformInterface {
public function getWebform(string $webformId, ?string $submissionUuid = NULL): ?WebformInterface {
if (NULL !== $submissionUuid) {
$storage = $this->entityTypeManager->getStorage('webform_submission');
$submissionIds = $storage
Expand Down

0 comments on commit 5e806f2

Please sign in to comment.