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'])) {
@@ 356-358 (lines=3) @@
353
            case self::TYPE_SOCKET:
354
            default:
355
                $host = $this->_params['host'];
356
                if (!empty($this->_params['protocol'])) {
357
                    $host = $this->_params['protocol'] . '://' . $host;
358
                }
359
                $host .= ':' . $this->_params['port'];
360
361
                return $host;