Passed
Push — master ( e0cc20...819e5a )
by Alexander
11:54
created
src/CentrifugoServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/CentrifugoBroadcaster.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Centrifugo.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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') {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -286,7 +286,7 @@
 block discarded – undo
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 {
Please login to merge, or discard this patch.