@@ -15,13 +15,13 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | public function register() |
| 17 | 17 | { |
| 18 | - $this->app->afterResolving(ChannelManager::class, function (ChannelManager $channels) { |
|
| 19 | - $channels->extend('pushwoosh', function ($app) { |
|
| 18 | + $this->app->afterResolving(ChannelManager::class, function(ChannelManager $channels) { |
|
| 19 | + $channels->extend('pushwoosh', function($app) { |
|
| 20 | 20 | return $app[PushwooshChannel::class]; |
| 21 | 21 | }); |
| 22 | 22 | }); |
| 23 | 23 | |
| 24 | - $this->app->bindIf(Pushwoosh::class, function ($app) { |
|
| 24 | + $this->app->bindIf(Pushwoosh::class, function($app) { |
|
| 25 | 25 | return new Pushwoosh( |
| 26 | 26 | new Client(), |
| 27 | 27 | $app['config']['services.pushwoosh.application'], |
@@ -140,7 +140,7 @@ |
||
| 140 | 140 | 'timezone' => $this->timezone, |
| 141 | 141 | ]; |
| 142 | 142 | |
| 143 | - return array_filter($payload, function ($value) { |
|
| 143 | + return array_filter($payload, function($value) { |
|
| 144 | 144 | return $value !== null; |
| 145 | 145 | }); |
| 146 | 146 | } |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | return [ |
| 48 | 48 | 'application' => $this->client->getApplicationCode(), |
| 49 | 49 | 'auth' => $this->client->getApiToken(), |
| 50 | - 'notifications' => $this->messages->map(function (PushwooshMessage $message) { |
|
| 50 | + 'notifications' => $this->messages->map(function(PushwooshMessage $message) { |
|
| 51 | 51 | return $this->stamp($message); |
| 52 | 52 | }), |
| 53 | 53 | ]; |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | */ |
| 75 | 75 | protected function stamp(PushwooshMessage $message) |
| 76 | 76 | { |
| 77 | - $recipients = $this->recipients->reduce(function (array $stamps, PushwooshRecipient $recipient) { |
|
| 77 | + $recipients = $this->recipients->reduce(function(array $stamps, PushwooshRecipient $recipient) { |
|
| 78 | 78 | return array_merge($stamps, $recipient->jsonSerialize()); |
| 79 | 79 | }, []); |
| 80 | 80 | |