diff --git a/src/WebSocketsServiceProvider.php b/src/WebSocketsServiceProvider.php index aea8e3c..672468e 100644 --- a/src/WebSocketsServiceProvider.php +++ b/src/WebSocketsServiceProvider.php @@ -20,7 +20,6 @@ use Illuminate\Support\Facades\Route; use Illuminate\Support\ServiceProvider; use Psr\Log\LoggerInterface; use Pusher\Pusher; -use React\EventLoop\Factory as LoopFactory; class WebSocketsServiceProvider extends ServiceProvider { diff --git a/tests/Channels/PresenceChannelTest.php b/tests/Channels/PresenceChannelTest.php index 2180a4c..c1e9869 100644 --- a/tests/Channels/PresenceChannelTest.php +++ b/tests/Channels/PresenceChannelTest.php @@ -63,9 +63,9 @@ class PresenceChannelTest extends TestCase json_encode($channelData), ]) ->assertCalledWithArgs('hgetall', [ - '1234:presence-channel' + '1234:presence-channel', ]); - // TODO: This fails somehow + // TODO: This fails somehow // Debugging shows the exact same pattern as good. /* ->assertCalledWithArgs('publish', [ '1234:presence-channel', diff --git a/tests/Mocks/RedisFactory.php b/tests/Mocks/RedisFactory.php index 25962f7..da28b08 100644 --- a/tests/Mocks/RedisFactory.php +++ b/tests/Mocks/RedisFactory.php @@ -2,9 +2,8 @@ namespace BeyondCode\LaravelWebSockets\Tests\Mocks; -use Clue\Redis\Protocol\Factory as ProtocolFactory; use Clue\React\Redis\Factory; -use React\EventLoop\Factory as LoopFactory; +use Clue\Redis\Protocol\Factory as ProtocolFactory; use React\EventLoop\LoopInterface; use React\Socket\ConnectorInterface; @@ -28,7 +27,7 @@ class RedisFactory extends Factory } /** - * Create Redis client connected to address of given redis instance + * Create Redis client connected to address of given redis instance. * * @param string $target * @return Client