Code Duplication    Length = 5-5 lines in 3 locations

mod/contactform/include/class.phpmailer.php 3 locations

@@ 530-534 (lines=5) @@
527
    }
528
529
    /* Attempt to send attach all recipients */
530
    for($i = 0; $i < count($this->to); $i++) {
531
      if(!$this->smtp->Recipient($this->to[$i][0])) {
532
        $bad_rcpt[] = $this->to[$i][0];
533
      }
534
    }
535
    for($i = 0; $i < count($this->cc); $i++) {
536
      if(!$this->smtp->Recipient($this->cc[$i][0])) {
537
        $bad_rcpt[] = $this->cc[$i][0];
@@ 535-539 (lines=5) @@
532
        $bad_rcpt[] = $this->to[$i][0];
533
      }
534
    }
535
    for($i = 0; $i < count($this->cc); $i++) {
536
      if(!$this->smtp->Recipient($this->cc[$i][0])) {
537
        $bad_rcpt[] = $this->cc[$i][0];
538
      }
539
    }
540
    for($i = 0; $i < count($this->bcc); $i++) {
541
      if(!$this->smtp->Recipient($this->bcc[$i][0])) {
542
        $bad_rcpt[] = $this->bcc[$i][0];
@@ 540-544 (lines=5) @@
537
        $bad_rcpt[] = $this->cc[$i][0];
538
      }
539
    }
540
    for($i = 0; $i < count($this->bcc); $i++) {
541
      if(!$this->smtp->Recipient($this->bcc[$i][0])) {
542
        $bad_rcpt[] = $this->bcc[$i][0];
543
      }
544
    }
545
546
    if(count($bad_rcpt) > 0) { // Create error message
547
      for($i = 0; $i < count($bad_rcpt); $i++) {