Code Duplication    Length = 12-12 lines in 2 locations

lib/classes/Swift/Mime/SimpleHeaderFactory.php 2 locations

@@ 71-82 (lines=12) @@
68
     *
69
     * @return Swift_Mime_Header
70
     */
71
    public function createMailboxHeader($name, $addresses = null)
72
    {
73
        $header = new Swift_Mime_Headers_MailboxHeader($name, $this->_encoder, $this->_emailValidator);
74
        
75
        if ($addresses) {
76
            $header->setFieldBodyModel($addresses);
77
        }
78
        
79
        $this->_setHeaderCharset($header);
80
81
        return $header;
82
    }
83
84
    /**
85
     * Create a new Date header using $timestamp (UNIX time).
@@ 165-176 (lines=12) @@
162
     *
163
     * @return Swift_Mime_Header
164
     */
165
    public function createIdHeader($name, $ids = null)
166
    {
167
        $header = new Swift_Mime_Headers_IdentificationHeader($name, $this->_emailValidator);
168
169
        if (!empty($ids)) {
170
            $header->setFieldBodyModel($ids);
171
        }
172
173
        $this->_setHeaderCharset($header);
174
175
        return $header;
176
    }
177
178
    /**
179
     * Create a new Path header with an address (path) in it.