Completed
Push — 5.x ( 721f55...d8493a )
by Lars
10:11 queued 02:55
created
lib/classes/Swift/Transport/StreamBuffer.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
             if (!$line) {
184 184
                 $metas = stream_get_meta_data($this->_out);
185 185
                 if ($metas['timed_out']) {
186
-                    throw new Swift_IoException('Connection to ' . $this->_getReadConnectionDescription() . ' Timed Out');
186
+                    throw new Swift_IoException('Connection to '.$this->_getReadConnectionDescription().' Timed Out');
187 187
                 }
188 188
             }
189 189
 
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
                 $metas = stream_get_meta_data($this->_out);
213 213
                 if ($metas['timed_out']) {
214 214
                     throw new Swift_IoException(
215
-                        'Connection to ' . $this->_getReadConnectionDescription() . ' Timed Out'
215
+                        'Connection to '.$this->_getReadConnectionDescription().' Timed Out'
216 216
                     );
217 217
                 }
218 218
             }
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
                 $bytesWritten = fwrite($this->_in, substr($bytes, $totalBytesWritten));
254 254
                 if (false === $bytesWritten || 0 === $bytesWritten) {
255 255
                     throw new Swift_IoException(
256
-                        'Connection to ' . $this->_getReadConnectionDescription() . ' has gone away'
256
+                        'Connection to '.$this->_getReadConnectionDescription().' has gone away'
257 257
                     );
258 258
                 }
259 259
 
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
 
280 280
         $host = $this->_params['host'];
281 281
         if (!empty($this->_params['protocol'])) {
282
-            $host = $this->_params['protocol'] . '://' . $host;
282
+            $host = $this->_params['protocol'].'://'.$host;
283 283
         }
284 284
 
285 285
         $timeout = 15;
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
         }
289 289
 
290 290
         if (!empty($this->_params['sourceIp'])) {
291
-            $options['socket']['bindto'] = $this->_params['sourceIp'] . ':0';
291
+            $options['socket']['bindto'] = $this->_params['sourceIp'].':0';
292 292
         }
293 293
 
294 294
         if (!empty($this->_params['verifySsl'])) {
@@ -301,10 +301,10 @@  discard block
 block discarded – undo
301 301
 
302 302
         $streamContext = stream_context_create($options);
303 303
         /** @noinspection PhpUsageOfSilenceOperatorInspection */
304
-        $this->_stream = @stream_socket_client($host . ':' . $this->_params['port'], $errno, $errstr, $timeout, STREAM_CLIENT_CONNECT, $streamContext);
304
+        $this->_stream = @stream_socket_client($host.':'.$this->_params['port'], $errno, $errstr, $timeout, STREAM_CLIENT_CONNECT, $streamContext);
305 305
 
306 306
         if (false === $this->_stream) {
307
-            throw new Swift_TransportException('Connection could not be established with host ' . $this->_params['host'] . ' [' . $errstr . ' #' . $errno . ']');
307
+            throw new Swift_TransportException('Connection could not be established with host '.$this->_params['host'].' ['.$errstr.' #'.$errno.']');
308 308
         }
309 309
 
310 310
         if (!empty($this->_params['blocking'])) {
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
 
336 336
         $err = stream_get_contents($pipes[2]);
337 337
         if ($err) {
338
-            throw new Swift_TransportException('Process could not be started [' . $err . ']');
338
+            throw new Swift_TransportException('Process could not be started ['.$err.']');
339 339
         }
340 340
 
341 341
         $this->_in = &$pipes[0];
@@ -346,16 +346,16 @@  discard block
 block discarded – undo
346 346
     {
347 347
         switch ($this->_params['type']) {
348 348
             case self::TYPE_PROCESS:
349
-                return 'Process ' . $this->_params['command'];
349
+                return 'Process '.$this->_params['command'];
350 350
                 break;
351 351
 
352 352
             case self::TYPE_SOCKET:
353 353
             default:
354 354
                 $host = $this->_params['host'];
355 355
                 if (!empty($this->_params['protocol'])) {
356
-                    $host = $this->_params['protocol'] . '://' . $host;
356
+                    $host = $this->_params['protocol'].'://'.$host;
357 357
                 }
358
-                $host .= ':' . $this->_params['port'];
358
+                $host .= ':'.$this->_params['port'];
359 359
 
360 360
                 return $host;
361 361
                 break;
Please login to merge, or discard this patch.