@@ -3,8 +3,8 @@ |
||
| 3 | 3 | namespace NotificationChannels\IonicPushNotifications; |
| 4 | 4 | |
| 5 | 5 | use GuzzleHttp\Client; |
| 6 | -use NotificationChannels\IonicPushNotifications\Exceptions\CouldNotSendNotification; |
|
| 7 | 6 | use Illuminate\Notifications\Notification; |
| 7 | +use NotificationChannels\IonicPushNotifications\Exceptions\CouldNotSendNotification; |
|
| 8 | 8 | use NotificationChannels\IonicPushNotifications\Exceptions\InvalidConfiguration; |
| 9 | 9 | |
| 10 | 10 | class IonicPushChannel |
@@ -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 | |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | |
| 46 | 46 | $ionicPushData = array_merge( |
| 47 | 47 | $notification->toIonicPush($notifiable)->toArray(), |
| 48 | - ['tokens' => $routing->first()] |
|
| 48 | + [ 'tokens' => $routing->first() ] |
|
| 49 | 49 | ); |
| 50 | 50 | |
| 51 | 51 | $response = $this->client->post(self::API_ENDPOINT, [ |
@@ -12,7 +12,7 @@ discard block |
||
| 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 | } |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | /** |
| 21 | 21 | * @param array $data |
| 22 | 22 | */ |
| 23 | - public function __construct($data = []) |
|
| 23 | + public function __construct($data = [ ]) |
|
| 24 | 24 | { |
| 25 | 25 | $this->data = $data; |
| 26 | 26 | } |