@@ -39,7 +39,7 @@ public function __construct(
3939
4040 public function __toString (): string
4141 {
42- return sprintf ('mailjet://%s@%s ' , $ this ->from , $ this ->getEndpoint ());
42+ return \ sprintf ('mailjet://%s@%s ' , $ this ->from , $ this ->getEndpoint ());
4343 }
4444
4545 public function supports (MessageInterface $ message ): bool
@@ -53,7 +53,7 @@ protected function doSend(MessageInterface $message): SentMessage
5353 throw new UnsupportedMessageTypeException (__CLASS__ , SmsMessage::class, $ message );
5454 }
5555
56- $ endpoint = sprintf ('https://%s/v4/sms-send ' , $ this ->getEndpoint ());
56+ $ endpoint = \ sprintf ('https://%s/v4/sms-send ' , $ this ->getEndpoint ());
5757
5858 $ response = $ this ->client ->request ('POST ' , $ endpoint , [
5959 'auth_bearer ' => $ this ->authToken ,
@@ -75,7 +75,7 @@ protected function doSend(MessageInterface $message): SentMessage
7575 $ errorMessage = $ content ['requestError ' ]['serviceException ' ]['messageId ' ] ?? '' ;
7676 $ errorInfo = $ content ['requestError ' ]['serviceException ' ]['text ' ] ?? '' ;
7777
78- throw new TransportException (sprintf ('Unable to send the SMS: ' .$ errorMessage .' (%s). ' , $ errorInfo ), $ response );
78+ throw new TransportException (\ sprintf ('Unable to send the SMS: ' .$ errorMessage .' (%s). ' , $ errorInfo ), $ response );
7979 }
8080
8181 return new SentMessage ($ message , (string ) $ this );
0 commit comments