@@ -25,9 +25,6 @@ public function __construct(TwilioService $twilioService, TwilioConfig $config)
2525 /**
2626 * Send a TwilioMessage to the a phone number.
2727 *
28- * @param TwilioMessage $message
29- * @param string|null $to
30- * @param bool $useAlphanumericSender
3128 *
3229 * @return mixed
3330 * @throws TwilioException
@@ -53,18 +50,15 @@ public function sendMessage(TwilioMessage $message, ?string $to, bool $useAlphan
5350 /**
5451 * Send an sms message using the Twilio Service.
5552 *
56- * @param TwilioSmsMessage $message
57- * @param string|null $to
5853 *
59- * @return MessageInstance
6054 * @throws CouldNotSendNotification
6155 * @throws TwilioException
6256 */
6357 protected function sendSmsMessage (TwilioSmsMessage $ message , ?string $ to ): MessageInstance
6458 {
6559 $ debugTo = $ this ->config ->getDebugTo ();
6660
67- if (!empty ($ debugTo )) {
61+ if (! empty ($ debugTo )) {
6862 $ to = $ debugTo ;
6963 }
7064
@@ -77,7 +71,7 @@ protected function sendSmsMessage(TwilioSmsMessage $message, ?string $to): Messa
7771 }
7872
7973 if ($ this ->config ->isShortenUrlsEnabled ()) {
80- $ params ['ShortenUrls ' ] = " true " ;
74+ $ params ['ShortenUrls ' ] = ' true ' ;
8175 }
8276
8377 if ($ from = $ this ->getFrom ($ message )) {
@@ -110,10 +104,7 @@ protected function sendSmsMessage(TwilioSmsMessage $message, ?string $to): Messa
110104 /**
111105 * Make a call using the Twilio Service.
112106 *
113- * @param TwilioCallMessage $message
114- * @param string|null $to
115107 *
116- * @return CallInstance
117108 * @throws TwilioException
118109 * @throws CouldNotSendNotification
119110 */
@@ -151,9 +142,6 @@ protected function makeCall(TwilioCallMessage $message, ?string $to): CallInstan
151142
152143 /**
153144 * Get the from address from message, or config.
154- *
155- * @param TwilioMessage $message
156- * @return string|null
157145 */
158146 protected function getFrom (TwilioMessage $ message ): ?string
159147 {
@@ -162,9 +150,6 @@ protected function getFrom(TwilioMessage $message): ?string
162150
163151 /**
164152 * Get the messaging service SID from message, or config.
165- *
166- * @param TwilioSmsMessage $message
167- * @return string|null
168153 */
169154 protected function getMessagingServiceSid (TwilioSmsMessage $ message ): ?string
170155 {
@@ -173,19 +158,16 @@ protected function getMessagingServiceSid(TwilioSmsMessage $message): ?string
173158
174159 /**
175160 * Get the alphanumeric sender from config, if one exists.
176- *
177- * @return string|null
178161 */
179162 protected function getAlphanumericSender (): ?string
180163 {
181164 return $ this ->config ->getAlphanumericSender ();
182165 }
183166
184167 /**
185- * @param array $params
186- * @param TwilioMessage $message
187- * @param array $optionalParams
188- * @return Twilio
168+ * @param array $params
169+ * @param TwilioMessage $message
170+ * @param array $optionalParams
189171 */
190172 protected function fillOptionalParams (&$ params , $ message , $ optionalParams ): self
191173 {
0 commit comments