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

Bug fix related to issue #1804 #1805

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/Faker/Provider/ru_RU/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ class Address extends \Faker\Provider\Address
protected static $streetAddressFormats = array(
"{{streetPrefix}} {{street}}, {{buildingNumber}}"
);

protected static $streetNameFormats = array(
'{{streetPrefix}} {{street}}'
);

public static function buildingNumber()
{
Expand Down Expand Up @@ -136,4 +140,11 @@ public static function street()
{
return static::randomElement(static::$street);
}

public function streetName()
{
$format = static::randomElement(static::$streetNameFormats);

return $this->generator->parse($format);
}
}