Passed
Push — master ( b3a0cb...98ea07 )
by Alex
01:47
created
src/Laracent.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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 {
Please login to merge, or discard this patch.
src/LaracentBroadcaster.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/LaracentServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             
Please login to merge, or discard this patch.