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
5050 return $ this ->transport ->send ($ message );
5151 }
5252
53- if (null !== $ this ->dispatcher ) {
54- $ this ->dispatcher ->dispatch (new MessageEvent ($ message , true ));
55- }
53+ $ this ->dispatcher ?->dispatch(new MessageEvent ($ message , true ));
5654
5755 $ this ->bus ->dispatch ($ message );
5856
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ public function getSubject(): string
5454
5555 public function getRecipientId (): ?string
5656 {
57- return $ this ->options ? $ this -> options -> getRecipientId () : null ;
57+ return $ this ->options ?-> getRecipientId();
5858 }
5959
6060 /**
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public static function fromNotification(Notification $notification): self
4141
4242 public function getRecipientId (): ?string
4343 {
44- return $ this ->options ? $ this -> options -> getRecipientId () : null ;
44+ return $ this ->options ?-> getRecipientId();
4545 }
4646
4747 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
5050 return $ this ->transport ->send ($ message );
5151 }
5252
53- if (null !== $ this ->dispatcher ) {
54- $ this ->dispatcher ->dispatch (new MessageEvent ($ message , true ));
55- }
53+ $ this ->dispatcher ?->dispatch(new MessageEvent ($ message , true ));
5654
5755 $ this ->bus ->dispatch ($ message );
5856
You can’t perform that action at this time.
0 commit comments