Apply fixes from StyleCI (#543)

This commit is contained in:
rennokki 2020-09-19 11:16:46 +00:00 committed by GitHub
parent 5cb2ee9fce
commit 60c21f3f7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 2 additions and 4 deletions

View File

@ -10,7 +10,6 @@ use BeyondCode\LaravelWebSockets\Helpers;
use Illuminate\Support\Str;
use Ratchet\ConnectionInterface;
use React\EventLoop\LoopInterface;
use React\Promise\FulfilledPromise;
use React\Promise\PromiseInterface;
use stdClass;

View File

@ -202,7 +202,7 @@ class RedisChannelManager extends LocalChannelManager
->then(function () use ($connection, $channelName) {
return $this->removeChannelFromSet($connection->app->id, $channelName);
})
->then(function () use($connection) {
->then(function () use ($connection) {
return $this->removeConnectionFromSet($connection);
})
->then(function () use ($connection, $channelName, $payload) {

View File

@ -28,7 +28,7 @@ class PresenceChannel extends PrivateChannel
$this->channelManager
->userJoinedPresenceChannel($connection, $user, $this->getName(), $payload)
->then(function () use ($connection, $user) {
->then(function () use ($connection) {
$this->channelManager
->getChannelMembers($connection->app->id, $this->getName())
->then(function ($users) use ($connection) {

View File

@ -7,7 +7,6 @@ use BeyondCode\LaravelWebSockets\Contracts\StatisticsCollector;
use BeyondCode\LaravelWebSockets\Facades\StatisticsStore;
use BeyondCode\LaravelWebSockets\Helpers;
use BeyondCode\LaravelWebSockets\Statistics\Statistic;
use React\Promise\FulfilledPromise;
use React\Promise\PromiseInterface;
class MemoryCollector implements StatisticsCollector