Permalink
Browse files

Remove BC break

  • Loading branch information...
1 parent b3ebffe commit b7b8b5cb43a038e6356eacdaf8c170b4e3872639 @TimWolla TimWolla committed Mar 4, 2013
Showing with 3 additions and 13 deletions.
  1. +3 −13 src/Faker/Provider/Internet.php
@@ -37,7 +37,7 @@ public function email()
*/
public final function safeEmail()
{
- return preg_replace('/\s/', '', $this->userName() . '@' . $this->safeEmailDomain());
+ return preg_replace('/\s/', '', $this->userName() . '@' . static::safeEmailDomain());
}
/**
@@ -66,26 +66,16 @@ public static function freeEmailDomain()
/**
* @example 'example.org'
- * @param boolean $knownTLD If set to true only domains with a well known TLD (i.e. com, org and net) are returned.
*/
- public final function safeEmailDomain($knownTLD = false)
+ public static final function safeEmailDomain()
{
$domains = array(
'example.com',
'example.org',
'example.net'
);
- if (!$knownTLD) {
- $domains[] = '*.example';
- $domains[] = '*.test';
- $domains[] = '*.invalid';
- $domains[] = '*.lan';
- }
-
- $domain = static::randomElement($domains);
-
- return str_replace('*', $this->domainWord(), $domain);
+ return static::randomElement($domains);
}
/**
* @example 'jdoe'

0 comments on commit b7b8b5c

Please sign in to comment.