Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit 60c21f3

Browse files
authored
Apply fixes from StyleCI (#543)
1 parent 5cb2ee9 commit 60c21f3

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

src/ChannelManagers/LocalChannelManager.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
use Illuminate\Support\Str;
1111
use Ratchet\ConnectionInterface;
1212
use React\EventLoop\LoopInterface;
13-
use React\Promise\FulfilledPromise;
1413
use React\Promise\PromiseInterface;
1514
use stdClass;
1615

src/ChannelManagers/RedisChannelManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public function unsubscribeFromChannel(ConnectionInterface $connection, string $
202202
->then(function () use ($connection, $channelName) {
203203
return $this->removeChannelFromSet($connection->app->id, $channelName);
204204
})
205-
->then(function () use($connection) {
205+
->then(function () use ($connection) {
206206
return $this->removeConnectionFromSet($connection);
207207
})
208208
->then(function () use ($connection, $channelName, $payload) {

src/Channels/PresenceChannel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function subscribe(ConnectionInterface $connection, stdClass $payload): b
2828

2929
$this->channelManager
3030
->userJoinedPresenceChannel($connection, $user, $this->getName(), $payload)
31-
->then(function () use ($connection, $user) {
31+
->then(function () use ($connection) {
3232
$this->channelManager
3333
->getChannelMembers($connection->app->id, $this->getName())
3434
->then(function ($users) use ($connection) {

src/Statistics/Collectors/MemoryCollector.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use BeyondCode\LaravelWebSockets\Facades\StatisticsStore;
88
use BeyondCode\LaravelWebSockets\Helpers;
99
use BeyondCode\LaravelWebSockets\Statistics\Statistic;
10-
use React\Promise\FulfilledPromise;
1110
use React\Promise\PromiseInterface;
1211

1312
class MemoryCollector implements StatisticsCollector

0 commit comments

Comments
 (0)