Completed
Push — master ( 087ce9...ed70a4 )
by Renato
08:56
created
src/Laravel/SCServiceProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -33,19 +33,19 @@  discard block
 block discarded – undo
33 33
      */
34 34
     protected function registerSocketCluster()
35 35
     {
36
-        $this->app->singleton('SocketCluster', function ($app) {
36
+        $this->app->singleton('SocketCluster', function($app) {
37 37
             $config = $app['config']['broadcasting']['connections']['socketcluster'];
38 38
 
39 39
             if (empty($config['uri'])) {
40
-                $scheme = $config['secure']==true ? 'wss' : 'ws';
40
+                $scheme = $config['secure'] == true ? 'wss' : 'ws';
41 41
                 $host   = trim($config['host'], "/");
42 42
                 $port   = !empty($config['port']) ? ":".$config['port'] : '';
43 43
                 $path   = trim($config['path'], "/");
44
-                $path   = !empty($path) ? $path . "/" : '';
44
+                $path   = !empty($path) ? $path."/" : '';
45 45
                 $config['uri'] = sprintf("%s://%s%s/%s", $scheme, $host, $port, $path);
46 46
             }
47 47
             
48
-            $websocket  = new WebSocketClient($config['uri']);
48
+            $websocket = new WebSocketClient($config['uri']);
49 49
             return new SocketCluster($websocket);
50 50
         });
51 51
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     {
62 62
         $this->app
63 63
             ->make(BroadcastManager::class)
64
-            ->extend('socketcluster', function ($app) {
64
+            ->extend('socketcluster', function($app) {
65 65
                 return new SCBroadcaster($app['SocketCluster']);
66 66
             });
67 67
     }
Please login to merge, or discard this patch.