1
0
mirror of https://github.com/fzaninotto/Faker.git synced 2025-03-24 09:19:50 +01:00

Added ability for letter names in flats, such as 324a

This commit is contained in:
Matt Lody 2011-10-17 21:15:50 +01:00
parent dc9e7ae8e6
commit 853896dc7f

View File

@ -62,7 +62,7 @@ class Address extends \Faker\Provider\Address
protected static $addressFormats = array(
"{{streetAddress}}\n{{city}}, {{postcode}}",
);
protected static $secondaryAddressFormats = array('Flat ###', 'Studio ###');
protected static $secondaryAddressFormats = array('Flat ##', 'Flat ##?', 'Studio ##', 'Studio ##?');
/**
* @example 'East'
@ -77,7 +77,7 @@ class Address extends \Faker\Provider\Address
*/
public static function secondaryAddress()
{
return static::numerify(static::randomElement(static::$secondaryAddressFormats));
return static::bothify(static::randomElement(static::$secondaryAddressFormats));
}
/**