original_string: protected function validateEmailUniqueUser()
      {
          $field = 'email';
          $value = $this->getSubmitted($field);
  
          if ($this->isError($field) || !isset($value)) {
              return null;
          }
  
          $updating = $this->getUpdating();
  
          if (isset($updating['email']) && $updating['email'] === $value) {
              return true;
          }
  
          $user = $this->user->getByEmail($value);
  
          if (empty($user)) {
              return true;
          }
  
          $this->setErrorExists($field, $this->translation->text('E-mail'));
          return false;
      }
code: protected function validateEmailUniqueUser()
      {
          $field = 'email';
          $value = $this->getSubmitted($field);
  
          if ($this->isError($field) || !isset($value)) {
              return null;
          }
  
          $updating = $this->getUpdating();
  
          if (isset($updating['email']) && $updating['email'] === $value) {
              return true;
          }
  
          $user = $this->user->getByEmail($value);
  
          if (empty($user)) {
              return true;
          }
  
          $this->setErrorExists($field, $this->translation->text('E-mail'));
          return false;
      }
code_tokens: protected function validateEmailUniqueUser ( ) { $ field = 'email' ; $ value = $ this -> getSubmitted ( $ field ) ; if ( $ this -> isError ( $ field ) || ! isset ( $ value ) ) { return null ; } $ updating = $ this -> getUpdating ( ) ; if ( isset ( $ updating [ 'email' ] ) && $ updating [ 'email' ] === $ value ) { return true ; } $ user = $ this -> user -> getByEmail ( $ value ) ; if ( empty ( $ user ) ) { return true ; } $ this -> setErrorExists ( $ field , $ this -> translation -> text ( 'E-mail' ) ) ; return false ; }
docstring: Validates uniqueness of submitted E-mail
  @return boolean|null
docstring_tokens: Validates uniqueness of submitted E - mail