@@ -204,7 +204,7 @@ |
||
| 204 | 204 | * @throws \InvalidArgumentException |
| 205 | 205 | * @throws \RuntimeException |
| 206 | 206 | * |
| 207 | - * @return \ZendService\Apple\Apns\Message |
|
| 207 | + * @return \Generator |
|
| 208 | 208 | */ |
| 209 | 209 | protected function getPushMessages(Notification $notification) |
| 210 | 210 | { |
@@ -211,7 +211,7 @@ |
||
| 211 | 211 | /* @var \Jgut\Tify\Receiver\ApnsReceiver[] $receivers */ |
| 212 | 212 | $receivers = array_filter( |
| 213 | 213 | $notification->getReceivers(), |
| 214 | - function ($receiver) { |
|
| 214 | + function($receiver) { |
|
| 215 | 215 | return $receiver instanceof ApnsReceiver; |
| 216 | 216 | } |
| 217 | 217 | ); |
@@ -139,7 +139,7 @@ |
||
| 139 | 139 | * @throws \InvalidArgumentException |
| 140 | 140 | * @throws \RuntimeException |
| 141 | 141 | * |
| 142 | - * @return \ZendService\Google\Gcm\Message |
|
| 142 | + * @return \Generator |
|
| 143 | 143 | */ |
| 144 | 144 | protected function getPushMessages(Notification $notification) |
| 145 | 145 | { |
@@ -146,13 +146,13 @@ |
||
| 146 | 146 | /* @var \Jgut\Tify\Receiver\GcmReceiver[] $receivers */ |
| 147 | 147 | $receivers = array_filter( |
| 148 | 148 | $notification->getReceivers(), |
| 149 | - function ($receiver) { |
|
| 149 | + function($receiver) { |
|
| 150 | 150 | return $receiver instanceof GcmReceiver; |
| 151 | 151 | } |
| 152 | 152 | ); |
| 153 | 153 | |
| 154 | 154 | $tokens = array_map( |
| 155 | - function ($receiver) { |
|
| 155 | + function($receiver) { |
|
| 156 | 156 | /* @var \Jgut\Tify\Receiver\GcmReceiver $receiver */ |
| 157 | 157 | return $receiver->getToken(); |
| 158 | 158 | }, |
@@ -171,7 +171,7 @@ |
||
| 171 | 171 | /** |
| 172 | 172 | * Retrieve result status message. |
| 173 | 173 | * |
| 174 | - * @return string|null |
|
| 174 | + * @return string |
|
| 175 | 175 | */ |
| 176 | 176 | public function getStatusMessage() |
| 177 | 177 | { |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | */ |
| 40 | 40 | public function testPushClient() |
| 41 | 41 | { |
| 42 | - $client = $this->builder->buildPushClient(__DIR__ . '/../../../files/apns_certificate.pem'); |
|
| 42 | + $client = $this->builder->buildPushClient(__DIR__.'/../../../files/apns_certificate.pem'); |
|
| 43 | 43 | |
| 44 | 44 | self::assertInstanceOf(MessageClient::class, $client); |
| 45 | 45 | } |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | */ |
| 52 | 52 | public function testFeedbackClient() |
| 53 | 53 | { |
| 54 | - $client = $this->builder->buildFeedbackClient(__DIR__ . '/../../../files/apns_certificate.pem'); |
|
| 54 | + $client = $this->builder->buildFeedbackClient(__DIR__.'/../../../files/apns_certificate.pem'); |
|
| 55 | 55 | |
| 56 | 56 | self::assertInstanceOf(FeedbackClient::class, $client); |
| 57 | 57 | } |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | $builder->expects(self::any())->method('buildPushMessage')->will(self::returnValue($message)); |
| 54 | 54 | |
| 55 | 55 | $this->adapter = new ApnsAdapter( |
| 56 | - ['certificate' => __DIR__ . '/../../../files/apns_certificate.pem'], |
|
| 56 | + ['certificate' => __DIR__.'/../../../files/apns_certificate.pem'], |
|
| 57 | 57 | false, |
| 58 | 58 | $builder |
| 59 | 59 | ); |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | /** @var \Jgut\Tify\Adapter\SendAdapter[] $pushAdapters */ |
| 129 | 129 | $pushAdapters = array_filter( |
| 130 | 130 | $this->adapters->toArray(), |
| 131 | - function (AbstractAdapter $adapter) { |
|
| 131 | + function(AbstractAdapter $adapter) { |
|
| 132 | 132 | return $adapter instanceof SendAdapter; |
| 133 | 133 | } |
| 134 | 134 | ); |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | } |
| 145 | 145 | |
| 146 | 146 | $return = []; |
| 147 | - array_walk_recursive($results, function ($current) use (&$return) { |
|
| 147 | + array_walk_recursive($results, function($current) use (&$return) { |
|
| 148 | 148 | $return[] = $current; |
| 149 | 149 | }); |
| 150 | 150 | |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | /** @var \Jgut\Tify\Adapter\FeedbackAdapter[] $feedbackAdapters */ |
| 164 | 164 | $feedbackAdapters = array_filter( |
| 165 | 165 | $this->adapters->toArray(), |
| 166 | - function (AbstractAdapter $adapter) { |
|
| 166 | + function(AbstractAdapter $adapter) { |
|
| 167 | 167 | return $adapter instanceof FeedbackAdapter; |
| 168 | 168 | } |
| 169 | 169 | ); |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | } |
| 174 | 174 | |
| 175 | 175 | $return = []; |
| 176 | - array_walk_recursive($results, function ($current) use (&$return) { |
|
| 176 | + array_walk_recursive($results, function($current) use (&$return) { |
|
| 177 | 177 | $return[] = $current; |
| 178 | 178 | }); |
| 179 | 179 | |