Apply fixes from StyleCI (#491)
This commit is contained in:
parent
0c8c5c0d9b
commit
edcc2f9582
|
|
@ -85,7 +85,6 @@ class RedisStatisticsLogger implements StatisticsLogger
|
||||||
? 1
|
? 1
|
||||||
: max($currentPeakConnectionCount, $currentConnectionCount);
|
: max($currentPeakConnectionCount, $currentConnectionCount);
|
||||||
|
|
||||||
|
|
||||||
$this->redis->hset($this->getHash($appId), 'peak_connection_count', $peakConnectionCount);
|
$this->redis->hset($this->getHash($appId), 'peak_connection_count', $peakConnectionCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -106,7 +105,6 @@ class RedisStatisticsLogger implements StatisticsLogger
|
||||||
? 0
|
? 0
|
||||||
: max($currentPeakConnectionCount, $currentConnectionCount);
|
: max($currentPeakConnectionCount, $currentConnectionCount);
|
||||||
|
|
||||||
|
|
||||||
$this->redis->hset($this->getHash($appId), 'peak_connection_count', $peakConnectionCount);
|
$this->redis->hset($this->getHash($appId), 'peak_connection_count', $peakConnectionCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,8 @@ namespace BeyondCode\LaravelWebSockets\Tests\Statistics\Controllers;
|
||||||
|
|
||||||
use BeyondCode\LaravelWebSockets\Facades\StatisticsLogger;
|
use BeyondCode\LaravelWebSockets\Facades\StatisticsLogger;
|
||||||
use BeyondCode\LaravelWebSockets\Statistics\Logger\MemoryStatisticsLogger;
|
use BeyondCode\LaravelWebSockets\Statistics\Logger\MemoryStatisticsLogger;
|
||||||
use BeyondCode\LaravelWebSockets\Statistics\Logger\RedisStatisticsLogger;
|
|
||||||
use BeyondCode\LaravelWebSockets\Statistics\Logger\NullStatisticsLogger;
|
use BeyondCode\LaravelWebSockets\Statistics\Logger\NullStatisticsLogger;
|
||||||
|
use BeyondCode\LaravelWebSockets\Statistics\Logger\RedisStatisticsLogger;
|
||||||
use BeyondCode\LaravelWebSockets\Statistics\Models\WebSocketsStatisticsEntry;
|
use BeyondCode\LaravelWebSockets\Statistics\Models\WebSocketsStatisticsEntry;
|
||||||
use BeyondCode\LaravelWebSockets\Tests\TestCase;
|
use BeyondCode\LaravelWebSockets\Tests\TestCase;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,8 @@ use BeyondCode\LaravelWebSockets\PubSub\Drivers\RedisClient;
|
||||||
use BeyondCode\LaravelWebSockets\PubSub\ReplicationInterface;
|
use BeyondCode\LaravelWebSockets\PubSub\ReplicationInterface;
|
||||||
use BeyondCode\LaravelWebSockets\Statistics\Drivers\StatisticsDriver;
|
use BeyondCode\LaravelWebSockets\Statistics\Drivers\StatisticsDriver;
|
||||||
use BeyondCode\LaravelWebSockets\Tests\Mocks\Connection;
|
use BeyondCode\LaravelWebSockets\Tests\Mocks\Connection;
|
||||||
use BeyondCode\LaravelWebSockets\Tests\Mocks\Message;
|
|
||||||
use BeyondCode\LaravelWebSockets\Tests\Mocks\FakeMemoryStatisticsLogger;
|
use BeyondCode\LaravelWebSockets\Tests\Mocks\FakeMemoryStatisticsLogger;
|
||||||
|
use BeyondCode\LaravelWebSockets\Tests\Mocks\Message;
|
||||||
use BeyondCode\LaravelWebSockets\WebSockets\Channels\ChannelManager;
|
use BeyondCode\LaravelWebSockets\WebSockets\Channels\ChannelManager;
|
||||||
use GuzzleHttp\Psr7\Request;
|
use GuzzleHttp\Psr7\Request;
|
||||||
use Orchestra\Testbench\BrowserKit\TestCase as BaseTestCase;
|
use Orchestra\Testbench\BrowserKit\TestCase as BaseTestCase;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue