1
0
mirror of https://github.com/fzaninotto/Faker.git synced 2025-04-21 16:01:56 +02:00

Replace latin 'a' letter to cyrillic 'а' letter (#2018)

This commit is contained in:
Oleg 2020-10-23 10:24:49 +03:00 committed by GitHub
parent b3edb9539e
commit 47849559f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ class Person extends \Faker\Provider\Person
/**
* This provider uses wikipedia's 250 top russian last names
* That list of MALE last names could be safely extended to FEMALE list just by adding 'a' letter at the end
* That list of MALE last names could be safely extended to FEMALE list just by adding 'а' letter at the end
*/
protected static $femaleNameFormats = [
'{{firstNameFemale}} {{middleNameFemale}} {{lastName}}а',
@ -105,7 +105,7 @@ class Person extends \Faker\Provider\Person
'Меркушев', 'Лыткин', 'Туров',
];
protected static $lastNameSuffix = ['a', ''];
protected static $lastNameSuffix = ['а', ''];
/**
* Return male middle name
@ -169,7 +169,7 @@ class Person extends \Faker\Provider\Person
$lastName = static::randomElement(static::$lastName);
if (static::GENDER_FEMALE === $gender) {
return $lastName . 'a';
return $lastName . 'а';
} elseif (static::GENDER_MALE === $gender) {
return $lastName;
}