@@ -78,7 +78,7 @@ |
||
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | /** |
| 81 | - * @param $mode |
|
| 81 | + * @param string $mode |
|
| 82 | 82 | * @return mixed |
| 83 | 83 | */ |
| 84 | 84 | public function getEndPoint($mode) |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace LBHurtado\EngageSpark; |
| 4 | 4 | |
| 5 | -use Illuminate\Support\Arr; |
|
| 6 | 5 | use GuzzleHttp\Client as HttpClient; |
| 6 | +use Illuminate\Support\Arr; |
|
| 7 | 7 | use LBHurtado\EngageSpark\Classes\ServiceMode; |
| 8 | 8 | |
| 9 | 9 | class EngageSpark |
@@ -3,13 +3,13 @@ |
||
| 3 | 3 | namespace LBHurtado\EngageSpark\Jobs; |
| 4 | 4 | |
| 5 | 5 | use Illuminate\Bus\Queueable; |
| 6 | -use LBHurtado\EngageSpark\EngageSpark; |
|
| 7 | -use Illuminate\Queue\SerializesModels; |
|
| 8 | -use Illuminate\Queue\InteractsWithQueue; |
|
| 9 | 6 | use Illuminate\Contracts\Queue\ShouldQueue; |
| 10 | 7 | use Illuminate\Foundation\Bus\Dispatchable; |
| 8 | +use Illuminate\Queue\InteractsWithQueue; |
|
| 9 | +use Illuminate\Queue\SerializesModels; |
|
| 11 | 10 | use LBHurtado\EngageSpark\Classes\ServiceMode; |
| 12 | -use LBHurtado\EngageSpark\Classes\TopupHttpApiParams; |
|
| 11 | +use LBHurtado\EngageSpark\Classes\TopupHttpApiParams; |
|
| 12 | +use LBHurtado\EngageSpark\EngageSpark; |
|
| 13 | 13 | |
| 14 | 14 | class TransferAirtime implements ShouldQueue |
| 15 | 15 | { |
@@ -79,6 +79,9 @@ |
||
| 79 | 79 | return $this->getFormattedMobile($to); |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | + /** |
|
| 83 | + * @param string[] $recipient |
|
| 84 | + */ |
|
| 82 | 85 | protected function sendMessage($recipient, EngageSparkMessage $message) |
| 83 | 86 | { |
| 84 | 87 | $this->setMode($message); |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace LBHurtado\EngageSpark; |
| 4 | 4 | |
| 5 | -use Illuminate\Support\Arr; |
|
| 6 | 5 | use Illuminate\Notifications\Notification; |
| 6 | +use Illuminate\Support\Arr; |
|
| 7 | 7 | use Propaganistas\LaravelPhone\PhoneNumber; |
| 8 | 8 | |
| 9 | 9 | class EngageSparkChannel |