File tree Expand file tree Collapse file tree 4 files changed +4
-8
lines changed Expand file tree Collapse file tree 4 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -50,9 +50,7 @@ public function send(MessageInterface $message): ?SentMessage
50
50
return $ this ->transport ->send ($ message );
51
51
}
52
52
53
- if (null !== $ this ->dispatcher ) {
54
- $ this ->dispatcher ->dispatch (new MessageEvent ($ message , true ));
55
- }
53
+ $ this ->dispatcher ?->dispatch(new MessageEvent ($ message , true ));
56
54
57
55
$ this ->bus ->dispatch ($ message );
58
56
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ public function getSubject(): string
54
54
55
55
public function getRecipientId (): ?string
56
56
{
57
- return $ this ->options ? $ this -> options -> getRecipientId () : null ;
57
+ return $ this ->options ?-> getRecipientId();
58
58
}
59
59
60
60
/**
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public static function fromNotification(Notification $notification): self
41
41
42
42
public function getRecipientId (): ?string
43
43
{
44
- return $ this ->options ? $ this -> options -> getRecipientId () : null ;
44
+ return $ this ->options ?-> getRecipientId();
45
45
}
46
46
47
47
public function subject (string $ subject ): self
Original file line number Diff line number Diff line change @@ -50,9 +50,7 @@ public function send(MessageInterface $message): ?SentMessage
50
50
return $ this ->transport ->send ($ message );
51
51
}
52
52
53
- if (null !== $ this ->dispatcher ) {
54
- $ this ->dispatcher ->dispatch (new MessageEvent ($ message , true ));
55
- }
53
+ $ this ->dispatcher ?->dispatch(new MessageEvent ($ message , true ));
56
54
57
55
$ this ->bus ->dispatch ($ message );
58
56
You can’t perform that action at this time.
0 commit comments