Code Duplication    Length = 3-3 lines in 2 locations

lib/classes/Swift/Transport/StreamBuffer.php 2 locations

@@ 279-281 (lines=3) @@
276
        $options = stream_context_get_options(stream_context_get_default());
277
278
        $host = $this->_params['host'];
279
        if (!empty($this->_params['protocol'])) {
280
            $host = $this->_params['protocol'] . '://' . $host;
281
        }
282
283
        $timeout = 15;
284
        if (!empty($this->_params['timeout'])) {
@@ 348-350 (lines=3) @@
345
            case self::TYPE_SOCKET:
346
            default:
347
                $host = $this->_params['host'];
348
                if (!empty($this->_params['protocol'])) {
349
                    $host = $this->_params['protocol'] . '://' . $host;
350
                }
351
                $host .= ':' . $this->_params['port'];
352
353
                return $host;