Четвёртая итерация Receipt
- 100% покрытие - элвисы в разных сеттерах
This commit is contained in:
@@ -41,7 +41,7 @@ trait HasEmail
|
||||
throw new InvalidEmailException($email);
|
||||
}
|
||||
}
|
||||
$this->email = empty($email) ? null : $email;
|
||||
$this->email = $email ?: null;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ trait HasInn
|
||||
throw new InvalidInnLengthException($inn);
|
||||
}
|
||||
}
|
||||
$this->inn = empty($inn) ? null : $inn;
|
||||
$this->inn = $inn ?: null;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user