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

Added more Ukrainian streets and removed irrelevant names. Added more Ukrainian mobile formats #1265

Merged
merged 2 commits into from
Aug 9, 2017
Merged
Show file tree
Hide file tree
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
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####)#####'
);
}