@@ -87,10 +87,10 @@ discard block |
||
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 |
||
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 |
||
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) { |
@@ -67,12 +67,12 @@ discard block |
||
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 |
||
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 |
||
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 | } |