Skip to content

Commit 6d337e6

Browse files
CS fixes
1 parent 2c5bc37 commit 6d337e6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

MercureTransport.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function __construct(HubInterface $hub, string $hubId, string|array|null
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, null !== $this->topics ? '?'.http_build_query(['topic' => $this->topics], '', '&') : '');
5252
}
5353

5454
public function supports(MessageInterface $message): bool
@@ -66,7 +66,7 @@ protected function doSend(MessageInterface $message): SentMessage
6666
}
6767

6868
if (($options = $message->getOptions()) && !$options instanceof MercureOptions) {
69-
throw new LogicException(sprintf('The "%s" transport only supports instances of "%s" for options.', __CLASS__, MercureOptions::class));
69+
throw new LogicException(\sprintf('The "%s" transport only supports instances of "%s" for options.', __CLASS__, MercureOptions::class));
7070
}
7171

7272
$options ??= new MercureOptions($this->topics);

MercureTransportFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function create(Dsn $dsn): MercureTransport
4646
try {
4747
$hub = $this->registry->getHub($hubId);
4848
} catch (InvalidArgumentException) {
49-
throw new IncompleteDsnException(sprintf('Hub "%s" not found. Did you mean one of: "%s"?', $hubId, implode('", "', array_keys($this->registry->all()))));
49+
throw new IncompleteDsnException(\sprintf('Hub "%s" not found. Did you mean one of: "%s"?', $hubId, implode('", "', array_keys($this->registry->all()))));
5050
}
5151

5252
return new MercureTransport($hub, $hubId, $topic, $this->client, $this->dispatcher);

0 commit comments

Comments
 (0)