mirror of
https://github.com/fzaninotto/Faker.git
synced 2025-03-22 00:09:59 +01:00
refactore safeEmail using safeEmailDomain
This commit is contained in:
parent
b21e325814
commit
198a5f338a
@ -38,7 +38,7 @@ class Internet extends \Faker\Provider\Base
|
||||
*/
|
||||
public function safeEmail()
|
||||
{
|
||||
return preg_replace('/\s/', '', $this->userName() . '@example.' . static::randomElement(static::$safeEmailTld));
|
||||
return preg_replace('/\s/', '', $this->userName() . '@' . static::safeEmailDomain());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user