Skip to content

Commit

Permalink
phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Ragas committed Aug 22, 2023
1 parent 9934219 commit 85a16f8
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Drupal\social_group_invite\Plugin\EmailBuilder;

use Drupal\Core\TempStore\SharedTempStore;
use Drupal\Core\TempStore\SharedTempStoreFactory;
use Drupal\group\Entity\GroupContentInterface;
use Drupal\social_group_invite\Plugin\Action\SocialGroupInviteResend;
Expand Down Expand Up @@ -48,10 +49,8 @@ class GroupInviteEmailBuilder extends EmailBuilderBase implements ContainerFacto

/**
* Stores the shared tempstore.
*
* @var \Drupal\Core\TempStore\SharedTempStore
*/
protected $tempStore;
protected SharedTempStore $tempStore;

/**
* {@inheritdoc}
Expand Down Expand Up @@ -120,7 +119,6 @@ public function preRender(EmailInterface $email): void {

// The mail params list should contain group content entity.
/* @see ginvite_group_content_insert() */
/** @var \Drupal\group\Entity\GroupContentInterface $invite */
$invite = $params['group_content'] ?? NULL;

// Alter message and subject if it configured.
Expand Down Expand Up @@ -149,7 +147,6 @@ public function preRender(EmailInterface $email): void {
if ($invite instanceof GroupContentInterface) {
// Allows to have different invite message per group type by replacing
// default global message.
/** @var Drupal\ginvite\Plugin\GroupContentEnabler\GroupInvitation $group_content_plugin */
$group_content_plugin = $invite->getContentPlugin();

if ($group_content_plugin->getPluginId() === 'group_invitation') {
Expand Down

0 comments on commit 85a16f8

Please sign in to comment.