Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
iqbalhasandev authored and github-actions[bot] committed Jan 9, 2023
1 parent adf63a9 commit 732deef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Broadcasting/BulkSmsBdChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function send($notifiable, Notification $notification)
BulkSmsBdOneToOne::dispatch($notificationArray[config('bulksmsbd.notification.contacts')], $notificationArray[config('bulksmsbd.notification.message')]);
}
} else {
throw new \Exception(config('bulksmsbd.notification.contacts') . ' or ' . config('bulksmsbd.notification.message') . ' not found in Notification array.');
throw new \Exception(config('bulksmsbd.notification.contacts').' or '.config('bulksmsbd.notification.message').' not found in Notification array.');
}
}
}
4 changes: 2 additions & 2 deletions src/BulkSmsBd.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,11 @@ public function manyToMany(array $contacts)
{
foreach ($contacts as $key => $value) {
// if message is not set or not string throw exception
if ((!isset($value['message'])) || !is_string($value['message'])) {
if ((! isset($value['message'])) || ! is_string($value['message'])) {
throw new \Exception('Massage Not Valid', 1014);
}
// if to is not set or not valid number throw exception
if ((!isset($value['to'])) || !\preg_match("/^(?:\+88|88)?(01[3-9]\d{8})$/", $value['to'])) {
if ((! isset($value['to'])) || ! \preg_match("/^(?:\+88|88)?(01[3-9]\d{8})$/", $value['to'])) {
throw new \Exception('Number Not Valid', 1012);
}
}
Expand Down

0 comments on commit 732deef

Please sign in to comment.