Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 281-283 (lines=3) @@
278
        $options = stream_context_get_options(stream_context_get_default());
279
280
        $host = $this->_params['host'];
281
        if (!empty($this->_params['protocol'])) {
282
            $host = $this->_params['protocol'] . '://' . $host;
283
        }
284
285
        $timeout = 15;
286
        if (!empty($this->_params['timeout'])) {
@@ 354-356 (lines=3) @@
351
            case self::TYPE_SOCKET:
352
            default:
353
                $host = $this->_params['host'];
354
                if (!empty($this->_params['protocol'])) {
355
                    $host = $this->_params['protocol'] . '://' . $host;
356
                }
357
                $host .= ':' . $this->_params['port'];
358
359
                return $host;