Skip to content

Commit

Permalink
refactor: reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
RayHughes committed Sep 21, 2021
1 parent 59448fc commit eba59a8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Mapper/EmailValidationMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@ public function map(
bool $allowDisposable,
?string $suggestion = null
): EmailValidationDto {
$isValid = !(!$allowDisposable && $isDisposable)
$emailValidationDto = new EmailValidationDto();

$emailValidationDto->isValid = !(!$allowDisposable && $isDisposable)
&& $isValidRisk
&& $isValidScore;

$emailValidationDto = new EmailValidationDto();

$emailValidationDto->isValid = $isValid;
$emailValidationDto->isValidRisk = $isValidRisk;
$emailValidationDto->isValidScore = $isValidScore;
$emailValidationDto->isDisposable = $isDisposable;
Expand Down

0 comments on commit eba59a8

Please sign in to comment.