@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | */ |
18 | 18 | public function boot(BroadcastManager $broadcastManager) |
19 | 19 | { |
20 | - $broadcastManager->extend('centrifugo', function ($app) { |
|
20 | + $broadcastManager->extend('centrifugo', function($app) { |
|
21 | 21 | return new CentrifugoBroadcaster($app->make('centrifugo')); |
22 | 22 | }); |
23 | 23 | } |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | */ |
30 | 30 | public function register() |
31 | 31 | { |
32 | - $this->app->singleton('centrifugo', function ($app) { |
|
32 | + $this->app->singleton('centrifugo', function($app) { |
|
33 | 33 | $config = $app->make('config')->get('broadcasting.connections.centrifugo'); |
34 | 34 | $http = new HttpClient(); |
35 | 35 |
@@ -90,7 +90,7 @@ |
||
90 | 90 | public function broadcast(array $channels, $event, array $payload = []) |
91 | 91 | { |
92 | 92 | $payload['event'] = $event; |
93 | - $channels = array_map(function ($channel) { |
|
93 | + $channels = array_map(function($channel) { |
|
94 | 94 | return str_replace('private-', '$', (string) $channel); |
95 | 95 | }, $channels); |
96 | 96 |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | 'ssl_key' => null, |
57 | 57 | 'verify' => true, |
58 | 58 | 'show_node_info' => false, |
59 | - 'timeout' => 10 |
|
59 | + 'timeout' => 10 |
|
60 | 60 | ]; |
61 | 61 | |
62 | 62 | foreach ($config as $key => $value) { |
@@ -296,7 +296,7 @@ discard block |
||
296 | 296 | 'headers' => $headers, |
297 | 297 | 'body' => $json, |
298 | 298 | 'http_errors' => true, |
299 | - 'timeout' => $this->config['timeout'] |
|
299 | + 'timeout' => $this->config['timeout'] |
|
300 | 300 | ]); |
301 | 301 | |
302 | 302 | if ($url['scheme'] == 'https') { |
@@ -286,7 +286,7 @@ |
||
286 | 286 | |
287 | 287 | $headers = [ |
288 | 288 | 'Content-type' => 'application/json', |
289 | - 'Authorization' => 'apikey ' . $this->config['apikey'], |
|
289 | + 'Authorization' => 'apikey '.$this->config['apikey'], |
|
290 | 290 | ]; |
291 | 291 | |
292 | 292 | try { |