Skip to content

Commit b3941df

Browse files
committed
[Notifier] Clean unused code
1 parent 87250e6 commit b3941df

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/Notifier/Bridge/Mercure/MercureTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function __construct(HubInterface $hub, string $hubId, string|array $topi
4848

4949
public function __toString(): string
5050
{
51-
return sprintf('mercure://%s%s', $this->hubId, null !== $this->topics ? '?'.http_build_query(['topic' => $this->topics], '', '&') : '');
51+
return sprintf('mercure://%s%s', $this->hubId, '?'.http_build_query(['topic' => $this->topics], '', '&'));
5252
}
5353

5454
public function supports(MessageInterface $message): bool

src/Symfony/Component/Notifier/Bridge/Telnyx/TelnyxTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ protected function doSend(MessageInterface $message): SentMessage
6767
if (!preg_match('/^[+]+[1-9][0-9]{9,14}$/', $from)) {
6868
if ('' === $from) {
6969
throw new IncompleteDsnException('This phone number is invalid.');
70-
} elseif ('' !== $from && null === $this->messagingProfileId) {
70+
} elseif (null === $this->messagingProfileId) {
7171
throw new IncompleteDsnException('The sending messaging profile must be specified.');
7272
}
7373

0 commit comments

Comments
 (0)