@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | { |
| 192 | 192 | $header = ['typ' => 'JWT', 'alg' => 'HS256']; |
| 193 | 193 | $payload = ['sub' => $userId]; |
| 194 | - if (! empty($info)) { |
|
| 194 | + if (!empty($info)) { |
|
| 195 | 195 | $payload['info'] = $info; |
| 196 | 196 | } |
| 197 | 197 | if ($exp) { |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | { |
| 221 | 221 | $header = ['typ' => 'JWT', 'alg' => 'HS256']; |
| 222 | 222 | $payload = ['channel' => $channel, 'client' => $client]; |
| 223 | - if (! empty($info)) { |
|
| 223 | + if (!empty($info)) { |
|
| 224 | 224 | $payload['info'] = $info; |
| 225 | 225 | } |
| 226 | 226 | if ($exp) { |
@@ -259,7 +259,7 @@ discard block |
||
| 259 | 259 | |
| 260 | 260 | $headers = [ |
| 261 | 261 | 'Content-type' => 'application/json', |
| 262 | - 'Authorization' => 'apikey '.$this->config['apikey'], |
|
| 262 | + 'Authorization' => 'apikey ' . $this->config['apikey'], |
|
| 263 | 263 | ]; |
| 264 | 264 | |
| 265 | 265 | try { |
@@ -91,7 +91,7 @@ |
||
| 91 | 91 | |
| 92 | 92 | $response = $this->centrifugo->broadcast($this->formatChannels($channels), $payload); |
| 93 | 93 | |
| 94 | - if (is_array($response) && ! isset($response['error'])) { |
|
| 94 | + if (is_array($response) && !isset($response['error'])) { |
|
| 95 | 95 | return; |
| 96 | 96 | } |
| 97 | 97 | |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | */ |
| 16 | 16 | public function boot(BroadcastManager $broadcastManager) |
| 17 | 17 | { |
| 18 | - $broadcastManager->extend('centrifugo', function ($app) { |
|
| 18 | + $broadcastManager->extend('centrifugo', function($app) { |
|
| 19 | 19 | return new LaracentBroadcaster($app->make('centrifugo')); |
| 20 | 20 | }); |
| 21 | 21 | } |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | */ |
| 28 | 28 | public function register() |
| 29 | 29 | { |
| 30 | - $this->app->singleton('centrifugo', function ($app) { |
|
| 30 | + $this->app->singleton('centrifugo', function($app) { |
|
| 31 | 31 | $config = $app->make('config')->get('broadcasting.connections.centrifugo'); |
| 32 | 32 | $http = new HttpClient(); |
| 33 | 33 | |