Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Commit

Permalink
Merge pull request #542 from ZAYEC77/master
Browse files Browse the repository at this point in the history
Add streetAddress formatter to ru locale provider
  • Loading branch information
fzaninotto committed Apr 27, 2015
2 parents a29a72d + 1ffbdd5 commit 1dc7404
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Faker/Provider/ru_RU/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ class Address extends \Faker\Provider\Address
"{{postcode}}, {{region}} {{regionSuffix}}, {{cityPrefix}} {{city}}, {{streetPrefix}} {{street}}, {{buildingNumber}}",
);

protected static $streetAddressFormats = array(
"{{streetPrefix}} {{street}}, {{buildingNumber}}"
);

public static function buildingNumber()
{
return static::numerify(static::randomElement(static::$buildingNumber));
Expand Down

0 comments on commit 1dc7404

Please sign in to comment.