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 Illuminate\Support\Str;
use Ratchet\ConnectionInterface; use Ratchet\ConnectionInterface;
use React\EventLoop\LoopInterface; use React\EventLoop\LoopInterface;
use React\Promise\FulfilledPromise;
use React\Promise\PromiseInterface; use React\Promise\PromiseInterface;
use stdClass; use stdClass;

View File

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

View File

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