Code Duplication    Length = 3-3 lines in 2 locations

catalog/includes/OSC/OM/Mail.php 2 locations

@@ 183-185 (lines=3) @@
180
                $this->headers['Content-Transfer-Encoding'] = $this->content_transfer_encoding;
181
182
                if (!empty($this->images)) {
183
                    foreach ($this->images as $image) {
184
                        $this->body_html = str_replace('src="' . $image['filename'] . '"', 'src="cid:' . $image['id'] . '"', $this->body_html);
185
                    }
186
187
                    unset($image);
188
                }
@@ 232-234 (lines=3) @@
229
                $this->headers['MIME-Version'] = '1.0';
230
                $this->headers['Content-Type'] = 'multipart/mixed; boundary="' . $this->boundary . '"';
231
232
                foreach ($this->images as $image) {
233
                    $this->body_html = str_replace('src="' . $image['filename'] . '"', 'src="cid:' . $image['id'] . '"', $this->body_html);
234
                }
235
236
                unset($image);
237