@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | /** |
| 39 | 39 | * Get apple clients node. |
| 40 | 40 | * |
| 41 | - * @return TreeBuilder |
|
| 41 | + * @return \Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition |
|
| 42 | 42 | */ |
| 43 | 43 | protected function addAppleClientsNode() |
| 44 | 44 | { |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | /** |
| 74 | 74 | * Get Google Cloud Messaging clients node. |
| 75 | 75 | * |
| 76 | - * @return TreeBuilder |
|
| 76 | + * @return \Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition |
|
| 77 | 77 | */ |
| 78 | 78 | protected function addGcmClientsNode() |
| 79 | 79 | { |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | */ |
| 55 | 55 | public function getApnsClients() |
| 56 | 56 | { |
| 57 | - return $this->filter(function (ClientInterface $client) { |
|
| 57 | + return $this->filter(function(ClientInterface $client) { |
|
| 58 | 58 | return $client instanceof ApnsClient; |
| 59 | 59 | }); |
| 60 | 60 | } |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | */ |
| 67 | 67 | public function getGcmClients() |
| 68 | 68 | { |
| 69 | - return $this->filter(function (ClientInterface $client) { |
|
| 69 | + return $this->filter(function(ClientInterface $client) { |
|
| 70 | 70 | return $client instanceof GcmClient; |
| 71 | 71 | }); |
| 72 | 72 | } |
@@ -52,12 +52,12 @@ |
||
| 52 | 52 | ; |
| 53 | 53 | |
| 54 | 54 | // Set optional logger |
| 55 | - if(!empty($services['logger'])) { |
|
| 55 | + if (!empty($services['logger'])) { |
|
| 56 | 56 | $client->addMethodCall('setLogger', array(new Reference($services['logger']))); |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | // Set optional profiler |
| 60 | - if(!empty($services['profiler'])) { |
|
| 60 | + if (!empty($services['profiler'])) { |
|
| 61 | 61 | $client->addMethodCall('setClientProfiler', array(new Reference($services['profiler']))); |
| 62 | 62 | } |
| 63 | 63 | } |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | throw new \RuntimeException('You must configure at least one APNS client to be able to push messages with this command.'); |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | - $apnsClients->forAll(function ($key, ApnsClient $client) use ($message, $output) { |
|
| 59 | + $apnsClients->forAll(function($key, ApnsClient $client) use ($message, $output) { |
|
| 60 | 60 | $output->writeln(sprintf('Sending message "%s" using APNS [%s] client...', $message->getSimpleAlert(), $key)); |
| 61 | 61 | $client->push($message); |
| 62 | 62 | |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | throw new \RuntimeException('You must configure at least one GCM client to be able to push messages with this command.'); |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | - $gcmClients->forAll(function ($key, GcmClient $client) use ($message, $output) { |
|
| 61 | + $gcmClients->forAll(function($key, GcmClient $client) use ($message, $output) { |
|
| 62 | 62 | $output->writeln(sprintf('Sending message "%s" using GCM [%s] client...', $message->getNotificationBody(), $key)); |
| 63 | 63 | $client->push($message); |
| 64 | 64 | |