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 #1265 from iamraccoon/master
Browse files Browse the repository at this point in the history
Added more Ukrainian streets and removed irrelevant names. Added more Ukrainian mobile formats
  • Loading branch information
fzaninotto authored Aug 9, 2017
2 parents a0f4fa0 + 7352b45 commit 07ce8d9
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 9 deletions.
33 changes: 25 additions & 8 deletions src/Faker/Provider/uk_UA/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,18 +258,35 @@ class Address extends \Faker\Provider\Address
'Чернігів'
);

/**
* @see list of Ukraine street (2017-08-08), source: http://ukrexport.gov.ua/ukr/useful_info/gov/
*/
protected static $street = array(
'Тараса Шевченка',
'Лесі Українки',
'Леніна',
'40 років Перемоги',
'50 років Жовтня',
'Михайла Грушевського',
'Гагаріна',
'Космонавта Попова',
'Генерала Жадова',
'Пацаєва',
'Волкова',
'Урицького',
'П. Орлика',
'Хрещатик',
'Артема',
'Копиленка',
'Різницька',
'Лук’янівська',
'Паторжинського',
'Солом’янська',
'Арсенальна',
'Мельникова',
'Володимирська',
'Фізкультури',
'Львівська',
'Шота Руставелі',
'Прорізна',
'І. Франкa',
'Б. Грінченка',
'Інститутська',
'Пирогова',
'М. Коцюбинського',
'Володимирська'
);

protected static $addressFormats = array(
Expand Down
24 changes: 23 additions & 1 deletion src/Faker/Provider/uk_UA/PhoneNumber.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,48 @@

class PhoneNumber extends \Faker\Provider\PhoneNumber
{
/**
* @see list of Ukraine mobile formats (2017-08-08), source: https://ru.wikipedia.org/wiki/%D0%A2%D0%B5%D0%BB%D0%B5%D1%84%D0%BE%D0%BD%D0%BD%D1%8B%D0%B9_%D0%BF%D0%BB%D0%B0%D0%BD_%D0%BD%D1%83%D0%BC%D0%B5%D1%80%D0%B0%D1%86%D0%B8%D0%B8_%D0%A3%D0%BA%D1%80%D0%B0%D0%B8%D0%BD%D1%8B
*/
protected static $formats = array(

// International format (mobile)
'+38050#######',
'+38066#######',
'+38068#######',
'+38096#######',
'+38067#######',
'+38091#######',
'+38092#######',
'+38093#######',
'+38094#######',
'+38095#######',
'+38096#######',
'+38097#######',
'+38098#######',
'+38063#######',
'+38099#######',

// Internal country format (mobile)
'050#######',
'066#######',
'068#######',
'096#######',
'067#######',
'091#######',
'092#######',
'093#######',
'094#######',
'095#######',
'096#######',
'097#######',
'098#######',
'063#######',
'099#######',

// More generic formats
'+38(0##)#######',
'+38(0###)######'
'+38(0###)######',
'+38(0####)#####'
);
}

0 comments on commit 07ce8d9

Please sign in to comment.