@@ -186,8 +186,8 @@ |
||
186 | 186 | || |
187 | 187 | feof($this->_out) |
188 | 188 | ) { |
189 | - // TODO? |
|
190 | - return; |
|
189 | + // TODO? |
|
190 | + return; |
|
191 | 191 | } |
192 | 192 | |
193 | 193 | $line = fgets($this->_out); |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | if (!$line) { |
195 | 195 | $metas = stream_get_meta_data($this->_out); |
196 | 196 | if ($metas['timed_out']) { |
197 | - throw new Swift_IoException('Connection to ' . $this->_getReadConnectionDescription() . ' Timed Out'); |
|
197 | + throw new Swift_IoException('Connection to '.$this->_getReadConnectionDescription().' Timed Out'); |
|
198 | 198 | } |
199 | 199 | } |
200 | 200 | |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | $metas = stream_get_meta_data($this->_out); |
231 | 231 | if ($metas['timed_out']) { |
232 | 232 | throw new Swift_IoException( |
233 | - 'Connection to ' . $this->_getReadConnectionDescription() . ' Timed Out' |
|
233 | + 'Connection to '.$this->_getReadConnectionDescription().' Timed Out' |
|
234 | 234 | ); |
235 | 235 | } |
236 | 236 | } |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | $bytesWritten = fwrite($this->_in, substr($bytes, $totalBytesWritten)); |
279 | 279 | if (false === $bytesWritten || 0 === $bytesWritten) { |
280 | 280 | throw new Swift_IoException( |
281 | - 'Connection to ' . $this->_getReadConnectionDescription() . ' has gone away' |
|
281 | + 'Connection to '.$this->_getReadConnectionDescription().' has gone away' |
|
282 | 282 | ); |
283 | 283 | } |
284 | 284 | |
@@ -306,7 +306,7 @@ discard block |
||
306 | 306 | |
307 | 307 | $host = $this->_params['host']; |
308 | 308 | if (!empty($this->_params['protocol'])) { |
309 | - $host = $this->_params['protocol'] . '://' . $host; |
|
309 | + $host = $this->_params['protocol'].'://'.$host; |
|
310 | 310 | } |
311 | 311 | |
312 | 312 | $timeout = 15; |
@@ -315,7 +315,7 @@ discard block |
||
315 | 315 | } |
316 | 316 | |
317 | 317 | if (!empty($this->_params['sourceIp'])) { |
318 | - $options['socket']['bindto'] = $this->_params['sourceIp'] . ':0'; |
|
318 | + $options['socket']['bindto'] = $this->_params['sourceIp'].':0'; |
|
319 | 319 | } |
320 | 320 | |
321 | 321 | if (!empty($this->_params['verifySsl'])) { |
@@ -328,10 +328,10 @@ discard block |
||
328 | 328 | |
329 | 329 | $streamContext = stream_context_create($options); |
330 | 330 | /** @noinspection PhpUsageOfSilenceOperatorInspection */ |
331 | - $this->_stream = @stream_socket_client($host . ':' . $this->_params['port'], $errno, $errstr, $timeout, STREAM_CLIENT_CONNECT, $streamContext); |
|
331 | + $this->_stream = @stream_socket_client($host.':'.$this->_params['port'], $errno, $errstr, $timeout, STREAM_CLIENT_CONNECT, $streamContext); |
|
332 | 332 | |
333 | 333 | if (false === $this->_stream) { |
334 | - throw new Swift_TransportException('Connection could not be established with host ' . $this->_params['host'] . ' [' . $errstr . ' #' . $errno . ']'); |
|
334 | + throw new Swift_TransportException('Connection could not be established with host '.$this->_params['host'].' ['.$errstr.' #'.$errno.']'); |
|
335 | 335 | } |
336 | 336 | |
337 | 337 | if (!empty($this->_params['blocking'])) { |
@@ -363,7 +363,7 @@ discard block |
||
363 | 363 | |
364 | 364 | $err = stream_get_contents($pipes[2]); |
365 | 365 | if ($err) { |
366 | - throw new Swift_TransportException('Process could not be started [' . $err . ']'); |
|
366 | + throw new Swift_TransportException('Process could not be started ['.$err.']'); |
|
367 | 367 | } |
368 | 368 | |
369 | 369 | $this->_in = &$pipes[0]; |
@@ -377,16 +377,16 @@ discard block |
||
377 | 377 | { |
378 | 378 | switch ($this->_params['type']) { |
379 | 379 | case self::TYPE_PROCESS: |
380 | - return 'Process ' . $this->_params['command']; |
|
380 | + return 'Process '.$this->_params['command']; |
|
381 | 381 | break; |
382 | 382 | |
383 | 383 | case self::TYPE_SOCKET: |
384 | 384 | default: |
385 | 385 | $host = $this->_params['host']; |
386 | 386 | if (!empty($this->_params['protocol'])) { |
387 | - $host = $this->_params['protocol'] . '://' . $host; |
|
387 | + $host = $this->_params['protocol'].'://'.$host; |
|
388 | 388 | } |
389 | - $host .= ':' . $this->_params['port']; |
|
389 | + $host .= ':'.$this->_params['port']; |
|
390 | 390 | |
391 | 391 | return $host; |
392 | 392 | break; |