@@ -31,8 +31,8 @@ public function __construct()
3131 /**
3232 * Send an SMS message (static convenience method).
3333 *
34- * @param string $to Recipient phone number (8 digits)
35- * @param string $text Message text (max 160 characters)
34+ * @param string $to Recipient phone number (8 digits)
35+ * @param string $text Message text (max 160 characters)
3636 * @param string|null $from Optional sender ID (8 characters), defaults to config
3737 *
3838 * @return array Response containing status and message ID
@@ -49,8 +49,8 @@ public static function sendSms(string $to, string $text, ?string $from = null):
4949 /**
5050 * Send an SMS message.
5151 *
52- * @param string $to Recipient phone number (8 digits)
53- * @param string $text Message text (max 160 characters)
52+ * @param string $to Recipient phone number (8 digits)
53+ * @param string $text Message text (max 160 characters)
5454 * @param string|null $from Optional sender ID (8 characters), defaults to config
5555 *
5656 * @return array Response containing status and message ID
@@ -154,10 +154,10 @@ protected function validateParameters(string $to, string $text, string $from): v
154154 protected function getErrorMessage (int $ statusCode ): string
155155 {
156156 return match ($ statusCode ) {
157- 402 => 'Invalid request parameters ' ,
158- 403 => 'Invalid API key (x-api-key) ' ,
159- 404 => 'Invalid sender ID or recipient phone number format ' ,
160- 503 => 'API rate limit exceeded (max 5 requests per second) ' ,
157+ 402 => 'Invalid request parameters ' ,
158+ 403 => 'Invalid API key (x-api-key) ' ,
159+ 404 => 'Invalid sender ID or recipient phone number format ' ,
160+ 503 => 'API rate limit exceeded (max 5 requests per second) ' ,
161161 default => "API request failed with status code: {$ statusCode }" ,
162162 };
163163 }
0 commit comments