mirror of
https://github.com/fzaninotto/Faker.git
synced 2025-04-21 16:01:56 +02:00
Fix lastName specific gender for ru_RU locale
This commit is contained in:
parent
a1ddd129a8
commit
f71e9736b0
@ -174,22 +174,13 @@ class Person extends \Faker\Provider\Person
|
||||
public function lastName($gender = null)
|
||||
{
|
||||
if ($gender === static::GENDER_FEMALE) {
|
||||
return $this->lastNameFemale();
|
||||
$lastNameFormat = static::$lastNameFemaleFormat;
|
||||
}else{
|
||||
$lastNameFormat = static::$lastNameFormat;
|
||||
}
|
||||
$lastNameRandomElement = static::randomElement(static::$lastNameFormat);
|
||||
$lastNameRandomElement = static::randomElement($lastNameFormat);
|
||||
|
||||
return $this->generator->parse($lastNameRandomElement);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return last name for female
|
||||
*
|
||||
* @access public
|
||||
* @return string last name
|
||||
*/
|
||||
public static function lastNameFemale()
|
||||
{
|
||||
return static::randomElement(static::$lastNameFemaleFormat);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user