1
0
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:
Charles SANQUER 2013-02-11 10:40:36 +01:00
parent b21e325814
commit 198a5f338a

View File

@ -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());
}
/**