Skip to content

Commit c3efbf4

Browse files
CS fixes
1 parent 951da7a commit c3efbf4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ClickatellTransport.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ public function __construct(#[\SensitiveParameter] string $authToken, ?string $f
4242
public function __toString(): string
4343
{
4444
if (null === $this->from) {
45-
return sprintf('clickatell://%s', $this->getEndpoint());
45+
return \sprintf('clickatell://%s', $this->getEndpoint());
4646
}
4747

48-
return sprintf('clickatell://%s%s', $this->getEndpoint(), null !== $this->from ? '?from='.$this->from : '');
48+
return \sprintf('clickatell://%s%s', $this->getEndpoint(), null !== $this->from ? '?from='.$this->from : '');
4949
}
5050

5151
public function supports(MessageInterface $message): bool
@@ -59,7 +59,7 @@ protected function doSend(MessageInterface $message): SentMessage
5959
throw new UnsupportedMessageTypeException(__CLASS__, SmsMessage::class, $message);
6060
}
6161

62-
$endpoint = sprintf('https://%s/rest/message', $this->getEndpoint());
62+
$endpoint = \sprintf('https://%s/rest/message', $this->getEndpoint());
6363

6464
$options = [];
6565
$options['from'] = $message->getFrom() ?: $this->from;
@@ -95,6 +95,6 @@ protected function doSend(MessageInterface $message): SentMessage
9595
$errorInfo = $content['error']['description'] ?? '';
9696
$errorDocumentation = $content['error']['documentation'] ?? '';
9797

98-
throw new TransportException(sprintf('Unable to send SMS with Clickatell: Error code %d with message "%s" (%s).', $errorCode, $errorInfo, $errorDocumentation), $response);
98+
throw new TransportException(\sprintf('Unable to send SMS with Clickatell: Error code %d with message "%s" (%s).', $errorCode, $errorInfo, $errorDocumentation), $response);
9999
}
100100
}

0 commit comments

Comments
 (0)