From f83a66900027882d6ce5c356c4aae08362f52270 Mon Sep 17 00:00:00 2001 From: rennokki Date: Tue, 18 Aug 2020 20:21:44 +0300 Subject: [PATCH] Apply fixes from StyleCI (#470) --- src/Apps/AppManager.php | 2 +- src/Apps/ConfigAppManager.php | 2 -- src/Server/Logger/ConnectionLogger.php | 2 +- src/Server/Logger/HttpLogger.php | 2 +- src/Server/Logger/WebsocketsLogger.php | 2 +- src/Statistics/Events/StatisticsUpdated.php | 2 +- 6 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/Apps/AppManager.php b/src/Apps/AppManager.php index ef8cb860be..03c0c9ee0a 100644 --- a/src/Apps/AppManager.php +++ b/src/Apps/AppManager.php @@ -4,7 +4,7 @@ interface AppManager { - /** + /** * Get all apps. * * @return array[\BeyondCode\LaravelWebSockets\Apps\App] diff --git a/src/Apps/ConfigAppManager.php b/src/Apps/ConfigAppManager.php index c029d71b2b..3136ad65c5 100644 --- a/src/Apps/ConfigAppManager.php +++ b/src/Apps/ConfigAppManager.php @@ -2,8 +2,6 @@ namespace BeyondCode\LaravelWebSockets\Apps; -use Illuminate\Support\Collection; - class ConfigAppManager implements AppManager { /** diff --git a/src/Server/Logger/ConnectionLogger.php b/src/Server/Logger/ConnectionLogger.php index e87c78c217..4a1b02d721 100644 --- a/src/Server/Logger/ConnectionLogger.php +++ b/src/Server/Logger/ConnectionLogger.php @@ -17,7 +17,7 @@ class ConnectionLogger extends Logger implements ConnectionInterface * Create a new instance and add a connection to watch. * * @param \Ratchet\ConnectionInterface $connection - * @return Self + * @return self */ public static function decorate(ConnectionInterface $app): self { diff --git a/src/Server/Logger/HttpLogger.php b/src/Server/Logger/HttpLogger.php index 4ff6e12032..6b5f1726a0 100644 --- a/src/Server/Logger/HttpLogger.php +++ b/src/Server/Logger/HttpLogger.php @@ -19,7 +19,7 @@ class HttpLogger extends Logger implements MessageComponentInterface * Create a new instance and add the app to watch. * * @param \Ratchet\MessageComponentInterface $app - * @return Self + * @return self */ public static function decorate(MessageComponentInterface $app): self { diff --git a/src/Server/Logger/WebsocketsLogger.php b/src/Server/Logger/WebsocketsLogger.php index 7d600b148b..bc206c8417 100644 --- a/src/Server/Logger/WebsocketsLogger.php +++ b/src/Server/Logger/WebsocketsLogger.php @@ -21,7 +21,7 @@ class WebsocketsLogger extends Logger implements MessageComponentInterface * Create a new instance and add the app to watch. * * @param \Ratchet\MessageComponentInterface $app - * @return Self + * @return self */ public static function decorate(MessageComponentInterface $app): self { diff --git a/src/Statistics/Events/StatisticsUpdated.php b/src/Statistics/Events/StatisticsUpdated.php index 2345f96aec..4f82bb7ddc 100644 --- a/src/Statistics/Events/StatisticsUpdated.php +++ b/src/Statistics/Events/StatisticsUpdated.php @@ -14,7 +14,7 @@ class StatisticsUpdated implements ShouldBroadcast use SerializesModels; /** - * The statistic instance that got updated + * The statistic instance that got updated. * * @var \BeyondCode\LaravelWebSockets\Statistics\Models\WebSocketsStatisticsEntry */