Clean up code. #658

This commit is contained in:
Korina Cordero 2022-04-12 10:08:13 +00:00
parent b712b35a97
commit 9bc1f44ca2

View file

@ -37,9 +37,11 @@ class RisingTideGateway
$clean_num = $this->cleanPhoneNumber($mobile_num); $clean_num = $this->cleanPhoneNumber($mobile_num);
if ($clean_num === false) if ($clean_num === false)
error_log('Invalid mobile number provided. Cannot send SMS message to ' . $mobile_num);
else
{ {
error_log('Invalid mobile number provided. Cannot send SMS message to ' . $mobile_num);
return;
}
$headers = [ $headers = [
'Content-Type: application/vnd.net.wyrls.Document-v3+json' 'Content-Type: application/vnd.net.wyrls.Document-v3+json'
]; ];
@ -91,7 +93,6 @@ class RisingTideGateway
error_log($result); error_log($result);
} }
}
public function validatePhoneNumber($mobile) public function validatePhoneNumber($mobile)
{ {