Completed
Push — master ( 9bf1e4...223d51 )
by Sergii
04:53
created
src/Routers/Router.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -282,7 +282,7 @@
 block discarded – undo
282 282
         if (is_string($callback)) {
283 283
             list($class, $method) = explode('&', $callback);
284 284
 
285
-            $callback = function (ConnectionOpenEvent $event) use ($class, $method) {
285
+            $callback = function(ConnectionOpenEvent $event) use ($class, $method) {
286 286
                 return $class::{$method}($event);
287 287
             };
288 288
         }
Please login to merge, or discard this patch.
src/Commands/RunServer.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -86,10 +86,10 @@  discard block
 block discarded – undo
86 86
         $this->parseOptions();
87 87
         $this->changeWampLogger();
88 88
 
89
-        $clientCommand = 'php artisan wamp:register-routes' . $this->getCommandLineOptions();
89
+        $clientCommand = 'php artisan wamp:register-routes'.$this->getCommandLineOptions();
90 90
 
91 91
         if ($this->clientTransportProvider) {
92
-            $clientCommand .= ' --transport-provider=' . $this->clientTransportProvider;
92
+            $clientCommand .= ' --transport-provider='.$this->clientTransportProvider;
93 93
         }
94 94
 
95 95
         RunCommandInBackground::factory($clientCommand)->runInBackground();
@@ -99,10 +99,10 @@  discard block
 block discarded – undo
99 99
             $this->WAMPServer->registerModule($this->getTransportProvider());
100 100
             $this->WAMPServer->start(!$this->runOnce);
101 101
         } else {
102
-            $serverCommand = 'php artisan wamp:run-server ' . $this->getCommandLineOptions();
102
+            $serverCommand = 'php artisan wamp:run-server '.$this->getCommandLineOptions();
103 103
 
104 104
             if ($this->clientTransportProvider) {
105
-                $serverCommand .= ' --client-transport-provider=' . $this->clientTransportProvider;
105
+                $serverCommand .= ' --client-transport-provider='.$this->clientTransportProvider;
106 106
             }
107 107
 
108 108
             RunCommandInBackground::factory($serverCommand)->runInBackground();
@@ -110,12 +110,12 @@  discard block
 block discarded – undo
110 110
     }
111 111
 
112 112
     protected function getCommandLineOptions() {
113
-        $command = ' --port=' . $this->port .
114
-            ' --host=' . $this->host .
115
-            ' --realm=' . $this->realm;
113
+        $command = ' --port='.$this->port.
114
+            ' --host='.$this->host.
115
+            ' --realm='.$this->realm;
116 116
 
117 117
         if ($this->clientTransportProvider) {
118
-            $command .= ' --transport-provider=' . $this->clientTransportProvider;
118
+            $command .= ' --transport-provider='.$this->clientTransportProvider;
119 119
         }
120 120
 
121 121
         if ($this->noDebug) {
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
         }
128 128
 
129 129
         if ($this->routePath) {
130
-            $command .= ' --route-path=' . $this->routePath;
130
+            $command .= ' --route-path='.$this->routePath;
131 131
         }
132 132
 
133 133
         if ($this->noLoop) {
Please login to merge, or discard this patch.
src/Commands/RunCommandInBackground.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -81,12 +81,12 @@
 block discarded – undo
81 81
     {
82 82
         $parts = [];
83 83
         if (!empty($this->before)) {
84
-            $parts[] = (string)$this->before;
84
+            $parts[] = (string) $this->before;
85 85
         }
86
-        $parts[] = 'cd ' . base_path();
86
+        $parts[] = 'cd '.base_path();
87 87
         $parts[] = "{$this->phpBinary} {$this->getArtisan()} {$this->command}";
88 88
         if (!empty($this->after)) {
89
-            $parts[] = (string)$this->after;
89
+            $parts[] = (string) $this->after;
90 90
         }
91 91
         return implode(' && ', $parts);
92 92
     }
Please login to merge, or discard this patch.
src/Commands/RegisterRoutes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,6 +114,6 @@
 block discarded – undo
114 114
      * @author Donii Sergii <[email protected]>
115 115
      */
116 116
     protected function getTransportURI() {
117
-        return ($this->tls ? 'wss://' : 'ws://') . $this->host . ':' . $this->port;
117
+        return ($this->tls ? 'wss://' : 'ws://').$this->host.':'.$this->port;
118 118
     }
119 119
 }
120 120
\ No newline at end of file
Please login to merge, or discard this patch.
src/Commands/WAMPCommandTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@
 block discarded – undo
130 130
             return;
131 131
         }
132 132
 
133
-        $path = $this->getConfig('pathLogFile') ?? storage_path('logs/' . $fileName);
133
+        $path = $this->getConfig('pathLogFile') ?? storage_path('logs/'.$fileName);
134 134
 
135 135
         $handler = (new StreamHandler($path, MonologLogger::DEBUG))
136 136
             ->setFormatter(new LineFormatter(null, null, true, true));
Please login to merge, or discard this patch.
src/Client.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
                 }
75 75
 
76 76
                 if (pathinfo($file, PATHINFO_EXTENSION) === 'php') {
77
-                    require $this->routePath . DIRECTORY_SEPARATOR . $file;
77
+                    require $this->routePath.DIRECTORY_SEPARATOR.$file;
78 78
                 }
79 79
             }
80 80
         }
Please login to merge, or discard this patch.
src/WAMPServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
          */
53 53
         $this->app->singleton('sonrac.wamp.run', '\sonrac\WAMP\Commands\RunServer');
54 54
 
55
-        $this->app->singleton('wampClient', function () use ($config) {
55
+        $this->app->singleton('wampClient', function() use ($config) {
56 56
             return new Client($config['realm']);
57 57
         });
58 58
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
             $this->app->alias($abstract[0], $alias);
79 79
         }
80 80
 
81
-        $this->app->singleton('sonrac\WAMP\Contracts\ClientTransportServiceProvider', function () use ($config) {
81
+        $this->app->singleton('sonrac\WAMP\Contracts\ClientTransportServiceProvider', function() use ($config) {
82 82
             return new RawSocketClientTransportProvider($config['host'], $config['port']);
83 83
         });
84 84
 
Please login to merge, or discard this patch.