@@ -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 |
@@ -60,7 +60,7 @@ |
||
60 | 60 | |
61 | 61 | if (isset($response->response->Messages)) { |
62 | 62 | # Pushwoosh will not assign IDs to messages sent to less than 10 unique devices |
63 | - return array_map(function (string $identifier) { |
|
63 | + return array_map(function(string $identifier) { |
|
64 | 64 | return $identifier !== 'CODE_NOT_AVAILABLE' ? $identifier : null; |
65 | 65 | }, $response->response->Messages); |
66 | 66 | } |