Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jan 9, 2025
1 parent bacf4e0 commit f331f45
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Illuminate/Validation/Rules/Email.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ class Email implements Rule, DataAwareRule, ValidatorAwareRule

public bool $validateMxRecord = false;
public bool $preventSpoofing = false;
public bool $nativeFilter = false;
public bool $nativeFilterWithUnicodeAllowed = false;
public bool $nativeValidation = false;
public bool $nativeValidationWithUnicodeAllowed = false;
public bool $rfcCompliant = false;
public bool $strictRfcCompliant = false;

Expand Down Expand Up @@ -163,9 +163,9 @@ public function preventSpoofing()
public function withNativeValidation(bool $allowUnicode = false)
{
if ($allowUnicode) {
$this->nativeFilterWithUnicodeAllowed = true;
$this->nativeValidationWithUnicodeAllowed = true;
} else {
$this->nativeFilter = true;
$this->nativeValidation = true;
}

return $this;
Expand Down Expand Up @@ -250,11 +250,11 @@ protected function buildValidationRules()
$rules[] = new SpoofCheckValidation;
}

if ($this->nativeFilter) {
if ($this->nativeValidation) {
$rules[] = new FilterEmailValidation;
}

if ($this->nativeFilterWithUnicodeAllowed) {
if ($this->nativeValidationWithUnicodeAllowed) {
$rules[] = FilterEmailValidation::unicode();
}

Expand Down

0 comments on commit f331f45

Please sign in to comment.