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

Commit edcc2f9

Browse files
authored
Apply fixes from StyleCI (#491)
1 parent 0c8c5c0 commit edcc2f9

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/Statistics/Logger/RedisStatisticsLogger.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ public function connection($appId)
8585
? 1
8686
: max($currentPeakConnectionCount, $currentConnectionCount);
8787

88-
8988
$this->redis->hset($this->getHash($appId), 'peak_connection_count', $peakConnectionCount);
9089
}
9190

@@ -106,7 +105,6 @@ public function disconnection($appId)
106105
? 0
107106
: max($currentPeakConnectionCount, $currentConnectionCount);
108107

109-
110108
$this->redis->hset($this->getHash($appId), 'peak_connection_count', $peakConnectionCount);
111109
}
112110

tests/Statistics/Logger/StatisticsLoggerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
use BeyondCode\LaravelWebSockets\Facades\StatisticsLogger;
66
use BeyondCode\LaravelWebSockets\Statistics\Logger\MemoryStatisticsLogger;
7-
use BeyondCode\LaravelWebSockets\Statistics\Logger\RedisStatisticsLogger;
87
use BeyondCode\LaravelWebSockets\Statistics\Logger\NullStatisticsLogger;
8+
use BeyondCode\LaravelWebSockets\Statistics\Logger\RedisStatisticsLogger;
99
use BeyondCode\LaravelWebSockets\Statistics\Models\WebSocketsStatisticsEntry;
1010
use BeyondCode\LaravelWebSockets\Tests\TestCase;
1111

tests/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
use BeyondCode\LaravelWebSockets\PubSub\ReplicationInterface;
99
use BeyondCode\LaravelWebSockets\Statistics\Drivers\StatisticsDriver;
1010
use BeyondCode\LaravelWebSockets\Tests\Mocks\Connection;
11-
use BeyondCode\LaravelWebSockets\Tests\Mocks\Message;
1211
use BeyondCode\LaravelWebSockets\Tests\Mocks\FakeMemoryStatisticsLogger;
12+
use BeyondCode\LaravelWebSockets\Tests\Mocks\Message;
1313
use BeyondCode\LaravelWebSockets\WebSockets\Channels\ChannelManager;
1414
use GuzzleHttp\Psr7\Request;
1515
use Orchestra\Testbench\BrowserKit\TestCase as BaseTestCase;

0 commit comments

Comments
 (0)