1
0
mirror of https://github.com/fzaninotto/Faker.git synced 2025-03-22 16:29:55 +01:00

Remove overspecialized formatters from nl_NL provider

Refs #63, #95
This commit is contained in:
Francois Zaninotto 2013-01-01 16:09:45 +01:00
parent a0fc7c2e09
commit 140b5d4d3f
2 changed files with 60 additions and 89 deletions

View File

@ -109,33 +109,4 @@ class Address extends \Faker\Provider\Address
{
return static::randomElement(static::$cityNames);
}
/**
* @see parent
*/
public function address()
{
$address = parent::address();
return preg_replace('/\\\n/', PHP_EOL, $address);
}
/**
* Returns a NL latitude, roughly between 50.75 and 53.55
*
* @return float
*/
public static function latitude()
{
return number_format(mt_rand(50750000, 53550000)/1000000, 6);
}
/**
* Returns a NL longitude, roughly between 3.38 and 7.22
*
* @return float
*/
public static function longitude()
{
return number_format(mt_rand(3380000, 7220000)/1000000, 6);
}
}

File diff suppressed because one or more lines are too long