Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 190-192 (lines=3) @@
187
                $this->headers['Content-Transfer-Encoding'] = $this->content_transfer_encoding;
188
189
                if (!empty($this->images)) {
190
                    foreach ($this->images as $image) {
191
                        $this->body_html = str_replace('src="' . $image['filename'] . '"', 'src="cid:' . $image['id'] . '"', $this->body_html);
192
                    }
193
194
                    unset($image);
195
                }
@@ 238-240 (lines=3) @@
235
                $this->headers['MIME-Version'] = '1.0';
236
                $this->headers['Content-Type'] = 'multipart/mixed; boundary="' . $boundary . '"';
237
238
                foreach ($this->images as $image) {
239
                    $this->body_html = str_replace('src="' . $image['filename'] . '"', 'src="cid:' . $image['id'] . '"', $this->body_html);
240
                }
241
242
                unset($image);
243