@@ -24,21 +24,21 @@ class WebSocketsServiceProvider extends ServiceProvider
2424 public function boot ()
2525 {
2626 $ this ->publishes ([
27- __DIR__ . '/../config/websockets.php ' => base_path ('config/websockets.php ' ),
27+ __DIR__ . '/../config/websockets.php ' => base_path ('config/websockets.php ' ),
2828 ], 'config ' );
2929
3030 try {
31- if (!Schema::hasTable ('websockets_statistics_entries ' )) {
31+ if (! Schema::hasTable ('websockets_statistics_entries ' )) {
3232 $ this ->publishes ([
33- __DIR__ . '/../database/migrations/create_websockets_statistics_entries_table.php.stub ' => database_path ('migrations/ ' . date ('Y_m_d_His ' , time ()) . '_create_websockets_statistics_entries_table.php ' ),
34- ], 'migrations ' );
33+ __DIR__ . '/../database/migrations/create_websockets_statistics_entries_table.php.stub ' => database_path ('migrations/ ' . date ('Y_m_d_His ' , time ()). '_create_websockets_statistics_entries_table.php ' ),
34+ ], 'migrations ' );
3535 }
3636
3737 $ this
38- ->registerRoutes ()
39- ->registerDashboardGate ();
38+ ->registerRoutes ()
39+ ->registerDashboardGate ();
4040
41- $ this ->loadViewsFrom (__DIR__ . '/../resources/views/ ' , 'websockets ' );
41+ $ this ->loadViewsFrom (__DIR__ . '/../resources/views/ ' , 'websockets ' );
4242
4343 $ this ->commands ([
4444 Console \StartWebSocketServer::class,
@@ -55,31 +55,28 @@ public function boot()
5555
5656 public function register ()
5757 {
58- $ this ->mergeConfigFrom (__DIR__ . '/../config/websockets.php ' , 'websockets ' );
58+ $ this ->mergeConfigFrom (__DIR__ . '/../config/websockets.php ' , 'websockets ' );
5959
6060 $ this ->app ->singleton ('websockets.router ' , function () {
6161 return new Router ();
6262 });
6363
6464 $ this ->app ->singleton (ChannelManager::class, function () {
6565 return config ('websockets.channel_manager ' ) !== null && class_exists (config ('websockets.channel_manager ' ))
66- ? app (config ('websockets.channel_manager ' )) : new ArrayChannelManager ();
66+ ? app (config ('websockets.channel_manager ' )) : new ArrayChannelManager ();
6767 });
6868
6969 $ this ->app ->singleton (AppProvider::class, function () {
7070 return app (config ('websockets.app_provider ' ));
7171 });
7272 }
7373
74- /**
75- * @return mixed
76- */
7774 protected function registerRoutes ()
7875 {
7976 Route::prefix (config ('websockets.path ' ))->group (function () {
8077 Route::middleware (config ('websockets.middleware ' , [AuthorizeDashboard::class]))->group (function () {
8178 Route::get ('/ ' , ShowDashboard::class);
82- Route::get ('/api/{appId}/statistics ' , [DashboardApiController::class, 'getStatistics ' ]);
79+ Route::get ('/api/{appId}/statistics ' , [DashboardApiController::class, 'getStatistics ' ]);
8380 Route::post ('auth ' , AuthenticateDashboard::class);
8481 Route::post ('event ' , SendMessage::class);
8582 });
@@ -92,9 +89,6 @@ protected function registerRoutes()
9289 return $ this ;
9390 }
9491
95- /**
96- * @return mixed
97- */
9892 protected function registerDashboardGate ()
9993 {
10094 Gate::define ('viewWebSocketsDashboard ' , function ($ user = null ) {
0 commit comments