@@ -12,7 +12,7 @@ |
||
| 12 | 12 | * |
| 13 | 13 | * @return static |
| 14 | 14 | */ |
| 15 | - public static function create($data = []) |
|
| 15 | + public static function create($data = [ ]) |
|
| 16 | 16 | { |
| 17 | 17 | return new static($data); |
| 18 | 18 | } |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | */ |
| 34 | 34 | public function send($notifiable, Notification $notification) |
| 35 | 35 | { |
| 36 | - if (! $routing = collect($notifiable->routeNotificationFor('IonicPush'))) { |
|
| 36 | + if (!$routing = collect($notifiable->routeNotificationFor('IonicPush'))) { |
|
| 37 | 37 | return; |
| 38 | 38 | } |
| 39 | 39 | |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | throw InvalidConfiguration::configurationNotSet(); |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | - $ionicPushData = array_merge($notification->toIonicPush($notifiable)->toArray(), ['tokens' => $routing->first()]); |
|
| 46 | + $ionicPushData = array_merge($notification->toIonicPush($notifiable)->toArray(), [ 'tokens' => $routing->first() ]); |
|
| 47 | 47 | |
| 48 | 48 | $response = $this->client->post(self::API_ENDPOINT, [ |
| 49 | 49 | 'body' => json_encode($ionicPushData), |