Completed
Pull Request — master (#90)
by
unknown
01:57
created
src/WebSockets/Messages/PusherClientMessage.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace BeyondCode\LaravelWebSockets\WebSockets\Messages;
4 4
 
5
-use stdClass;
6
-use Ratchet\ConnectionInterface;
7 5
 use BeyondCode\LaravelWebSockets\Dashboard\DashboardLogger;
8 6
 use BeyondCode\LaravelWebSockets\WebSockets\Channels\ChannelManager;
7
+use Ratchet\ConnectionInterface;
8
+use stdClass;
9 9
 
10 10
 class PusherClientMessage implements PusherMessage
11 11
 {
Please login to merge, or discard this patch.
src/WebSockets/WebSocketHandler.php 1 patch
Unused Use Statements   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,18 +2,18 @@
 block discarded – undo
2 2
 
3 3
 namespace BeyondCode\LaravelWebSockets\WebSockets;
4 4
 
5
-use Exception;
6
-use Ratchet\ConnectionInterface;
7 5
 use BeyondCode\LaravelWebSockets\Apps\App;
8
-use Ratchet\RFC6455\Messaging\MessageInterface;
9
-use Ratchet\WebSocket\MessageComponentInterface;
10
-use BeyondCode\LaravelWebSockets\QueryParameters;
11
-use BeyondCode\LaravelWebSockets\Facades\StatisticsLogger;
12 6
 use BeyondCode\LaravelWebSockets\Dashboard\DashboardLogger;
7
+use BeyondCode\LaravelWebSockets\Facades\StatisticsLogger;
8
+use BeyondCode\LaravelWebSockets\QueryParameters;
13 9
 use BeyondCode\LaravelWebSockets\WebSockets\Channels\ChannelManager;
14 10
 use BeyondCode\LaravelWebSockets\WebSockets\Exceptions\UnknownAppKey;
15 11
 use BeyondCode\LaravelWebSockets\WebSockets\Exceptions\WebSocketException;
16 12
 use BeyondCode\LaravelWebSockets\WebSockets\Messages\PusherMessageFactory;
13
+use Exception;
14
+use Ratchet\ConnectionInterface;
15
+use Ratchet\RFC6455\Messaging\MessageInterface;
16
+use Ratchet\WebSocket\MessageComponentInterface;
17 17
 
18 18
 class WebSocketHandler implements MessageComponentInterface
19 19
 {
Please login to merge, or discard this patch.
src/Console/StartWebSocketServer.php 1 patch
Unused Use Statements   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -2,23 +2,23 @@
 block discarded – undo
2 2
 
3 3
 namespace BeyondCode\LaravelWebSockets\Console;
4 4
 
5
-use React\Socket\Connector;
6
-use Clue\React\Buzz\Browser;
7
-use Illuminate\Console\Command;
8
-use React\Dns\Config\Config as DnsConfig;
9
-use React\EventLoop\Factory as LoopFactory;
10
-use React\Dns\Resolver\Factory as DnsFactory;
11
-use React\Dns\Resolver\Resolver as ReactDnsResolver;
12
-use BeyondCode\LaravelWebSockets\Statistics\DnsResolver;
13 5
 use BeyondCode\LaravelWebSockets\Facades\StatisticsLogger;
14 6
 use BeyondCode\LaravelWebSockets\Facades\WebSocketsRouter;
15
-use BeyondCode\LaravelWebSockets\Server\Logger\HttpLogger;
16
-use BeyondCode\LaravelWebSockets\Server\WebSocketServerFactory;
17 7
 use BeyondCode\LaravelWebSockets\Server\Logger\ConnectionLogger;
8
+use BeyondCode\LaravelWebSockets\Server\Logger\HttpLogger;
18 9
 use BeyondCode\LaravelWebSockets\Server\Logger\WebsocketsLogger;
19
-use BeyondCode\LaravelWebSockets\WebSockets\Channels\ChannelManager;
10
+use BeyondCode\LaravelWebSockets\Server\WebSocketServerFactory;
11
+use BeyondCode\LaravelWebSockets\Statistics\DnsResolver;
20 12
 use BeyondCode\LaravelWebSockets\Statistics\Logger\HttpStatisticsLogger;
21 13
 use BeyondCode\LaravelWebSockets\Statistics\Logger\StatisticsLogger as StatisticsLoggerInterface;
14
+use BeyondCode\LaravelWebSockets\WebSockets\Channels\ChannelManager;
15
+use Clue\React\Buzz\Browser;
16
+use Illuminate\Console\Command;
17
+use React\Dns\Config\Config as DnsConfig;
18
+use React\Dns\Resolver\Factory as DnsFactory;
19
+use React\Dns\Resolver\Resolver as ReactDnsResolver;
20
+use React\EventLoop\Factory as LoopFactory;
21
+use React\Socket\Connector;
22 22
 
23 23
 class StartWebSocketServer extends Command
24 24
 {
Please login to merge, or discard this patch.
src/Statistics/Events/StatisticsUpdated.php 1 patch
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@
 block discarded – undo
2 2
 
3 3
 namespace BeyondCode\LaravelWebSockets\Statistics\Events;
4 4
 
5
-use Illuminate\Queue\SerializesModels;
6
-use Illuminate\Broadcasting\PrivateChannel;
7
-use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
8 5
 use BeyondCode\LaravelWebSockets\Dashboard\DashboardLogger;
9 6
 use BeyondCode\LaravelWebSockets\Statistics\Models\WebSocketsStatisticsEntry;
7
+use Illuminate\Broadcasting\PrivateChannel;
8
+use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
9
+use Illuminate\Queue\SerializesModels;
10 10
 
11 11
 class StatisticsUpdated implements ShouldBroadcast
12 12
 {
Please login to merge, or discard this patch.
src/HttpApi/Controllers/Controller.php 1 patch
Unused Use Statements   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -2,20 +2,20 @@
 block discarded – undo
2 2
 
3 3
 namespace BeyondCode\LaravelWebSockets\HttpApi\Controllers;
4 4
 
5
+use BeyondCode\LaravelWebSockets\Apps\App;
6
+use BeyondCode\LaravelWebSockets\QueryParameters;
7
+use BeyondCode\LaravelWebSockets\WebSockets\Channels\ChannelManager;
5 8
 use Exception;
6
-use Pusher\Pusher;
7
-use Illuminate\Http\Request;
8 9
 use GuzzleHttp\Psr7\Response;
9
-use Ratchet\ConnectionInterface;
10
-use Illuminate\Http\JsonResponse;
11 10
 use GuzzleHttp\Psr7\ServerRequest;
12
-use Ratchet\Http\HttpServerInterface;
11
+use Illuminate\Http\JsonResponse;
12
+use Illuminate\Http\Request;
13 13
 use Psr\Http\Message\RequestInterface;
14
-use BeyondCode\LaravelWebSockets\Apps\App;
15
-use BeyondCode\LaravelWebSockets\QueryParameters;
16
-use Symfony\Component\HttpKernel\Exception\HttpException;
14
+use Pusher\Pusher;
15
+use Ratchet\ConnectionInterface;
16
+use Ratchet\Http\HttpServerInterface;
17 17
 use Symfony\Bridge\PsrHttpMessage\Factory\HttpFoundationFactory;
18
-use BeyondCode\LaravelWebSockets\WebSockets\Channels\ChannelManager;
18
+use Symfony\Component\HttpKernel\Exception\HttpException;
19 19
 
20 20
 abstract class Controller implements HttpServerInterface
21 21
 {
Please login to merge, or discard this patch.
src/WebSockets/Channels/ChannelManagers/ArrayChannelManager.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@
 block discarded – undo
2 2
 
3 3
 namespace BeyondCode\LaravelWebSockets\WebSockets\Channels\ChannelManagers;
4 4
 
5
-use Ratchet\ConnectionInterface;
6 5
 use BeyondCode\LaravelWebSockets\WebSockets\Channels\Channel;
7 6
 use BeyondCode\LaravelWebSockets\WebSockets\Channels\ChannelManager;
8
-use BeyondCode\LaravelWebSockets\WebSockets\Channels\PrivateChannel;
9 7
 use BeyondCode\LaravelWebSockets\WebSockets\Channels\PresenceChannel;
8
+use BeyondCode\LaravelWebSockets\WebSockets\Channels\PrivateChannel;
9
+use Ratchet\ConnectionInterface;
10 10
 
11 11
 class ArrayChannelManager implements ChannelManager
12 12
 {
Please login to merge, or discard this patch.
src/Database/Http/Controllers/AppsController.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      * Store a newly created resource in storage.
42 42
      *
43 43
      * @param  StoreWebSocketsApp  $request
44
-     * @return \Illuminate\Http\Response
44
+     * @return \Illuminate\Http\RedirectResponse
45 45
      */
46 46
     public function store(StoreWebSocketsApp $request)
47 47
     {
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      *
75 75
      * @param  StoreWebSocketsApp  $request
76 76
      * @param  App  $app
77
-     * @return \Illuminate\Http\Response
77
+     * @return \Illuminate\Http\RedirectResponse
78 78
      */
79 79
     public function update(StoreWebSocketsApp $request, App $app)
80 80
     {
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      * Remove the specified resource from storage.
92 92
      *
93 93
      * @param  App  $app
94
-     * @return \Illuminate\Http\Response
94
+     * @return \Illuminate\Http\RedirectResponse
95 95
      */
96 96
     public function destroy(App $app)
97 97
     {
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace BeyondCode\LaravelWebSockets\Database\Http\Controllers;
4 4
 
5
-use Illuminate\Http\Request;
6
-use BeyondCode\LaravelWebSockets\Database\Models\App;
7 5
 use BeyondCode\LaravelWebSockets\Database\Http\Requests\StoreWebSocketsApp;
6
+use BeyondCode\LaravelWebSockets\Database\Models\App;
7
+use Illuminate\Http\Request;
8 8
 
9 9
 class AppsController
10 10
 {
Please login to merge, or discard this patch.
src/Database/Console/AppCreate.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace BeyondCode\LaravelWebSockets\Database\Console;
4 4
 
5
-use Illuminate\Console\Command;
6 5
 use BeyondCode\LaravelWebSockets\Database\Models\App;
6
+use Illuminate\Console\Command;
7 7
 
8 8
 class AppCreate extends Command
9 9
 {
Please login to merge, or discard this patch.
src/WebSocketsServiceProvider.php 1 patch
Unused Use Statements   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -2,21 +2,21 @@
 block discarded – undo
2 2
 
3 3
 namespace BeyondCode\LaravelWebSockets;
4 4
 
5
-use Illuminate\Support\Facades\Gate;
6
-use Illuminate\Support\Facades\Route;
7
-use Illuminate\Support\ServiceProvider;
8
-use BeyondCode\LaravelWebSockets\Server\Router;
9 5
 use BeyondCode\LaravelWebSockets\Apps\AppProvider;
10
-use BeyondCode\LaravelWebSockets\WebSockets\Channels\ChannelManager;
11
-use BeyondCode\LaravelWebSockets\Dashboard\Http\Controllers\SendMessage;
12
-use BeyondCode\LaravelWebSockets\Dashboard\Http\Controllers\ShowDashboard;
13
-use BeyondCode\LaravelWebSockets\Database\Http\Controllers\AppsController;
14 6
 use BeyondCode\LaravelWebSockets\Dashboard\Http\Controllers\AuthenticateDashboard;
15 7
 use BeyondCode\LaravelWebSockets\Dashboard\Http\Controllers\DashboardApiController;
16
-use BeyondCode\LaravelWebSockets\WebSockets\Channels\ChannelManagers\ArrayChannelManager;
8
+use BeyondCode\LaravelWebSockets\Dashboard\Http\Controllers\SendMessage;
9
+use BeyondCode\LaravelWebSockets\Dashboard\Http\Controllers\ShowDashboard;
17 10
 use BeyondCode\LaravelWebSockets\Dashboard\Http\Middleware\Authorize as AuthorizeDashboard;
18
-use BeyondCode\LaravelWebSockets\Statistics\Http\Middleware\Authorize as AuthorizeStatistics;
11
+use BeyondCode\LaravelWebSockets\Database\Http\Controllers\AppsController;
12
+use BeyondCode\LaravelWebSockets\Server\Router;
19 13
 use BeyondCode\LaravelWebSockets\Statistics\Http\Controllers\WebSocketStatisticsEntriesController;
14
+use BeyondCode\LaravelWebSockets\Statistics\Http\Middleware\Authorize as AuthorizeStatistics;
15
+use BeyondCode\LaravelWebSockets\WebSockets\Channels\ChannelManager;
16
+use BeyondCode\LaravelWebSockets\WebSockets\Channels\ChannelManagers\ArrayChannelManager;
17
+use Illuminate\Support\Facades\Gate;
18
+use Illuminate\Support\Facades\Route;
19
+use Illuminate\Support\ServiceProvider;
20 20
 
21 21
 class WebSocketsServiceProvider extends ServiceProvider
22 22
 {
Please login to merge, or discard this patch.