Test Failed
Push — master ( e3e341...a4014a )
by Sergii
07:29
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/RunCommandInBackground.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
         if (!empty($this->before)) {
84 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 89
             $parts[] = (string) $this->after;
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
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
          */
50 50
         $this->app->singleton('wamp.run', '\sonrac\WAMP\Commands\RunServer');
51 51
 
52
-        $this->app->singleton('wampClient', function () use ($config) {
52
+        $this->app->singleton('wampClient', function() use ($config) {
53 53
             return new Client($config['realm']);
54 54
         });
55 55
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
             $this->app->alias($abstract[0], $alias);
75 75
         }
76 76
 
77
-        $this->app->singleton('sonrac\WAMP\Contracts\ClientTransportServiceProvider', function () use ($config) {
77
+        $this->app->singleton('sonrac\WAMP\Contracts\ClientTransportServiceProvider', function() use ($config) {
78 78
             return new RawSocketClientTransportProvider($config['host'], $config['port']);
79 79
         });
80 80
 
Please login to merge, or discard this patch.
src/Routers/RouterTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -201,7 +201,7 @@
 block discarded – undo
201 201
         $callback = explode('&', $callback);
202 202
         $self = $this;
203 203
 
204
-        return function (ClientSession $clientSession) use ($callback, $namespace, $self) {
204
+        return function(ClientSession $clientSession) use ($callback, $namespace, $self) {
205 205
             if (count($callback) === 1) {
206 206
                 return $this->{$callback[0]}($clientSession, $self->getClient());
207 207
             }
Please login to merge, or discard this patch.
src/Commands/WAMPCommandTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
             return;
148 148
         }
149 149
 
150
-        $path = $this->getConfig('pathLogFile') ?? storage_path('logs/' . $fileName);
150
+        $path = $this->getConfig('pathLogFile') ?? storage_path('logs/'.$fileName);
151 151
 
152 152
         $handler = (new StreamHandler($path, MonologLogger::DEBUG))
153 153
             ->setFormatter(new LineFormatter(null, null, true, true));
@@ -219,6 +219,6 @@  discard block
 block discarded – undo
219 219
 
220 220
         $content = file_get_contents($fileName);
221 221
 
222
-        file_put_contents($fileName, $content . PHP_EOL . $pid);
222
+        file_put_contents($fileName, $content.PHP_EOL.$pid);
223 223
     }
224 224
 }
Please login to merge, or discard this patch.
src/Commands/DownWAMP.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,11 +70,11 @@
 block discarded – undo
70 70
                     $pid = (int) trim($pid);
71 71
 
72 72
                     if ($pid > 0) {
73
-                        exec('kill ' . $pid);
73
+                        exec('kill '.$pid);
74 74
                     }
75 75
                 }
76 76
 
77
-                exec('rm ' . $file);
77
+                exec('rm '.$file);
78 78
             }
79 79
         }
80 80
     }
Please login to merge, or discard this patch.
src/Commands/RunServer.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -87,10 +87,10 @@  discard block
 block discarded – undo
87 87
             $this->WAMPServer->registerModule($transportProvider);
88 88
             $this->WAMPServer->start(!$this->runOnce);
89 89
         } else {
90
-            $serverCommand = ' ' . $this->getName() . $this->getCommandLineOptions();
90
+            $serverCommand = ' '.$this->getName().$this->getCommandLineOptions();
91 91
 
92 92
             if ($this->clientTransportProvider) {
93
-                $serverCommand .= ' --client-transport-provider=' . $this->clientTransportProvider;
93
+                $serverCommand .= ' --client-transport-provider='.$this->clientTransportProvider;
94 94
             }
95 95
 
96 96
             $this->addPidToLog(RunCommandInBackground::factory($serverCommand)->runInBackground(), 'servers.pids');
@@ -106,12 +106,12 @@  discard block
 block discarded – undo
106 106
      */
107 107
     protected function getCommandLineOptions()
108 108
     {
109
-        $command = ' --port=' . $this->port .
110
-            ' --host=' . $this->host .
111
-            ' --realm=' . $this->realm;
109
+        $command = ' --port='.$this->port.
110
+            ' --host='.$this->host.
111
+            ' --realm='.$this->realm;
112 112
 
113 113
         if ($this->clientTransportProvider) {
114
-            $command .= ' --transport-provider=' . $this->clientTransportProvider;
114
+            $command .= ' --transport-provider='.$this->clientTransportProvider;
115 115
         }
116 116
 
117 117
         if ($this->noDebug) {
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
         }
124 124
 
125 125
         if ($this->routePath) {
126
-            $command .= ' --route-path=' . $this->routePath;
126
+            $command .= ' --route-path='.$this->routePath;
127 127
         }
128 128
 
129 129
         if ($this->noLoop) {
Please login to merge, or discard this patch.
src/Commands/RegisterRoutes.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -67,12 +67,12 @@  discard block
 block discarded – undo
67 67
             $client->setRoutePath($this->routePath);
68 68
             $client->start(!$this->runOnce);
69 69
         } else {
70
-            $command = $this->getName() . ($this->port ? ' --port=' . $this->port : '') .
71
-                ($this->host ? ' --host=' . $this->host : '') .
72
-                ($this->realm ? ' --realm=' . $this->realm : '');
70
+            $command = $this->getName().($this->port ? ' --port='.$this->port : '').
71
+                ($this->host ? ' --host='.$this->host : '').
72
+                ($this->realm ? ' --realm='.$this->realm : '');
73 73
 
74 74
             if ($this->transportProvider) {
75
-                $command .= ' --transport-provider=' . str_replace('\\', '\\\\', $this->transportProvider);
75
+                $command .= ' --transport-provider='.str_replace('\\', '\\\\', $this->transportProvider);
76 76
             }
77 77
 
78 78
             if ($this->noDebug) {
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
             }
85 85
 
86 86
             if ($this->routePath) {
87
-                $command .= ' --route-path=' . $this->routePath;
87
+                $command .= ' --route-path='.$this->routePath;
88 88
             }
89 89
 
90 90
             if ($this->noLoop) {
@@ -145,6 +145,6 @@  discard block
 block discarded – undo
145 145
      */
146 146
     protected function getTransportURI()
147 147
     {
148
-        return ($this->tls ? 'wss://' : 'ws://') . $this->host . ':' . $this->port;
148
+        return ($this->tls ? 'wss://' : 'ws://').$this->host.':'.$this->port;
149 149
     }
150 150
 }
Please login to merge, or discard this patch.