Skip to content

Commit 18db558

Browse files
committed
PSR-2
1 parent afde420 commit 18db558

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/AsyncClient.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ public function __construct(LoopInterface $loop, string $app, Transport $transpo
4545
$this->app .
4646
'?client=wyrihaximus-php-pusher-client&version=0.0.1&protocol=7'
4747
;
48-
$this->client = (new Client($this->url))->shareReplay(1); //Only create one connection and share the most recent among all subscriber
48+
//Only create one connection and share the most recent among all subscriber
49+
$this->client = (new Client($this->url))->shareReplay(1);
4950
$this->messages = $this->client
5051
->flatMap(function (MessageSubject $ms) {
5152
return $ms;
@@ -59,7 +60,13 @@ public function channel(string $channel): ObservableInterface
5960
return isset($event->channel) && $event->channel == $channel;
6061
});
6162

62-
$events = Observable::create(function (ObserverInterface $observer, SchedulerInterface $scheduler) use ($channel, $channelMessages) {
63+
$events = Observable::create(function (
64+
ObserverInterface $observer,
65+
SchedulerInterface $scheduler
66+
) use (
67+
$channel,
68+
$channelMessages
69+
) {
6370

6471
$subscription = $channelMessages
6572
->filter(function ($msg) {

0 commit comments

Comments
 (0)