@@ -49,11 +49,11 @@ |
||
49 | 49 | */ |
50 | 50 | public function send($notifiable, Notification $notification) |
51 | 51 | { |
52 | - if (! $to = $notifiable->routeNotificationFor('AllMySms', $notification)) { |
|
52 | + if (!$to = $notifiable->routeNotificationFor('AllMySms', $notification)) { |
|
53 | 53 | return; |
54 | 54 | } |
55 | 55 | |
56 | - if (! empty($this->to)) { |
|
56 | + if (!empty($this->to)) { |
|
57 | 57 | $to = $this->to; |
58 | 58 | } |
59 | 59 |
@@ -111,7 +111,7 @@ |
||
111 | 111 | */ |
112 | 112 | public function sendAt($sendAt) |
113 | 113 | { |
114 | - if (! $sendAt instanceof DateTimeInterface) { |
|
114 | + if (!$sendAt instanceof DateTimeInterface) { |
|
115 | 115 | $sendAt = new DateTime($sendAt); |
116 | 116 | } |
117 | 117 |
@@ -14,14 +14,14 @@ discard block |
||
14 | 14 | */ |
15 | 15 | public function register() |
16 | 16 | { |
17 | - $this->app->bind(AllMySms::class, function ($app) { |
|
17 | + $this->app->bind(AllMySms::class, function($app) { |
|
18 | 18 | return new AllMySms( |
19 | 19 | new HttpClient(), |
20 | 20 | $this->app['config']['services.all_my_sms'] |
21 | 21 | ); |
22 | 22 | }); |
23 | 23 | |
24 | - $this->app->bind(AllMySmsChannel::class, function ($app) { |
|
24 | + $this->app->bind(AllMySmsChannel::class, function($app) { |
|
25 | 25 | return new AllMySmsChannel( |
26 | 26 | $this->app->make(AllMySms::class), |
27 | 27 | $this->app['config']['services.all_my_sms.sender'], |
@@ -29,8 +29,8 @@ discard block |
||
29 | 29 | ); |
30 | 30 | }); |
31 | 31 | |
32 | - Notification::resolved(function (ChannelManager $service) { |
|
33 | - $service->extend('all_my_sms', function ($app) { |
|
32 | + Notification::resolved(function(ChannelManager $service) { |
|
33 | + $service->extend('all_my_sms', function($app) { |
|
34 | 34 | return $this->app->make(AllMySmsChannel::class); |
35 | 35 | }); |
36 | 36 | }); |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | protected function formatRequest(string $to, array $data, ?string $sender = null): array |
97 | 97 | { |
98 | 98 | $index = 1; |
99 | - $parameters = collect(data_get($data, 'parameters', []))->mapWithKeys(function ($item) use (&$index) { |
|
99 | + $parameters = collect(data_get($data, 'parameters', []))->mapWithKeys(function($item) use (&$index) { |
|
100 | 100 | return ["PARAM_{$index}" => $item]; |
101 | 101 | })->toArray(); |
102 | 102 | |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | ], |
112 | 112 | ]; |
113 | 113 | |
114 | - if (! empty($parameters)) { |
|
114 | + if (!empty($parameters)) { |
|
115 | 115 | $sms['DATA']['DYNAMIC'] = count($parameters); |
116 | 116 | } |
117 | 117 |