Clean up code. #658
This commit is contained in:
parent
b712b35a97
commit
9bc1f44ca2
1 changed files with 53 additions and 52 deletions
|
|
@ -37,9 +37,11 @@ class RisingTideGateway
|
|||
$clean_num = $this->cleanPhoneNumber($mobile_num);
|
||||
|
||||
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 = [
|
||||
'Content-Type: application/vnd.net.wyrls.Document-v3+json'
|
||||
];
|
||||
|
|
@ -91,7 +93,6 @@ class RisingTideGateway
|
|||
|
||||
error_log($result);
|
||||
}
|
||||
}
|
||||
|
||||
public function validatePhoneNumber($mobile)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue