@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | $this->additionalParams = [ |
| 107 | 107 | |
| 108 | 108 | 'key_id' => config('pushmix.subscription_id'), |
| 109 | - ]; |
|
| 109 | + ]; |
|
| 110 | 110 | |
| 111 | 111 | return $this; |
| 112 | 112 | } |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | $this->additionalParams = [ |
| 123 | 123 | |
| 124 | 124 | 'key_id' => $key_id, |
| 125 | - ]; |
|
| 125 | + ]; |
|
| 126 | 126 | |
| 127 | 127 | return $this; |
| 128 | 128 | } |
@@ -204,10 +204,10 @@ discard block |
||
| 204 | 204 | } |
| 205 | 205 | |
| 206 | 206 | switch ($cnt) { |
| 207 | - case 0: |
|
| 207 | + case 0: |
|
| 208 | 208 | array_push($this->buttons, [ |
| 209 | - 'action_title_one' => $title, |
|
| 210 | - 'action_url_one' => $url, |
|
| 209 | + 'action_title_one' => $title, |
|
| 210 | + 'action_url_one' => $url, |
|
| 211 | 211 | ]); |
| 212 | 212 | break; |
| 213 | 213 | |
@@ -215,8 +215,8 @@ discard block |
||
| 215 | 215 | array_push($this->buttons, [ |
| 216 | 216 | 'action_title_two' => $title, |
| 217 | 217 | 'action_url_two' => $url, |
| 218 | - ]); |
|
| 219 | - break; |
|
| 218 | + ]); |
|
| 219 | + break; |
|
| 220 | 220 | |
| 221 | 221 | } |
| 222 | 222 | |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | */ |
| 53 | 53 | public function __construct($to = '') |
| 54 | 54 | { |
| 55 | - $this->to = ! empty($to) ? $to : 'all'; |
|
| 55 | + $this->to = !empty($to) ? $to : 'all'; |
|
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | /***/ |
@@ -269,23 +269,23 @@ discard block |
||
| 269 | 269 | * Set Optional Parameters |
| 270 | 270 | * @var [type] |
| 271 | 271 | */ |
| 272 | - if (! empty($this->priority)) { |
|
| 272 | + if (!empty($this->priority)) { |
|
| 273 | 273 | $message['priority'] = $this->priority; |
| 274 | 274 | } |
| 275 | 275 | |
| 276 | - if (! empty($this->time_to_live)) { |
|
| 276 | + if (!empty($this->time_to_live)) { |
|
| 277 | 277 | $message['time_to_live'] = $this->time_to_live; |
| 278 | 278 | } |
| 279 | 279 | |
| 280 | - if (! empty($this->icon)) { |
|
| 280 | + if (!empty($this->icon)) { |
|
| 281 | 281 | $message['icon'] = $this->icon; |
| 282 | 282 | } |
| 283 | 283 | |
| 284 | - if (! empty($this->badge)) { |
|
| 284 | + if (!empty($this->badge)) { |
|
| 285 | 285 | $message['badge'] = $this->badge; |
| 286 | 286 | } |
| 287 | 287 | |
| 288 | - if (! empty($this->image)) { |
|
| 288 | + if (!empty($this->image)) { |
|
| 289 | 289 | $message['image'] = $this->image; |
| 290 | 290 | } |
| 291 | 291 | |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | public function send($notifiable, Notification $notification) |
| 29 | 29 | { |
| 30 | - if (! $to = $notifiable->routeNotificationFor('Pushmix')) { |
|
| 30 | + if (!$to = $notifiable->routeNotificationFor('Pushmix')) { |
|
| 31 | 31 | return; |
| 32 | 32 | } |
| 33 | 33 | |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | */ |
| 21 | 21 | public function register() |
| 22 | 22 | { |
| 23 | - $this->app->singleton('pushmix', function () { |
|
| 23 | + $this->app->singleton('pushmix', function() { |
|
| 24 | 24 | return new PushmixClient(); |
| 25 | 25 | }); |
| 26 | 26 | } |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | |
| 48 | 48 | $this->app->when(PushmixChannel::class) |
| 49 | 49 | ->needs(PushmixClient::class) |
| 50 | - ->give(function () { |
|
| 50 | + ->give(function() { |
|
| 51 | 51 | if (is_null(config('pushmix.subscription_id', null))) { |
| 52 | 52 | throw InvalidConfiguration::configurationNotSet(); |
| 53 | 53 | } |