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:
parent
dc9e7ae8e6
commit
853896dc7f
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user