mirror of
https://github.com/fzaninotto/Faker.git
synced 2025-03-22 08:19:52 +01:00
Inconsistent identation fixed
This commit is contained in:
parent
3ace02cfc4
commit
d311285a0f
@ -4,14 +4,14 @@ namespace Faker\Provider\ua_UA;
|
||||
|
||||
class Address extends \Faker\Provider\Address
|
||||
{
|
||||
protected static $cityPrefix = array('місто');
|
||||
protected static $regionSuffix = array('область');
|
||||
protected static $streetPrefix = array(
|
||||
'вул.', 'пров.', 'пл.', 'просп.'
|
||||
);
|
||||
protected static $buildingNumber = array('##');
|
||||
protected static $postcode = array('#####');
|
||||
protected static $country = array(
|
||||
protected static $cityPrefix = array('місто');
|
||||
protected static $regionSuffix = array('область');
|
||||
protected static $streetPrefix = array(
|
||||
'вул.', 'пров.', 'пл.', 'просп.'
|
||||
);
|
||||
protected static $buildingNumber = array('##');
|
||||
protected static $postcode = array('#####');
|
||||
protected static $country = array(
|
||||
'Афганістан',
|
||||
'Албанія',
|
||||
'Алжир',
|
||||
@ -204,7 +204,7 @@ class Address extends \Faker\Provider\Address
|
||||
'Зімбабве',
|
||||
);
|
||||
|
||||
protected static $region = array(
|
||||
protected static $region = array(
|
||||
'Вінницька',
|
||||
'Волинська',
|
||||
'Дніпропетровська',
|
||||
@ -229,9 +229,9 @@ class Address extends \Faker\Provider\Address
|
||||
'Черкаська',
|
||||
'Чернівецька',
|
||||
'Чернігівська'
|
||||
);
|
||||
);
|
||||
|
||||
protected static $city = array(
|
||||
protected static $city = array(
|
||||
'Вінниця',
|
||||
'Луцьк',
|
||||
'Дніпропетровськ',
|
||||
@ -256,25 +256,25 @@ class Address extends \Faker\Provider\Address
|
||||
'Черкаси',
|
||||
'Чернівці',
|
||||
'Чернігів'
|
||||
);
|
||||
);
|
||||
|
||||
protected static $street = array(
|
||||
'Тараса Шевченка',
|
||||
'Лесі Українки',
|
||||
'Леніна',
|
||||
'40 років Перемоги',
|
||||
'50 років Жовтня',
|
||||
'Михайла Грушевського',
|
||||
'Гагаріна',
|
||||
'Космонавта Попова',
|
||||
'Генерала Жадова',
|
||||
'Пацаєва',
|
||||
'Волкова',
|
||||
);
|
||||
protected static $street = array(
|
||||
'Тараса Шевченка',
|
||||
'Лесі Українки',
|
||||
'Леніна',
|
||||
'40 років Перемоги',
|
||||
'50 років Жовтня',
|
||||
'Михайла Грушевського',
|
||||
'Гагаріна',
|
||||
'Космонавта Попова',
|
||||
'Генерала Жадова',
|
||||
'Пацаєва',
|
||||
'Волкова',
|
||||
);
|
||||
|
||||
protected static $addressFormats = array(
|
||||
"{{postcode}}, {{cityAndRegion}}, {{streetPrefix}} {{street}}, {{buildingNumber}}",
|
||||
);
|
||||
protected static $addressFormats = array(
|
||||
"{{postcode}}, {{cityAndRegion}}, {{streetPrefix}} {{street}}, {{buildingNumber}}",
|
||||
);
|
||||
|
||||
protected static $streetAddressFormats = array(
|
||||
"{{streetPrefix}} {{street}}, {{buildingNumber}}"
|
||||
@ -299,46 +299,46 @@ class Address extends \Faker\Provider\Address
|
||||
return '';
|
||||
}
|
||||
|
||||
public static function buildingNumber()
|
||||
{
|
||||
return static::numerify(static::randomElement(static::$buildingNumber));
|
||||
}
|
||||
public static function buildingNumber()
|
||||
{
|
||||
return static::numerify(static::randomElement(static::$buildingNumber));
|
||||
}
|
||||
|
||||
public function address()
|
||||
{
|
||||
public function address()
|
||||
{
|
||||
$format = static::randomElement(static::$addressFormats);
|
||||
return $this->generator->parse($format, array());
|
||||
}
|
||||
return $this->generator->parse($format, array());
|
||||
}
|
||||
|
||||
public static function country()
|
||||
{
|
||||
return static::randomElement(static::$country);
|
||||
}
|
||||
public static function country()
|
||||
{
|
||||
return static::randomElement(static::$country);
|
||||
}
|
||||
|
||||
public static function postcode()
|
||||
{
|
||||
return static::toUpper(static::bothify(static::randomElement(static::$postcode)));
|
||||
}
|
||||
public static function postcode()
|
||||
{
|
||||
return static::toUpper(static::bothify(static::randomElement(static::$postcode)));
|
||||
}
|
||||
|
||||
public static function regionSuffix()
|
||||
{
|
||||
return static::randomElement(static::$regionSuffix);
|
||||
}
|
||||
public static function regionSuffix()
|
||||
{
|
||||
return static::randomElement(static::$regionSuffix);
|
||||
}
|
||||
|
||||
public static function region()
|
||||
{
|
||||
return static::randomElement(static::$region);
|
||||
}
|
||||
public static function region()
|
||||
{
|
||||
return static::randomElement(static::$region);
|
||||
}
|
||||
|
||||
public static function cityPrefix()
|
||||
{
|
||||
return static::randomElement(static::$cityPrefix);
|
||||
}
|
||||
public static function cityPrefix()
|
||||
{
|
||||
return static::randomElement(static::$cityPrefix);
|
||||
}
|
||||
|
||||
public function city()
|
||||
{
|
||||
return static::randomElement(static::$city);
|
||||
}
|
||||
public function city()
|
||||
{
|
||||
return static::randomElement(static::$city);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get city and region together
|
||||
@ -355,13 +355,13 @@ class Address extends \Faker\Provider\Address
|
||||
return $this->generator->parse($format);
|
||||
}
|
||||
|
||||
public static function streetPrefix()
|
||||
{
|
||||
return static::randomElement(static::$streetPrefix);
|
||||
}
|
||||
public static function streetPrefix()
|
||||
{
|
||||
return static::randomElement(static::$streetPrefix);
|
||||
}
|
||||
|
||||
public static function street()
|
||||
{
|
||||
return static::randomElement(static::$street);
|
||||
}
|
||||
public static function street()
|
||||
{
|
||||
return static::randomElement(static::$street);
|
||||
}
|
||||
}
|
||||
|
@ -4,12 +4,12 @@ namespace Faker\Provider\ua_UA;
|
||||
|
||||
class Company extends \Faker\Provider\Company
|
||||
{
|
||||
protected static $formats = array(
|
||||
'{{companyName}}', // Вектор
|
||||
'{{companyPrefix}} "{{companyName}}"', // ТОВ "Інфоком"
|
||||
'{{companyName}}-{{companySuffix}}', // Сервіс-Плюс
|
||||
'{{companyPrefix}} "{{companyName}}-{{companySuffix}}"',// ПАТ "Альфа-Стиль"
|
||||
);
|
||||
protected static $formats = array(
|
||||
'{{companyName}}', // Вектор
|
||||
'{{companyPrefix}} "{{companyName}}"', // ТОВ "Інфоком"
|
||||
'{{companyName}}-{{companySuffix}}', // Сервіс-Плюс
|
||||
'{{companyPrefix}} "{{companyName}}-{{companySuffix}}"',// ПАТ "Альфа-Стиль"
|
||||
);
|
||||
|
||||
protected static $urlFormats = array(
|
||||
'{{companyName}}',
|
||||
@ -17,7 +17,7 @@ class Company extends \Faker\Provider\Company
|
||||
);
|
||||
|
||||
protected static $companyPrefix = array('ТОВ', 'ПП', 'ПАТ','ПрАТ');
|
||||
protected static $companySuffix = array('Сервіс','Плюс', 'Груп', 'Стиль', 'Дизайн');
|
||||
protected static $companySuffix = array('Сервіс','Плюс', 'Груп', 'Стиль', 'Дизайн');
|
||||
|
||||
protected static $companyName = array(
|
||||
'Вектор', 'Едельвейс', 'Смарт', 'Альфа', 'Система', 'Універсал',
|
||||
|
@ -14,7 +14,7 @@ class Internet extends \Faker\Provider\Internet
|
||||
{
|
||||
$format = static::randomElement(static::$userNameFormats);
|
||||
return static::toLower(static::bothify(
|
||||
Utils::cyrillicToLatin($this->generator->parse($format))
|
||||
Utils::cyrillicToLatin($this->generator->parse($format))
|
||||
)
|
||||
);
|
||||
}
|
||||
|
@ -4,12 +4,12 @@ namespace Faker\Provider\ua_UA;
|
||||
|
||||
class Person extends \Faker\Provider\Person
|
||||
{
|
||||
protected static $formats = array(
|
||||
'{{firstName}} {{middleName}} {{lastName}}',
|
||||
'{{lastName}} {{firstName}} {{middleName}}',
|
||||
);
|
||||
protected static $formats = array(
|
||||
'{{firstName}} {{middleName}} {{lastName}}',
|
||||
'{{lastName}} {{firstName}} {{middleName}}',
|
||||
);
|
||||
|
||||
protected static $firstName = array(
|
||||
protected static $firstName = array(
|
||||
'Олександр', 'Олексій', 'Дмитро', 'Сергій', 'Андрій', 'Антон',
|
||||
'Віталий', 'Володимир', 'Денис', 'Євген', 'Іван', 'Ігор',
|
||||
'Костянтин', 'Максим', 'Михайло', 'Миколай', 'Роман', 'Анатолій',
|
||||
@ -21,14 +21,14 @@ class Person extends \Faker\Provider\Person
|
||||
'Марк', 'Мирослав', 'Назар', 'Микита', 'Олег', 'Петро', 'Платон',
|
||||
'Ростислав', 'Руслан', 'Савва', 'Сава', 'Святослав', 'Семен', 'Степан',
|
||||
'Тарас', 'Тимофій', 'Федір', 'Фелікс', 'Юлій', 'Юрій', 'Ян', 'Ярослав',
|
||||
);
|
||||
);
|
||||
|
||||
protected static $middleName = array(
|
||||
'Олександрович', 'Олексійович', 'Андрійович', 'Євгенович',
|
||||
'Сергійович', 'Іванович', 'Федорович', 'Тарасович', 'Васильович', 'Романович'
|
||||
);
|
||||
protected static $middleName = array(
|
||||
'Олександрович', 'Олексійович', 'Андрійович', 'Євгенович',
|
||||
'Сергійович', 'Іванович', 'Федорович', 'Тарасович', 'Васильович', 'Романович'
|
||||
);
|
||||
|
||||
protected static $lastName = array(
|
||||
protected static $lastName = array(
|
||||
'Антоненко',
|
||||
'Василенко',
|
||||
'Васильчук',
|
||||
@ -59,16 +59,16 @@ class Person extends \Faker\Provider\Person
|
||||
'Шинкаренко',
|
||||
'Пономаренко',
|
||||
'Пономарчук',
|
||||
);
|
||||
);
|
||||
|
||||
/**
|
||||
* Return middle name
|
||||
* @example 'Іванович'
|
||||
* @access public
|
||||
* @return string Middle name
|
||||
*/
|
||||
public function middleName()
|
||||
{
|
||||
return static::randomElement(static::$middleName);
|
||||
}
|
||||
/**
|
||||
* Return middle name
|
||||
* @example 'Іванович'
|
||||
* @access public
|
||||
* @return string Middle name
|
||||
*/
|
||||
public function middleName()
|
||||
{
|
||||
return static::randomElement(static::$middleName);
|
||||
}
|
||||
}
|
||||
|
@ -4,27 +4,27 @@ namespace Faker\Provider\ua_UA;
|
||||
|
||||
class PhoneNumber extends \Faker\Provider\PhoneNumber
|
||||
{
|
||||
protected static $formats = array(
|
||||
protected static $formats = array(
|
||||
|
||||
// International format (mobile)
|
||||
// International format (mobile)
|
||||
'+38050#######',
|
||||
'+38096#######',
|
||||
'+38067#######',
|
||||
'+38093#######',
|
||||
'+38063#######',
|
||||
'+38099#######',
|
||||
'+38096#######',
|
||||
'+38067#######',
|
||||
'+38093#######',
|
||||
'+38063#######',
|
||||
'+38099#######',
|
||||
|
||||
// Internal country format (mobile)
|
||||
'050#######',
|
||||
'096#######',
|
||||
'067#######',
|
||||
'093#######',
|
||||
'063#######',
|
||||
'099#######',
|
||||
'096#######',
|
||||
'067#######',
|
||||
'093#######',
|
||||
'063#######',
|
||||
'099#######',
|
||||
|
||||
// More generic formats
|
||||
'+380#######',
|
||||
'+38(0##)#######',
|
||||
'+38(0###)######'
|
||||
);
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user