| @@ -25,13 +25,13 @@ discard block | ||
| 25 | 25 | public $scheduled = ''; | 
| 26 | 26 | |
| 27 | 27 | /** @var array */ | 
| 28 | - public $payload = []; | |
| 28 | + public $payload = [ ]; | |
| 29 | 29 | |
| 30 | 30 | /** @var array */ | 
| 31 | - public $iosData = []; | |
| 31 | + public $iosData = [ ]; | |
| 32 | 32 | |
| 33 | 33 | /** @var array */ | 
| 34 | - public $androidData = []; | |
| 34 | + public $androidData = [ ]; | |
| 35 | 35 | |
| 36 | 36 | /** | 
| 37 | 37 | * @param array $data | 
| @@ -129,7 +129,7 @@ discard block | ||
| 129 | 129 | */ | 
| 130 | 130 | public function scheduled($date) | 
| 131 | 131 |      { | 
| 132 | -        if (! $date instanceof DateTime) { | |
| 132 | +        if (!$date instanceof DateTime) { | |
| 133 | 133 | $date = new DateTime($date); | 
| 134 | 134 | } | 
| 135 | 135 | |
| @@ -152,13 +152,13 @@ discard block | ||
| 152 | 152 | $key = snake_case(substr($method, 3)); | 
| 153 | 153 | |
| 154 | 154 |              if (in_array($key, $this->allowediOSOptions())) { | 
| 155 | - $this->iosData[$key] = $args[0]; | |
| 155 | + $this->iosData[ $key ] = $args[ 0 ]; | |
| 156 | 156 | } | 
| 157 | 157 |          } elseif (substr($method, 0, 7) == 'android') { | 
| 158 | 158 | $key = snake_case(substr($method, 7)); | 
| 159 | 159 | |
| 160 | 160 |              if (in_array($key, $this->allowedAndroidOptions())) { | 
| 161 | - $this->androidData[$key] = $args[0]; | |
| 161 | + $this->androidData[ $key ] = $args[ 0 ]; | |
| 162 | 162 | } | 
| 163 | 163 | } | 
| 164 | 164 | |
| @@ -229,28 +229,28 @@ discard block | ||
| 229 | 229 | ], | 
| 230 | 230 | ]; | 
| 231 | 231 | |
| 232 | -        if (! empty($this->scheduled)) { | |
| 233 | - $data['scheduled'] = $this->scheduled; | |
| 232 | +        if (!empty($this->scheduled)) { | |
| 233 | + $data[ 'scheduled' ] = $this->scheduled; | |
| 234 | 234 | } | 
| 235 | 235 | |
| 236 | -        if (! empty($this->title)) { | |
| 237 | - $data['notification']['title'] = $this->title; | |
| 236 | +        if (!empty($this->title)) { | |
| 237 | + $data[ 'notification' ][ 'title' ] = $this->title; | |
| 238 | 238 | } | 
| 239 | 239 | |
| 240 | -        if (! empty($this->sound)) { | |
| 241 | - $data['notification']['sound'] = $this->sound; | |
| 240 | +        if (!empty($this->sound)) { | |
| 241 | + $data[ 'notification' ][ 'sound' ] = $this->sound; | |
| 242 | 242 | } | 
| 243 | 243 | |
| 244 | -        if (! empty($this->iosData)) { | |
| 245 | - $data['notification']['ios'] = $this->iosData; | |
| 244 | +        if (!empty($this->iosData)) { | |
| 245 | + $data[ 'notification' ][ 'ios' ] = $this->iosData; | |
| 246 | 246 | } | 
| 247 | 247 | |
| 248 | -        if (! empty($this->androidData)) { | |
| 249 | - $data['notification']['android'] = $this->androidData; | |
| 248 | +        if (!empty($this->androidData)) { | |
| 249 | + $data[ 'notification' ][ 'android' ] = $this->androidData; | |
| 250 | 250 | } | 
| 251 | 251 | |
| 252 | -        if (! empty($this->payload)) { | |
| 253 | - $data['notification']['payload'] = $this->payload; | |
| 252 | +        if (!empty($this->payload)) { | |
| 253 | + $data[ 'notification' ][ 'payload' ] = $this->payload; | |
| 254 | 254 | } | 
| 255 | 255 | |
| 256 | 256 | return $data; |