@@ -70,7 +70,7 @@ public function __toString(): string
70
70
'test ' => (int ) $ this ->test ,
71
71
]);
72
72
73
- return sprintf ('smsapi://%s%s ' , $ this ->getEndpoint (), $ query ? '? ' .http_build_query ($ query , '' , '& ' ) : '' );
73
+ return \ sprintf ('smsapi://%s%s ' , $ this ->getEndpoint (), $ query ? '? ' .http_build_query ($ query , '' , '& ' ) : '' );
74
74
}
75
75
76
76
public function supports (MessageInterface $ message ): bool
@@ -98,7 +98,7 @@ protected function doSend(MessageInterface $message): SentMessage
98
98
$ body ['from ' ] = $ from ;
99
99
}
100
100
101
- $ endpoint = sprintf ('https://%s/sms.do ' , $ this ->getEndpoint ());
101
+ $ endpoint = \ sprintf ('https://%s/sms.do ' , $ this ->getEndpoint ());
102
102
$ response = $ this ->client ->request ('POST ' , $ endpoint , [
103
103
'auth_bearer ' => $ this ->authToken ,
104
104
'body ' => $ body ,
@@ -117,7 +117,7 @@ protected function doSend(MessageInterface $message): SentMessage
117
117
}
118
118
119
119
if (isset ($ content ['error ' ]) || 200 !== $ statusCode ) {
120
- throw new TransportException (sprintf ('Unable to send the SMS: "%s". ' , $ content ['message ' ] ?? 'unknown error ' ), $ response );
120
+ throw new TransportException (\ sprintf ('Unable to send the SMS: "%s". ' , $ content ['message ' ] ?? 'unknown error ' ), $ response );
121
121
}
122
122
123
123
$ sentMessage = new SentMessage ($ message , (string ) $ this );
0 commit comments