1
0
mirror of https://github.com/fzaninotto/Faker.git synced 2025-03-21 15:59:52 +01:00

Fixed indentation and secure tld email method

This commit is contained in:
Birkir Rafn Gudjonsson 2013-04-22 23:41:11 +02:00
parent 3afbf00a90
commit 5f80a09346
3 changed files with 8 additions and 15 deletions

View File

@ -117,9 +117,9 @@ class Address extends \Faker\Provider\Address
*/
protected static $streetNameFormats = array(
'{{streetPrefix}}{{streetSuffix}}',
'{{streetPrefix}}{{streetSuffix}}',
'{{streetPrefix}}{{streetSuffix}}',
'{{firstNameMan}}{{streetSuffix}}',
'{{firstNameWoman}}{{streetSuffix}}'
'{{firstNameWoman}}{{streetSuffix}}'
);
/**

View File

@ -7,13 +7,6 @@ namespace Faker\Provider\is_IS;
*/
class Internet extends \Faker\Provider\Internet
{
/**
* @var array Some safe email TLD.
*/
protected static $safeEmailTld = array(
'org', 'com', 'net', 'is', 'is', 'is',
);
/**
* @var array Some email domains in Denmark.
*/

View File

@ -38,7 +38,7 @@ class Person extends \Faker\Provider\Person
public static function firstName()
{
return static::randomDigit() > 4 ? static::firstNameMan() : static::firstNameWoman();
return static::randomDigit() > 4 ? static::firstNameMan() : static::firstNameWoman();
}
/**
@ -53,7 +53,7 @@ class Person extends \Faker\Provider\Person
/**
* Randomly return a icelandic first name for woman.
*
*
* @return array
*/
public static function firstNameWoman()
@ -73,7 +73,7 @@ class Person extends \Faker\Provider\Person
/**
* Generate prepared last name for further processing
*
*
* @return string
*/
public static function lastName()
@ -95,7 +95,7 @@ class Person extends \Faker\Provider\Person
/**
* Randomly return a icelandic last name for woman.
*
*
* @return string
*/
public static function lastNameWoman()
@ -105,7 +105,7 @@ class Person extends \Faker\Provider\Person
/**
* Randomly return a icelandic last name for man.
*
*
* @return string
*/
public static function lastNameMan()
@ -136,7 +136,7 @@ class Person extends \Faker\Provider\Person
while ( ! $valid)
{
// make two random numbers
// make two random numbers
$rand = static::randomDigit().static::randomDigit();
// 8 char string with birth date and two random numbers