Code Duplication    Length = 10-10 lines in 2 locations

manager/includes/controls/phpmailer/PHPMailer.php 2 locations

@@ 3366-3375 (lines=10) @@
3363
     *
3364
     * @return bool
3365
     */
3366
    protected function cidExists($cid)
3367
    {
3368
        foreach ($this->attachment as $attachment) {
3369
            if ('inline' == $attachment[6] and $cid == $attachment[7]) {
3370
                return true;
3371
            }
3372
        }
3373
3374
        return false;
3375
    }
3376
3377
    /**
3378
     * Check if an inline attachment is present.
@@ 3382-3391 (lines=10) @@
3379
     *
3380
     * @return bool
3381
     */
3382
    public function inlineImageExists()
3383
    {
3384
        foreach ($this->attachment as $attachment) {
3385
            if ('inline' == $attachment[6]) {
3386
                return true;
3387
            }
3388
        }
3389
3390
        return false;
3391
    }
3392
3393
    /**
3394
     * Check if an attachment (non-inline) is present.