Passed
Push — master ( 605a7f...c53e78 )
by Marcel
14:27 queued 03:25
created
src/WebSocketsServiceProvider.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      */
69 69
     protected function registerAsyncRedisQueueDriver()
70 70
     {
71
-        Queue::extend('async-redis', function () {
71
+        Queue::extend('async-redis', function() {
72 72
             return new AsyncRedisConnector($this->app['redis']);
73 73
         });
74 74
     }
@@ -80,14 +80,14 @@  discard block
 block discarded – undo
80 80
      */
81 81
     protected function registerStatistics()
82 82
     {
83
-        $this->app->singleton(StatisticsStore::class, function ($app) {
83
+        $this->app->singleton(StatisticsStore::class, function($app) {
84 84
             $config = $app['config']['websockets'];
85 85
             $class = $config['statistics']['store'];
86 86
 
87 87
             return new $class;
88 88
         });
89 89
 
90
-        $this->app->singleton(StatisticsCollector::class, function ($app) {
90
+        $this->app->singleton(StatisticsCollector::class, function($app) {
91 91
             $config = $app['config']['websockets'];
92 92
             $replicationMode = $config['replication']['mode'] ?? 'local';
93 93
 
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
      */
133 133
     protected function registerRouter()
134 134
     {
135
-        $this->app->singleton('websockets.router', function () {
135
+        $this->app->singleton('websockets.router', function() {
136 136
             return new Router;
137 137
         });
138 138
     }
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
      */
145 145
     protected function registerManagers()
146 146
     {
147
-        $this->app->singleton(Contracts\AppManager::class, function ($app) {
147
+        $this->app->singleton(Contracts\AppManager::class, function($app) {
148 148
             $config = $app['config']['websockets'];
149 149
 
150 150
             return $this->app->make($config['managers']['app']);
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
             'prefix' => config('websockets.dashboard.path'),
164 164
             'as' => 'laravel-websockets.',
165 165
             'middleware' => config('websockets.dashboard.middleware', [AuthorizeDashboard::class]),
166
-        ], function () {
166
+        ], function() {
167 167
             Route::get('/', ShowDashboard::class)->name('dashboard');
168 168
             Route::get('/api/{appId}/statistics', ShowStatistics::class)->name('statistics');
169 169
             Route::post('/auth', AuthenticateDashboard::class)->name('auth');
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
      */
179 179
     protected function registerDashboardGate()
180 180
     {
181
-        Gate::define('viewWebSocketsDashboard', function ($user = null) {
181
+        Gate::define('viewWebSocketsDashboard', function($user = null) {
182 182
             return $this->app->environment('local');
183 183
         });
184 184
     }
Please login to merge, or discard this patch.
database/migrations/0000_00_00_000000_rename_statistics_counters.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -13,13 +13,13 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::table('websockets_statistics_entries', function (Blueprint $table) {
16
+        Schema::table('websockets_statistics_entries', function(Blueprint $table) {
17 17
             $table->renameColumn('peak_connection_count', 'peak_connections_count');
18 18
         });
19
-        Schema::table('websockets_statistics_entries', function (Blueprint $table) {
19
+        Schema::table('websockets_statistics_entries', function(Blueprint $table) {
20 20
             $table->renameColumn('websocket_message_count', 'websocket_messages_count');
21 21
         });
22
-        Schema::table('websockets_statistics_entries', function (Blueprint $table) {
22
+        Schema::table('websockets_statistics_entries', function(Blueprint $table) {
23 23
             $table->renameColumn('api_message_count', 'api_messages_count');
24 24
         });
25 25
     }
@@ -31,13 +31,13 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function down()
33 33
     {
34
-        Schema::table('websockets_statistics_entries', function (Blueprint $table) {
34
+        Schema::table('websockets_statistics_entries', function(Blueprint $table) {
35 35
             $table->renameColumn('peak_connections_count', 'peak_connection_count');
36 36
         });
37
-        Schema::table('websockets_statistics_entries', function (Blueprint $table) {
37
+        Schema::table('websockets_statistics_entries', function(Blueprint $table) {
38 38
             $table->renameColumn('websocket_messages_count', 'websocket_message_count');
39 39
         });
40
-        Schema::table('websockets_statistics_entries', function (Blueprint $table) {
40
+        Schema::table('websockets_statistics_entries', function(Blueprint $table) {
41 41
             $table->renameColumn('api_messages_count', 'api_message_count');
42 42
         });
43 43
     }
Please login to merge, or discard this patch.
migrations/0000_00_00_000000_create_websockets_statistics_entries_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('websockets_statistics_entries', function (Blueprint $table) {
16
+        Schema::create('websockets_statistics_entries', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->string('app_id');
19 19
             $table->integer('peak_connection_count');
Please login to merge, or discard this patch.