Code Duplication    Length = 5-5 lines in 2 locations

include/classes/user.class.php 1 location

@@ 777-781 (lines=5) @@
774
      $this->setErrorMessage( 'Password do not match' );
775
      return false;
776
    }
777
    if (empty($email1) || !filter_var($email1, FILTER_VALIDATE_EMAIL)) {
778
      $this->setErrorMessage( 'Invalid e-mail address' );
779
      return false;
780
    }
781
    if ($email1 !== $email2) {
782
      $this->setErrorMessage( 'E-mail do not match' );
783
      return false;
784
    }

include/classes/mail.class.php 1 location

@@ 17-21 (lines=5) @@
14
  **/
15
  public function contactform($senderName, $senderEmail, $senderSubject, $senderMessage) {
16
    $this->debug->append("STA " . __METHOD__, 4);
17
    if (empty($senderEmail) || !filter_var($senderEmail, FILTER_VALIDATE_EMAIL)) {
18
      $this->setErrorMessage($this->getErrorMsg('E0023'));
19
      return false;
20
    }
21
    if (strlen(strip_tags($senderMessage)) < strlen($senderMessage)) {
22
      $this->setErrorMessage($this->getErrorMsg('E0024'));
23
      return false;
24
    }