Aggiornato Composer
This commit is contained in:
40
vendor/fakerphp/faker/CHANGELOG.md
vendored
40
vendor/fakerphp/faker/CHANGELOG.md
vendored
@@ -1,6 +1,42 @@
|
||||
# CHANGELOG
|
||||
|
||||
## [Unreleased](https://github.com/FakerPHP/Faker/compare/v1.19.0...main)
|
||||
## [Unreleased](https://github.com/FakerPHP/Faker/compare/v1.23.1...1.23)
|
||||
|
||||
## [2023-09-29, v1.23.1](https://github.com/FakerPHP/Faker/compare/v1.23.0..v1.23.1)
|
||||
|
||||
- Fixed double `а` female lastName in `ru_RU/Person::name()` (#832)
|
||||
- Fixed polish license plates (#685)
|
||||
- Stopped using `static` in callables in `Provider\pt_BR\PhoneNumber` (#785)
|
||||
- Fixed incorrect female name (#794)
|
||||
- Stopped using the deprecated `MT_RAND_PHP` constant to seed the random generator on PHP 8.3 (#844)
|
||||
|
||||
## [2023-06-12, v1.23.0](https://github.com/FakerPHP/Faker/compare/v1.22.0..v1.23.0)
|
||||
|
||||
- Update `randomElements` to return random number of elements when no count is provided (#658)
|
||||
|
||||
## [2023-05-14, v1.22.0](https://github.com/FakerPHP/Faker/compare/v1.21.0..v1.22.0)
|
||||
|
||||
- Fixed `randomElements()` to accept empty iterator (#605)
|
||||
- Added support for passing an `Enum` to `randomElement()` and `randomElements()` (#620)
|
||||
- Started rejecting invalid arguments passed to `randomElement()` and `randomElements()` (#642)
|
||||
|
||||
## [2022-12-13, v1.21.0](https://github.com/FakerPHP/Faker/compare/v1.20.0..v1.21.0)
|
||||
|
||||
- Dropped support for PHP 7.1, 7.2, and 7.3 (#543)
|
||||
- Added support for PHP 8.2 (#528)
|
||||
|
||||
## [2022-07-20, v1.20.0](https://github.com/FakerPHP/Faker/compare/v1.19.0..v1.20.0)
|
||||
|
||||
- Fixed typo in French phone number (#452)
|
||||
- Fixed some Hungarian naming bugs (#451)
|
||||
- Fixed bug where the NL-BE VAT generation was incorrect (#455)
|
||||
- Improve Turkish phone numbers for E164 and added landline support (#460)
|
||||
- Add Microsoft Edge User Agent (#464)
|
||||
- Added option to set image formats on Faker\Provider\Image (#473)
|
||||
- Added support for French color translations (#466)
|
||||
- Support filtering timezones by country code (#480)
|
||||
- Fixed typo in some greek names (#490)
|
||||
- Marked the Faker\Provider\Image as deprecated
|
||||
|
||||
## [2022-02-02, v1.19.0](https://github.com/FakerPHP/Faker/compare/v1.18.0..v1.19.0)
|
||||
|
||||
@@ -13,7 +49,7 @@
|
||||
- Fix is_IS Address docbock type (#438)
|
||||
- Fix regexify escape backslash in character class (#434)
|
||||
- Removed UUID from Generator to be able to extend it (#441)
|
||||
-
|
||||
|
||||
## [2022-01-23, v1.18.0](https://github.com/FakerPHP/Faker/compare/v1.17.0..v1.18.0)
|
||||
|
||||
- Deprecated UUID, use uuid3 to specify version (#427)
|
||||
|
||||
40
vendor/fakerphp/faker/README.md
vendored
40
vendor/fakerphp/faker/README.md
vendored
@@ -15,7 +15,7 @@ It's heavily inspired by Perl's [Data::Faker](https://metacpan.org/pod/Data::Fak
|
||||
|
||||
### Installation
|
||||
|
||||
Faker requires PHP >= 7.1.
|
||||
Faker requires PHP >= 7.4.
|
||||
|
||||
```shell
|
||||
composer require fakerphp/faker
|
||||
@@ -57,6 +57,44 @@ for ($i = 0; $i < 3; $i++) {
|
||||
// 'Orlo Bergstrom'
|
||||
```
|
||||
|
||||
## Automated refactoring
|
||||
|
||||
If you already used this library with its properties, they are now deprecated and needs to be replaced by their equivalent methods.
|
||||
|
||||
You can use the provided [Rector](https://github.com/rectorphp/rector) config file to automate the work.
|
||||
|
||||
Run
|
||||
|
||||
```bash
|
||||
composer require --dev rector/rector
|
||||
```
|
||||
|
||||
to install `rector/rector`.
|
||||
|
||||
Run
|
||||
|
||||
```bash
|
||||
vendor/bin/rector process src/ --config vendor/fakerphp/faker/rector-migrate.php
|
||||
```
|
||||
|
||||
to run `rector/rector`.
|
||||
|
||||
*Note:* do not forget to replace `src/` with the path to your source directory.
|
||||
|
||||
Alternatively, import the configuration in your `rector.php` file:
|
||||
|
||||
```php
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Rector\Config;
|
||||
|
||||
return static function (Config\RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->import('vendor/fakerphp/faker/rector-migrate.php');
|
||||
};
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
Faker is released under the MIT License. See [`LICENSE`](LICENSE) for details.
|
||||
|
||||
10
vendor/fakerphp/faker/composer.json
vendored
10
vendor/fakerphp/faker/composer.json
vendored
@@ -14,7 +14,7 @@
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": "^7.1 || ^8.0",
|
||||
"php": "^7.4 || ^8.0",
|
||||
"psr/container": "^1.0 || ^2.0",
|
||||
"symfony/deprecation-contracts": "^2.2 || ^3.0"
|
||||
},
|
||||
@@ -22,7 +22,8 @@
|
||||
"ext-intl": "*",
|
||||
"bamarni/composer-bin-plugin": "^1.4.1",
|
||||
"doctrine/persistence": "^1.3 || ^2.0",
|
||||
"symfony/phpunit-bridge": "^4.4 || ^5.2"
|
||||
"phpunit/phpunit": "^9.5.26",
|
||||
"symfony/phpunit-bridge": "^5.4.16"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
@@ -51,10 +52,5 @@
|
||||
"composer/package-versions-deprecated": true
|
||||
},
|
||||
"sort-packages": true
|
||||
},
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-main": "v1.19-dev"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
196
vendor/fakerphp/faker/psalm.baseline.xml
vendored
196
vendor/fakerphp/faker/psalm.baseline.xml
vendored
@@ -1,196 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<files psalm-version="4.17.0@6f4707aa41c9174353a6434bba3fc8840f981d9c">
|
||||
<file src="src/Faker/Calculator/Luhn.php">
|
||||
<InvalidReturnStatement occurrences="1">
|
||||
<code>0</code>
|
||||
</InvalidReturnStatement>
|
||||
<InvalidReturnType occurrences="1">
|
||||
<code>string</code>
|
||||
</InvalidReturnType>
|
||||
</file>
|
||||
<file src="src/Faker/Generator.php">
|
||||
<InvalidReturnStatement occurrences="3">
|
||||
<code>$this->uniqueGenerator</code>
|
||||
<code>new ChanceGenerator($this, $weight, $default)</code>
|
||||
<code>new ValidGenerator($this, $validator, $maxRetries)</code>
|
||||
</InvalidReturnStatement>
|
||||
<InvalidReturnType occurrences="3">
|
||||
<code>self</code>
|
||||
<code>self</code>
|
||||
<code>self</code>
|
||||
</InvalidReturnType>
|
||||
</file>
|
||||
<file src="src/Faker/ORM/CakePHP/EntityPopulator.php">
|
||||
<UndefinedClass occurrences="1">
|
||||
<code>TableRegistry</code>
|
||||
</UndefinedClass>
|
||||
</file>
|
||||
<file src="src/Faker/ORM/Doctrine/EntityPopulator.php">
|
||||
<UndefinedClass occurrences="6">
|
||||
<code>$this->class</code>
|
||||
<code>\Doctrine\ODM\MongoDB\Mapping\ClassMetadata</code>
|
||||
<code>\Doctrine\ODM\MongoDB\Mapping\ClassMetadata</code>
|
||||
<code>\Doctrine\ODM\MongoDB\Mapping\ClassMetadata</code>
|
||||
<code>\Doctrine\ORM\Mapping\ClassMetadata</code>
|
||||
<code>\Doctrine\ORM\Mapping\ClassMetadata</code>
|
||||
</UndefinedClass>
|
||||
<UndefinedInterfaceMethod occurrences="3">
|
||||
<code>createQueryBuilder</code>
|
||||
<code>getAssociationMappings</code>
|
||||
<code>newInstance</code>
|
||||
</UndefinedInterfaceMethod>
|
||||
</file>
|
||||
<file src="src/Faker/ORM/Mandango/EntityPopulator.php">
|
||||
<UndefinedClass occurrences="2">
|
||||
<code>Mandango</code>
|
||||
<code>Mandango</code>
|
||||
</UndefinedClass>
|
||||
</file>
|
||||
<file src="src/Faker/ORM/Mandango/Populator.php">
|
||||
<UndefinedClass occurrences="2">
|
||||
<code>$this->mandango</code>
|
||||
<code>Mandango</code>
|
||||
</UndefinedClass>
|
||||
</file>
|
||||
<file src="src/Faker/ORM/Propel/ColumnTypeGuesser.php">
|
||||
<UndefinedClass occurrences="1">
|
||||
<code>\ColumnMap</code>
|
||||
</UndefinedClass>
|
||||
</file>
|
||||
<file src="src/Faker/ORM/Propel/EntityPopulator.php">
|
||||
<UndefinedClass occurrences="9">
|
||||
<code>$columnMap</code>
|
||||
<code>$columnMap</code>
|
||||
<code>$columnMap</code>
|
||||
<code>$columnMap</code>
|
||||
<code>$columnMap</code>
|
||||
<code>$columnMap</code>
|
||||
<code>$columnMap</code>
|
||||
<code>$columnMap</code>
|
||||
<code>\ColumnMap</code>
|
||||
</UndefinedClass>
|
||||
</file>
|
||||
<file src="src/Faker/ORM/Propel/Populator.php">
|
||||
<UndefinedClass occurrences="1">
|
||||
<code>\Propel</code>
|
||||
</UndefinedClass>
|
||||
<UndefinedDocblockClass occurrences="1">
|
||||
<code>PropelPDO</code>
|
||||
</UndefinedDocblockClass>
|
||||
</file>
|
||||
<file src="src/Faker/ORM/Propel2/ColumnTypeGuesser.php">
|
||||
<UndefinedClass occurrences="1">
|
||||
<code>ColumnMap</code>
|
||||
</UndefinedClass>
|
||||
</file>
|
||||
<file src="src/Faker/ORM/Propel2/EntityPopulator.php">
|
||||
<UndefinedClass occurrences="9">
|
||||
<code>$columnMap</code>
|
||||
<code>$columnMap</code>
|
||||
<code>$columnMap</code>
|
||||
<code>$columnMap</code>
|
||||
<code>$columnMap</code>
|
||||
<code>$columnMap</code>
|
||||
<code>$columnMap</code>
|
||||
<code>$columnMap</code>
|
||||
<code>ColumnMap</code>
|
||||
</UndefinedClass>
|
||||
</file>
|
||||
<file src="src/Faker/ORM/Propel2/Populator.php">
|
||||
<UndefinedClass occurrences="1">
|
||||
<code>Propel</code>
|
||||
</UndefinedClass>
|
||||
<UndefinedDocblockClass occurrences="1">
|
||||
<code>PropelPDO</code>
|
||||
</UndefinedDocblockClass>
|
||||
</file>
|
||||
<file src="src/Faker/ORM/Spot/EntityPopulator.php">
|
||||
<InvalidReturnStatement occurrences="1">
|
||||
<code>$this->mapper</code>
|
||||
</InvalidReturnStatement>
|
||||
<InvalidReturnType occurrences="1">
|
||||
<code>string</code>
|
||||
</InvalidReturnType>
|
||||
<UndefinedClass occurrences="5">
|
||||
<code>$relation</code>
|
||||
<code>$relation</code>
|
||||
<code>BelongsTo</code>
|
||||
<code>Locator</code>
|
||||
<code>Mapper</code>
|
||||
</UndefinedClass>
|
||||
<UndefinedDocblockClass occurrences="8">
|
||||
<code>$locator</code>
|
||||
<code>$this->mapper</code>
|
||||
<code>$this->mapper</code>
|
||||
<code>$this->mapper</code>
|
||||
<code>$this->mapper</code>
|
||||
<code>$this->mapper</code>
|
||||
<code>Locator</code>
|
||||
<code>Mapper</code>
|
||||
</UndefinedDocblockClass>
|
||||
</file>
|
||||
<file src="src/Faker/ORM/Spot/Populator.php">
|
||||
<UndefinedClass occurrences="2">
|
||||
<code>$this->locator</code>
|
||||
<code>Locator</code>
|
||||
</UndefinedClass>
|
||||
<UndefinedDocblockClass occurrences="1">
|
||||
<code>Locator</code>
|
||||
</UndefinedDocblockClass>
|
||||
</file>
|
||||
<file src="src/Faker/Provider/Base.php">
|
||||
<UndefinedDocblockClass occurrences="1">
|
||||
<code>Closure</code>
|
||||
</UndefinedDocblockClass>
|
||||
</file>
|
||||
<file src="src/Faker/Provider/File.php">
|
||||
<FalsableReturnStatement occurrences="1">
|
||||
<code>false</code>
|
||||
</FalsableReturnStatement>
|
||||
</file>
|
||||
<file src="src/Faker/Provider/PhoneNumber.php">
|
||||
<InvalidReturnStatement occurrences="1">
|
||||
<code>$imei</code>
|
||||
</InvalidReturnStatement>
|
||||
<InvalidReturnType occurrences="1">
|
||||
<code>int</code>
|
||||
</InvalidReturnType>
|
||||
</file>
|
||||
<file src="src/Faker/Provider/ar_SA/Address.php">
|
||||
<UndefinedPropertyFetch occurrences="1">
|
||||
<code>static::$cityPrefix</code>
|
||||
</UndefinedPropertyFetch>
|
||||
</file>
|
||||
<file src="src/Faker/Provider/cs_CZ/Person.php">
|
||||
<NonStaticSelfCall occurrences="2">
|
||||
<code>static::birthNumber(static::GENDER_FEMALE)</code>
|
||||
<code>static::birthNumber(static::GENDER_MALE)</code>
|
||||
</NonStaticSelfCall>
|
||||
</file>
|
||||
<file src="src/Faker/Provider/en_SG/Person.php">
|
||||
<InvalidArrayOffset occurrences="1">
|
||||
<code>$checksumArr[$checksum % 11]</code>
|
||||
</InvalidArrayOffset>
|
||||
</file>
|
||||
<file src="src/Faker/Provider/is_IS/Person.php">
|
||||
<InvalidArrayOffset occurrences="1">
|
||||
<code>$ref[$i]</code>
|
||||
</InvalidArrayOffset>
|
||||
</file>
|
||||
<file src="src/Faker/Provider/ja_JP/Text.php">
|
||||
<UndefinedMethod occurrences="1">
|
||||
<code>static::split($text)</code>
|
||||
</UndefinedMethod>
|
||||
</file>
|
||||
<file src="src/Faker/Provider/pl_PL/Person.php">
|
||||
<UndefinedDocblockClass occurrences="1">
|
||||
<code>DateTime</code>
|
||||
</UndefinedDocblockClass>
|
||||
</file>
|
||||
<file src="src/Faker/Provider/sl_SI/Person.php">
|
||||
<NonStaticSelfCall occurrences="2">
|
||||
<code>static::lastName()</code>
|
||||
<code>static::lastName()</code>
|
||||
</NonStaticSelfCall>
|
||||
</file>
|
||||
</files>
|
||||
@@ -17,11 +17,9 @@ class Ean
|
||||
*
|
||||
* @see https://en.wikipedia.org/wiki/International_Article_Number
|
||||
*
|
||||
* @param string $digits
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public static function checksum($digits)
|
||||
public static function checksum(string $digits)
|
||||
{
|
||||
$sequence = (strlen($digits) + 1) === 8 ? [3, 1] : [1, 3];
|
||||
$sums = 0;
|
||||
@@ -41,7 +39,7 @@ class Ean
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function isValid($ean)
|
||||
public static function isValid(string $ean)
|
||||
{
|
||||
if (!preg_match(self::PATTERN, $ean)) {
|
||||
return false;
|
||||
|
||||
@@ -7,17 +7,21 @@ class Iban
|
||||
/**
|
||||
* Generates IBAN Checksum
|
||||
*
|
||||
* @param string $iban
|
||||
*
|
||||
* @return string Checksum (numeric string)
|
||||
*/
|
||||
public static function checksum($iban)
|
||||
public static function checksum(string $iban)
|
||||
{
|
||||
// Move first four digits to end and set checksum to '00'
|
||||
$checkString = substr($iban, 4) . substr($iban, 0, 2) . '00';
|
||||
|
||||
// Replace all letters with their number equivalents
|
||||
$checkString = preg_replace_callback('/[A-Z]/', ['self', 'alphaToNumberCallback'], $checkString);
|
||||
$checkString = preg_replace_callback(
|
||||
'/[A-Z]/',
|
||||
static function (array $matches): string {
|
||||
return (string) self::alphaToNumber($matches[0]);
|
||||
},
|
||||
$checkString,
|
||||
);
|
||||
|
||||
// Perform mod 97 and subtract from 98
|
||||
$checksum = 98 - self::mod97($checkString);
|
||||
@@ -25,24 +29,12 @@ class Iban
|
||||
return str_pad($checksum, 2, '0', STR_PAD_LEFT);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $match
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
private static function alphaToNumberCallback($match)
|
||||
{
|
||||
return self::alphaToNumber($match[0]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts letter to number
|
||||
*
|
||||
* @param string $char
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public static function alphaToNumber($char)
|
||||
public static function alphaToNumber(string $char)
|
||||
{
|
||||
return ord($char) - 55;
|
||||
}
|
||||
@@ -54,7 +46,7 @@ class Iban
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public static function mod97($number)
|
||||
public static function mod97(string $number)
|
||||
{
|
||||
$checksum = (int) $number[0];
|
||||
|
||||
@@ -68,11 +60,9 @@ class Iban
|
||||
/**
|
||||
* Checks whether an IBAN has a valid checksum
|
||||
*
|
||||
* @param string $iban
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function isValid($iban)
|
||||
public static function isValid(string $iban)
|
||||
{
|
||||
return self::checksum($iban) === substr($iban, 2, 2);
|
||||
}
|
||||
|
||||
@@ -34,9 +34,9 @@ class Isbn
|
||||
$digits = str_split($input);
|
||||
array_walk(
|
||||
$digits,
|
||||
static function (&$digit, $position) {
|
||||
static function (&$digit, $position): void {
|
||||
$digit = (10 - $position) * $digit;
|
||||
}
|
||||
},
|
||||
);
|
||||
$result = (11 - array_sum($digits) % 11) % 11;
|
||||
|
||||
|
||||
@@ -13,11 +13,9 @@ namespace Faker\Calculator;
|
||||
class Luhn
|
||||
{
|
||||
/**
|
||||
* @param string $number
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
private static function checksum($number)
|
||||
private static function checksum(string $number)
|
||||
{
|
||||
$number = (string) $number;
|
||||
$length = strlen($number);
|
||||
@@ -35,16 +33,14 @@ class Luhn
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $partialNumber
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function computeCheckDigit($partialNumber)
|
||||
public static function computeCheckDigit(string $partialNumber)
|
||||
{
|
||||
$checkDigit = self::checksum($partialNumber . '0');
|
||||
|
||||
if ($checkDigit === 0) {
|
||||
return 0;
|
||||
return '0';
|
||||
}
|
||||
|
||||
return (string) (10 - $checkDigit);
|
||||
@@ -53,11 +49,9 @@ class Luhn
|
||||
/**
|
||||
* Checks whether a number (partial number + check digit) is Luhn compliant
|
||||
*
|
||||
* @param string $number
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function isValid($number)
|
||||
public static function isValid(string $number)
|
||||
{
|
||||
return self::checksum($number) === 0;
|
||||
}
|
||||
@@ -65,11 +59,9 @@ class Luhn
|
||||
/**
|
||||
* Generate a Luhn compliant number.
|
||||
*
|
||||
* @param string $partialValue
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function generateLuhnNumber($partialValue)
|
||||
public static function generateLuhnNumber(string $partialValue)
|
||||
{
|
||||
if (!preg_match('/^\d+$/', $partialValue)) {
|
||||
throw new \InvalidArgumentException('Argument should be an integer.');
|
||||
|
||||
@@ -12,6 +12,13 @@ use Faker\Extension;
|
||||
*/
|
||||
final class Barcode implements Extension\BarcodeExtension
|
||||
{
|
||||
private Extension\NumberExtension $numberExtension;
|
||||
|
||||
public function __construct(Extension\NumberExtension $numberExtension = null)
|
||||
{
|
||||
$this->numberExtension = $numberExtension ?: new Number();
|
||||
}
|
||||
|
||||
private function ean(int $length = 13): string
|
||||
{
|
||||
$code = Extension\Helper::numerify(str_repeat('#', $length - 1));
|
||||
@@ -38,7 +45,7 @@ final class Barcode implements Extension\BarcodeExtension
|
||||
|
||||
public function isbn13(): string
|
||||
{
|
||||
$code = '97' . mt_rand(8, 9) . Extension\Helper::numerify(str_repeat('#', 9));
|
||||
$code = '97' . $this->numberExtension->numberBetween(8, 9) . Extension\Helper::numerify(str_repeat('#', 9));
|
||||
|
||||
return sprintf('%s%s', $code, Calculator\Ean::checksum($code));
|
||||
}
|
||||
|
||||
@@ -14,12 +14,12 @@ final class Blood implements Extension\BloodExtension
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
private $bloodTypes = ['A', 'AB', 'B', 'O'];
|
||||
private array $bloodTypes = ['A', 'AB', 'B', 'O'];
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
private $bloodRhFactors = ['+', '-'];
|
||||
private array $bloodRhFactors = ['+', '-'];
|
||||
|
||||
public function bloodType(): string
|
||||
{
|
||||
@@ -36,7 +36,7 @@ final class Blood implements Extension\BloodExtension
|
||||
return sprintf(
|
||||
'%s%s',
|
||||
$this->bloodType(),
|
||||
$this->bloodRh()
|
||||
$this->bloodRh(),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
55
vendor/fakerphp/faker/src/Faker/Core/Color.php
vendored
55
vendor/fakerphp/faker/src/Faker/Core/Color.php
vendored
@@ -12,19 +12,20 @@ use Faker\Extension\Helper;
|
||||
*/
|
||||
final class Color implements Extension\ColorExtension
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
private $safeColorNames = [
|
||||
'black', 'maroon', 'green', 'navy', 'olive',
|
||||
'purple', 'teal', 'lime', 'blue', 'silver',
|
||||
'gray', 'yellow', 'fuchsia', 'aqua', 'white',
|
||||
];
|
||||
private Extension\NumberExtension $numberExtension;
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
private $allColorNames = [
|
||||
private array $safeColorNames = [
|
||||
'black', 'maroon', 'green', 'navy', 'olive',
|
||||
'purple', 'teal', 'lime', 'blue', 'silver',
|
||||
'gray', 'yellow', 'fuchsia', 'aqua', 'white',
|
||||
];
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
private array $allColorNames = [
|
||||
'AliceBlue', 'AntiqueWhite', 'Aqua', 'Aquamarine',
|
||||
'Azure', 'Beige', 'Bisque', 'Black', 'BlanchedAlmond',
|
||||
'Blue', 'BlueViolet', 'Brown', 'BurlyWood', 'CadetBlue',
|
||||
@@ -53,14 +54,17 @@ final class Color implements Extension\ColorExtension
|
||||
'Turquoise', 'Violet', 'Wheat', 'White', 'WhiteSmoke', 'Yellow', 'YellowGreen',
|
||||
];
|
||||
|
||||
public function __construct(Extension\NumberExtension $numberExtension = null)
|
||||
{
|
||||
$this->numberExtension = $numberExtension ?: new Number();
|
||||
}
|
||||
|
||||
/**
|
||||
* @example '#fa3cc2'
|
||||
*/
|
||||
public function hexColor(): string
|
||||
{
|
||||
$number = new Number();
|
||||
|
||||
return '#' . str_pad(dechex($number->numberBetween(1, 16777215)), 6, '0', STR_PAD_LEFT);
|
||||
return '#' . str_pad(dechex($this->numberExtension->numberBetween(1, 16777215)), 6, '0', STR_PAD_LEFT);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -68,8 +72,7 @@ final class Color implements Extension\ColorExtension
|
||||
*/
|
||||
public function safeHexColor(): string
|
||||
{
|
||||
$number = new Number();
|
||||
$color = str_pad(dechex($number->numberBetween(0, 255)), 3, '0', STR_PAD_LEFT);
|
||||
$color = str_pad(dechex($this->numberExtension->numberBetween(0, 255)), 3, '0', STR_PAD_LEFT);
|
||||
|
||||
return sprintf(
|
||||
'#%s%s%s%s%s%s',
|
||||
@@ -78,7 +81,7 @@ final class Color implements Extension\ColorExtension
|
||||
$color[1],
|
||||
$color[1],
|
||||
$color[2],
|
||||
$color[2]
|
||||
$color[2],
|
||||
);
|
||||
}
|
||||
|
||||
@@ -113,7 +116,7 @@ final class Color implements Extension\ColorExtension
|
||||
{
|
||||
return sprintf(
|
||||
'rgb(%s)',
|
||||
$this->rgbColor()
|
||||
$this->rgbColor(),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -122,12 +125,10 @@ final class Color implements Extension\ColorExtension
|
||||
*/
|
||||
public function rgbaCssColor(): string
|
||||
{
|
||||
$number = new Number();
|
||||
|
||||
return sprintf(
|
||||
'rgba(%s,%s)',
|
||||
$this->rgbColor(),
|
||||
$number->randomFloat(1, 0, 1)
|
||||
$this->numberExtension->randomFloat(1, 0, 1),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -152,13 +153,11 @@ final class Color implements Extension\ColorExtension
|
||||
*/
|
||||
public function hslColor(): string
|
||||
{
|
||||
$number = new Number();
|
||||
|
||||
return sprintf(
|
||||
'%s,%s,%s',
|
||||
$number->numberBetween(0, 360),
|
||||
$number->numberBetween(0, 100),
|
||||
$number->numberBetween(0, 100)
|
||||
$this->numberExtension->numberBetween(0, 360),
|
||||
$this->numberExtension->numberBetween(0, 100),
|
||||
$this->numberExtension->numberBetween(0, 100),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -169,12 +168,10 @@ final class Color implements Extension\ColorExtension
|
||||
*/
|
||||
public function hslColorAsArray(): array
|
||||
{
|
||||
$number = new Number();
|
||||
|
||||
return [
|
||||
$number->numberBetween(0, 360),
|
||||
$number->numberBetween(0, 100),
|
||||
$number->numberBetween(0, 100),
|
||||
$this->numberExtension->numberBetween(0, 360),
|
||||
$this->numberExtension->numberBetween(0, 100),
|
||||
$this->numberExtension->numberBetween(0, 100),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,10 +4,20 @@ declare(strict_types=1);
|
||||
|
||||
namespace Faker\Core;
|
||||
|
||||
use Faker\Extension\Extension;
|
||||
use Faker\Extension;
|
||||
|
||||
class Coordinates implements Extension
|
||||
/**
|
||||
* @experimental This class is experimental and does not fall under our BC promise
|
||||
*/
|
||||
final class Coordinates implements Extension\Extension
|
||||
{
|
||||
private Extension\NumberExtension $numberExtension;
|
||||
|
||||
public function __construct(Extension\NumberExtension $numberExtension = null)
|
||||
{
|
||||
$this->numberExtension = $numberExtension ?: new Number();
|
||||
}
|
||||
|
||||
/**
|
||||
* @example '77.147489'
|
||||
*
|
||||
@@ -52,8 +62,8 @@ class Coordinates implements Extension
|
||||
public function localCoordinates(): array
|
||||
{
|
||||
return [
|
||||
'latitude' => static::latitude(),
|
||||
'longitude' => static::longitude(),
|
||||
'latitude' => $this->latitude(),
|
||||
'longitude' => $this->longitude(),
|
||||
];
|
||||
}
|
||||
|
||||
@@ -63,6 +73,6 @@ class Coordinates implements Extension
|
||||
throw new \LogicException('Invalid coordinates boundaries');
|
||||
}
|
||||
|
||||
return round($min + mt_rand() / mt_getrandmax() * ($max - $min), $nbMaxDecimals);
|
||||
return $this->numberExtension->randomFloat($nbMaxDecimals, $min, $max);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ final class File implements Extension\FileExtension
|
||||
*
|
||||
* @see http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
|
||||
*/
|
||||
private $mimeTypes = [
|
||||
private array $mimeTypes = [
|
||||
'application/atom+xml' => 'atom',
|
||||
'application/ecmascript' => 'ecma',
|
||||
'application/emma+xml' => 'emma',
|
||||
|
||||
16
vendor/fakerphp/faker/src/Faker/Core/Number.php
vendored
16
vendor/fakerphp/faker/src/Faker/Core/Number.php
vendored
@@ -13,20 +13,20 @@ final class Number implements Extension\NumberExtension
|
||||
{
|
||||
public function numberBetween(int $min = 0, int $max = 2147483647): int
|
||||
{
|
||||
$int1 = $min < $max ? $min : $max;
|
||||
$int2 = $min < $max ? $max : $min;
|
||||
$int1 = min($min, $max);
|
||||
$int2 = max($min, $max);
|
||||
|
||||
return mt_rand($int1, $int2);
|
||||
}
|
||||
|
||||
public function randomDigit(): int
|
||||
{
|
||||
return mt_rand(0, 9);
|
||||
return $this->numberBetween(0, 9);
|
||||
}
|
||||
|
||||
public function randomDigitNot(int $except): int
|
||||
{
|
||||
$result = self::numberBetween(0, 8);
|
||||
$result = $this->numberBetween(0, 8);
|
||||
|
||||
if ($result >= $except) {
|
||||
++$result;
|
||||
@@ -37,7 +37,7 @@ final class Number implements Extension\NumberExtension
|
||||
|
||||
public function randomDigitNotZero(): int
|
||||
{
|
||||
return mt_rand(1, 9);
|
||||
return $this->numberBetween(1, 9);
|
||||
}
|
||||
|
||||
public function randomFloat(?int $nbMaxDecimals = null, float $min = 0, ?float $max = null): float
|
||||
@@ -60,7 +60,7 @@ final class Number implements Extension\NumberExtension
|
||||
$max = $tmp;
|
||||
}
|
||||
|
||||
return round($min + mt_rand() / mt_getrandmax() * ($max - $min), $nbMaxDecimals);
|
||||
return round($min + $this->numberBetween() / mt_getrandmax() * ($max - $min), $nbMaxDecimals);
|
||||
}
|
||||
|
||||
public function randomNumber(int $nbDigits = null, bool $strict = false): int
|
||||
@@ -75,9 +75,9 @@ final class Number implements Extension\NumberExtension
|
||||
}
|
||||
|
||||
if ($strict) {
|
||||
return mt_rand(10 ** ($nbDigits - 1), $max);
|
||||
return $this->numberBetween(10 ** ($nbDigits - 1), $max);
|
||||
}
|
||||
|
||||
return mt_rand(0, $max);
|
||||
return $this->numberBetween(0, $max);
|
||||
}
|
||||
}
|
||||
|
||||
21
vendor/fakerphp/faker/src/Faker/Core/Uuid.php
vendored
21
vendor/fakerphp/faker/src/Faker/Core/Uuid.php
vendored
@@ -2,17 +2,26 @@
|
||||
|
||||
namespace Faker\Core;
|
||||
|
||||
use Faker\Extension\UuidExtension;
|
||||
use Faker\Extension;
|
||||
|
||||
final class Uuid implements UuidExtension
|
||||
/**
|
||||
* @experimental This class is experimental and does not fall under our BC promise
|
||||
*/
|
||||
final class Uuid implements Extension\UuidExtension
|
||||
{
|
||||
private Extension\NumberExtension $numberExtension;
|
||||
|
||||
public function __construct(Extension\NumberExtension $numberExtension = null)
|
||||
{
|
||||
|
||||
$this->numberExtension = $numberExtension ?: new Number();
|
||||
}
|
||||
|
||||
public function uuid3(): string
|
||||
{
|
||||
$number = new Number();
|
||||
|
||||
// fix for compatibility with 32bit architecture; each mt_rand call is restricted to 32bit
|
||||
// two such calls will cause 64bits of randomness regardless of architecture
|
||||
$seed = $number->numberBetween(0, 2147483647) . '#' . $number->numberBetween(0, 2147483647);
|
||||
$seed = $this->numberExtension->numberBetween(0, 2147483647) . '#' . $this->numberExtension->numberBetween(0, 2147483647);
|
||||
|
||||
// Hash the seed and convert to a byte array
|
||||
$val = md5($seed, true);
|
||||
@@ -50,7 +59,7 @@ final class Uuid implements UuidExtension
|
||||
$byte[12],
|
||||
$byte[13],
|
||||
$byte[14],
|
||||
$byte[15]
|
||||
$byte[15],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
37
vendor/fakerphp/faker/src/Faker/Core/Version.php
vendored
37
vendor/fakerphp/faker/src/Faker/Core/Version.php
vendored
@@ -4,16 +4,25 @@ declare(strict_types=1);
|
||||
|
||||
namespace Faker\Core;
|
||||
|
||||
use Faker\Extension\Helper;
|
||||
use Faker\Extension\VersionExtension;
|
||||
use Faker\Extension;
|
||||
use Faker\Provider\DateTime;
|
||||
|
||||
final class Version implements VersionExtension
|
||||
/**
|
||||
* @experimental This class is experimental and does not fall under our BC promise
|
||||
*/
|
||||
final class Version implements Extension\VersionExtension
|
||||
{
|
||||
private Extension\NumberExtension $numberExtension;
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
private $semverCommonPreReleaseIdentifiers = ['alpha', 'beta', 'rc'];
|
||||
private array $semverCommonPreReleaseIdentifiers = ['alpha', 'beta', 'rc'];
|
||||
|
||||
public function __construct(Extension\NumberExtension $numberExtension = null)
|
||||
{
|
||||
|
||||
$this->numberExtension = $numberExtension ?: new Number();
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents v2.0.0 of the semantic versioning: https://semver.org/spec/v2.0.0.html
|
||||
@@ -22,11 +31,11 @@ final class Version implements VersionExtension
|
||||
{
|
||||
return sprintf(
|
||||
'%d.%d.%d%s%s',
|
||||
mt_rand(0, 9),
|
||||
mt_rand(0, 99),
|
||||
mt_rand(0, 99),
|
||||
$preRelease && mt_rand(0, 1) ? '-' . $this->semverPreReleaseIdentifier() : '',
|
||||
$build && mt_rand(0, 1) ? '+' . $this->semverBuildIdentifier() : ''
|
||||
$this->numberExtension->numberBetween(0, 9),
|
||||
$this->numberExtension->numberBetween(0, 99),
|
||||
$this->numberExtension->numberBetween(0, 99),
|
||||
$preRelease && $this->numberExtension->numberBetween(0, 1) === 1 ? '-' . $this->semverPreReleaseIdentifier() : '',
|
||||
$build && $this->numberExtension->numberBetween(0, 1) === 1 ? '+' . $this->semverBuildIdentifier() : '',
|
||||
);
|
||||
}
|
||||
|
||||
@@ -35,13 +44,13 @@ final class Version implements VersionExtension
|
||||
*/
|
||||
private function semverPreReleaseIdentifier(): string
|
||||
{
|
||||
$ident = Helper::randomElement($this->semverCommonPreReleaseIdentifiers);
|
||||
$ident = Extension\Helper::randomElement($this->semverCommonPreReleaseIdentifiers);
|
||||
|
||||
if (!mt_rand(0, 1)) {
|
||||
if ($this->numberExtension->numberBetween(0, 1) !== 1) {
|
||||
return $ident;
|
||||
}
|
||||
|
||||
return $ident . '.' . mt_rand(1, 99);
|
||||
return $ident . '.' . $this->numberExtension->numberBetween(1, 99);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -49,9 +58,9 @@ final class Version implements VersionExtension
|
||||
*/
|
||||
private function semverBuildIdentifier(): string
|
||||
{
|
||||
if (mt_rand(0, 1)) {
|
||||
if ($this->numberExtension->numberBetween(0, 1) === 1) {
|
||||
// short git revision syntax: https://git-scm.com/book/en/v2/Git-Tools-Revision-Selection
|
||||
return substr(sha1(Helper::lexify('??????')), 0, 7);
|
||||
return substr(sha1(Extension\Helper::lexify('??????')), 0, 7);
|
||||
}
|
||||
|
||||
// date syntax
|
||||
|
||||
@@ -1,137 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Faker\Extension;
|
||||
|
||||
use Psr\Container\ContainerInterface;
|
||||
|
||||
/**
|
||||
* A simple implementation of a container.
|
||||
*
|
||||
* @experimental This class is experimental and does not fall under our BC promise
|
||||
*/
|
||||
final class Container implements ContainerInterface
|
||||
{
|
||||
/**
|
||||
* @var array<string, callable|object|string>
|
||||
*/
|
||||
private $definitions;
|
||||
|
||||
private $services = [];
|
||||
|
||||
/**
|
||||
* Create a container object with a set of definitions. The array value MUST
|
||||
* produce an object that implements Extension.
|
||||
*
|
||||
* @param array<string, callable|object|string> $definitions
|
||||
*/
|
||||
public function __construct(array $definitions)
|
||||
{
|
||||
$this->definitions = $definitions;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $id
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws \RuntimeException
|
||||
* @throws ContainerException
|
||||
* @throws NotInContainerException
|
||||
*
|
||||
* @return Extension
|
||||
*/
|
||||
public function get($id)
|
||||
{
|
||||
if (!is_string($id)) {
|
||||
throw new \InvalidArgumentException(sprintf(
|
||||
'First argument of %s::get() must be string',
|
||||
self::class
|
||||
));
|
||||
}
|
||||
|
||||
if (array_key_exists($id, $this->services)) {
|
||||
return $this->services[$id];
|
||||
}
|
||||
|
||||
if (!$this->has($id)) {
|
||||
throw new NotInContainerException(sprintf(
|
||||
'There is not service with id "%s" in the container.',
|
||||
$id
|
||||
));
|
||||
}
|
||||
|
||||
$definition = $this->definitions[$id];
|
||||
|
||||
if (is_callable($definition)) {
|
||||
try {
|
||||
$service = $definition();
|
||||
} catch (\Throwable $e) {
|
||||
throw new ContainerException(
|
||||
sprintf(
|
||||
'Error while invoking callable for "%s"',
|
||||
$id
|
||||
),
|
||||
0,
|
||||
$e
|
||||
);
|
||||
}
|
||||
} elseif (is_object($definition)) {
|
||||
$service = $definition;
|
||||
} elseif (is_string($definition)) {
|
||||
if (!class_exists($definition)) {
|
||||
throw new ContainerException(sprintf(
|
||||
'Could not instantiate class "%s". Class was not found.',
|
||||
$id
|
||||
));
|
||||
}
|
||||
|
||||
try {
|
||||
$service = new $definition();
|
||||
} catch (\Throwable $e) {
|
||||
throw new ContainerException(
|
||||
sprintf(
|
||||
'Could not instantiate class "%s"',
|
||||
$id
|
||||
),
|
||||
0,
|
||||
$e
|
||||
);
|
||||
}
|
||||
} else {
|
||||
throw new ContainerException(sprintf(
|
||||
'Invalid type for definition with id "%s"',
|
||||
$id
|
||||
));
|
||||
}
|
||||
|
||||
if (!$service instanceof Extension) {
|
||||
throw new \RuntimeException(sprintf(
|
||||
'Service resolved for identifier "%s" does not implement the %s" interface.',
|
||||
$id,
|
||||
Extension::class
|
||||
));
|
||||
}
|
||||
|
||||
$this->services[$id] = $service;
|
||||
|
||||
return $service;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $id
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
*/
|
||||
public function has($id): bool
|
||||
{
|
||||
if (!is_string($id)) {
|
||||
throw new \InvalidArgumentException(sprintf(
|
||||
'First argument of %s::get() must be string',
|
||||
self::class
|
||||
));
|
||||
}
|
||||
|
||||
return array_key_exists($id, $this->definitions);
|
||||
}
|
||||
}
|
||||
@@ -1,84 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Faker\Extension;
|
||||
|
||||
use Faker\Core;
|
||||
use Psr\Container\ContainerInterface;
|
||||
|
||||
/**
|
||||
* @experimental This class is experimental and does not fall under our BC promise
|
||||
*/
|
||||
final class ContainerBuilder
|
||||
{
|
||||
/**
|
||||
* @var array<string, callable|object|string>
|
||||
*/
|
||||
private $definitions = [];
|
||||
|
||||
/**
|
||||
* @param callable|object|string $value
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
*/
|
||||
public function add($value, string $name = null): self
|
||||
{
|
||||
if (!is_string($value) && !is_callable($value) && !is_object($value)) {
|
||||
throw new \InvalidArgumentException(sprintf(
|
||||
'First argument to "%s::add()" must be a string, callable or object.',
|
||||
self::class
|
||||
));
|
||||
}
|
||||
|
||||
if ($name === null) {
|
||||
if (is_string($value)) {
|
||||
$name = $value;
|
||||
} elseif (is_object($value)) {
|
||||
$name = get_class($value);
|
||||
} else {
|
||||
throw new \InvalidArgumentException(sprintf(
|
||||
'Second argument to "%s::add()" is required not passing a string or object as first argument',
|
||||
self::class
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
$this->definitions[$name] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function build(): ContainerInterface
|
||||
{
|
||||
return new Container($this->definitions);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get an array with extension that represent the default English
|
||||
* functionality.
|
||||
*/
|
||||
public static function defaultExtensions(): array
|
||||
{
|
||||
return [
|
||||
BarcodeExtension::class => Core\Barcode::class,
|
||||
BloodExtension::class => Core\Blood::class,
|
||||
ColorExtension::class => Core\Color::class,
|
||||
FileExtension::class => Core\File::class,
|
||||
NumberExtension::class => Core\Number::class,
|
||||
VersionExtension::class => Core\Version::class,
|
||||
UuidExtension::class => Core\Uuid::class,
|
||||
];
|
||||
}
|
||||
|
||||
public static function getDefault(): ContainerInterface
|
||||
{
|
||||
$instance = new self();
|
||||
|
||||
foreach (self::defaultExtensions() as $id => $definition) {
|
||||
$instance->add($definition, $id);
|
||||
}
|
||||
|
||||
return $instance->build();
|
||||
}
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Faker\Extension;
|
||||
|
||||
use Psr\Container\ContainerExceptionInterface;
|
||||
|
||||
/**
|
||||
* @experimental This class is experimental and does not fall under our BC promise
|
||||
*/
|
||||
final class ContainerException extends \RuntimeException implements ContainerExceptionInterface
|
||||
{
|
||||
}
|
||||
@@ -57,11 +57,9 @@ final class Helper
|
||||
}
|
||||
}
|
||||
|
||||
$string = self::replaceWildcard($string, '%', static function () {
|
||||
return self::replaceWildcard($string, '%', static function () {
|
||||
return mt_rand(1, 9);
|
||||
});
|
||||
|
||||
return $string;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -85,10 +83,10 @@ final class Helper
|
||||
public static function bothify(string $string): string
|
||||
{
|
||||
$string = self::replaceWildcard($string, '*', static function () {
|
||||
return mt_rand(0, 1) ? '#' : '?';
|
||||
return mt_rand(0, 1) === 1 ? '#' : '?';
|
||||
});
|
||||
|
||||
return static::lexify(static::numerify($string));
|
||||
return self::lexify(self::numerify($string));
|
||||
}
|
||||
|
||||
private static function replaceWildcard(string $string, string $wildcard, callable $callback): string
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Faker\Extension;
|
||||
|
||||
use Psr\Container\NotFoundExceptionInterface;
|
||||
|
||||
/**
|
||||
* @experimental This class is experimental and does not fall under our BC promise
|
||||
*/
|
||||
final class NotInContainerException extends \RuntimeException implements NotFoundExceptionInterface
|
||||
{
|
||||
}
|
||||
2
vendor/fakerphp/faker/src/Faker/Factory.php
vendored
2
vendor/fakerphp/faker/src/Faker/Factory.php
vendored
@@ -38,10 +38,12 @@ class Factory
|
||||
if ($providerClass = self::findProviderClassname($provider, $locale)) {
|
||||
return $providerClass;
|
||||
}
|
||||
|
||||
// fallback to default locale
|
||||
if ($providerClass = self::findProviderClassname($provider, static::DEFAULT_LOCALE)) {
|
||||
return $providerClass;
|
||||
}
|
||||
|
||||
// fallback to no locale
|
||||
if ($providerClass = self::findProviderClassname($provider)) {
|
||||
return $providerClass;
|
||||
|
||||
40
vendor/fakerphp/faker/src/Faker/Generator.php
vendored
40
vendor/fakerphp/faker/src/Faker/Generator.php
vendored
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Faker;
|
||||
|
||||
use Psr\Container\ContainerInterface;
|
||||
use Faker\Container\ContainerInterface;
|
||||
|
||||
/**
|
||||
* @property string $citySuffix
|
||||
@@ -255,7 +255,7 @@ use Psr\Container\ContainerInterface;
|
||||
*
|
||||
* @property string $timezone
|
||||
*
|
||||
* @method string timezone()
|
||||
* @method string timezone($countryCode = null)
|
||||
*
|
||||
* @property void $setDefaultTimezone
|
||||
*
|
||||
@@ -275,11 +275,11 @@ use Psr\Container\ContainerInterface;
|
||||
*
|
||||
* @property string $imageUrl
|
||||
*
|
||||
* @method string imageUrl($width = 640, $height = 480, $category = null, $randomize = true, $word = null, $gray = false)
|
||||
* @method string imageUrl($width = 640, $height = 480, $category = null, $randomize = true, $word = null, $gray = false, string $format = 'png')
|
||||
*
|
||||
* @property string $image
|
||||
*
|
||||
* @method string image($dir = null, $width = 640, $height = 480, $category = null, $fullPath = true, $randomize = true, $word = null, $gray = false)
|
||||
* @method string image($dir = null, $width = 640, $height = 480, $category = null, $fullPath = true, $randomize = true, $word = null, $gray = false, string $format = 'png')
|
||||
*
|
||||
* @property string $email
|
||||
*
|
||||
@@ -463,7 +463,7 @@ use Psr\Container\ContainerInterface;
|
||||
*
|
||||
* @property string $lastName
|
||||
*
|
||||
* @method string lastName()
|
||||
* @method string lastName($gender = null)
|
||||
*
|
||||
* @property string $title
|
||||
*
|
||||
@@ -513,6 +513,10 @@ use Psr\Container\ContainerInterface;
|
||||
*
|
||||
* @method string chrome()
|
||||
*
|
||||
* @property string $msedge
|
||||
*
|
||||
* @method string msedge()
|
||||
*
|
||||
* @property string $firefox
|
||||
*
|
||||
* @method string firefox()
|
||||
@@ -537,6 +541,10 @@ use Psr\Container\ContainerInterface;
|
||||
*
|
||||
* @method string macPlatformToken()
|
||||
*
|
||||
* @property string $iosMobileToken
|
||||
*
|
||||
* @method string iosMobileToken()
|
||||
*
|
||||
* @property string $linuxPlatformToken
|
||||
*
|
||||
* @method string linuxPlatformToken()
|
||||
@@ -559,7 +567,7 @@ class Generator
|
||||
|
||||
public function __construct(ContainerInterface $container = null)
|
||||
{
|
||||
$this->container = $container ?: Extension\ContainerBuilder::getDefault();
|
||||
$this->container = $container ?: Container\ContainerBuilder::withDefaultExtensions()->build();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -576,7 +584,7 @@ class Generator
|
||||
if (!$this->container->has($id)) {
|
||||
throw new Extension\ExtensionNotFound(sprintf(
|
||||
'No Faker extension with id "%s" was loaded.',
|
||||
$id
|
||||
$id,
|
||||
));
|
||||
}
|
||||
|
||||
@@ -679,10 +687,22 @@ class Generator
|
||||
if ($seed === null) {
|
||||
mt_srand();
|
||||
} else {
|
||||
mt_srand((int) $seed, MT_RAND_PHP);
|
||||
mt_srand((int) $seed, self::mode());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @see https://www.php.net/manual/en/migration83.deprecated.php#migration83.deprecated.random
|
||||
*/
|
||||
private static function mode(): int
|
||||
{
|
||||
if (PHP_VERSION_ID < 80300) {
|
||||
return MT_RAND_PHP;
|
||||
}
|
||||
|
||||
return MT_RAND_MT19937;
|
||||
}
|
||||
|
||||
public function format($format, $arguments = [])
|
||||
{
|
||||
return call_user_func_array($this->getFormatter($format), $arguments);
|
||||
@@ -885,7 +905,7 @@ class Generator
|
||||
return $this->ext(Extension\NumberExtension::class)->randomFloat(
|
||||
$nbMaxDecimals !== null ? (int) $nbMaxDecimals : null,
|
||||
(float) $min,
|
||||
$max !== null ? (float) $max : null
|
||||
$max !== null ? (float) $max : null,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -903,7 +923,7 @@ class Generator
|
||||
{
|
||||
return $this->ext(Extension\NumberExtension::class)->randomNumber(
|
||||
$nbDigits !== null ? (int) $nbDigits : null,
|
||||
(bool) $strict
|
||||
(bool) $strict,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -193,7 +193,7 @@ class EntityPopulator
|
||||
return $obj;
|
||||
}
|
||||
|
||||
private function fillColumns($obj, $insertedEntities)
|
||||
private function fillColumns($obj, $insertedEntities): void
|
||||
{
|
||||
foreach ($this->columnFormatters as $field => $format) {
|
||||
if (null !== $format) {
|
||||
@@ -205,7 +205,7 @@ class EntityPopulator
|
||||
'Failed to generate a value for %s::%s: %s',
|
||||
get_class($obj),
|
||||
$field,
|
||||
$ex->getMessage()
|
||||
$ex->getMessage(),
|
||||
));
|
||||
}
|
||||
// Try a standard setter if it's available, otherwise fall back on reflection
|
||||
@@ -220,7 +220,7 @@ class EntityPopulator
|
||||
}
|
||||
}
|
||||
|
||||
private function callMethods($obj, $insertedEntities)
|
||||
private function callMethods($obj, $insertedEntities): void
|
||||
{
|
||||
foreach ($this->getModifiers() as $modifier) {
|
||||
$modifier($obj, $insertedEntities);
|
||||
|
||||
@@ -111,7 +111,7 @@ class Populator
|
||||
$insertedEntities[$class][] = $this->entities[$class]->execute(
|
||||
$entityManager,
|
||||
$insertedEntities,
|
||||
$generateId
|
||||
$generateId,
|
||||
);
|
||||
|
||||
if (count($insertedEntities) % $this->batchSize === 0) {
|
||||
|
||||
@@ -69,9 +69,9 @@ class ColumnTypeGuesser
|
||||
case \PropelColumnTypes::FLOAT:
|
||||
case \PropelColumnTypes::DOUBLE:
|
||||
case \PropelColumnTypes::REAL:
|
||||
return static function () use ($generator) {
|
||||
return $generator->randomFloat();
|
||||
};
|
||||
return static function () use ($generator) {
|
||||
return $generator->randomFloat();
|
||||
};
|
||||
|
||||
case \PropelColumnTypes::CHAR:
|
||||
case \PropelColumnTypes::VARCHAR:
|
||||
@@ -102,7 +102,7 @@ class ColumnTypeGuesser
|
||||
case \PropelColumnTypes::OBJECT:
|
||||
case \PropelColumnTypes::PHP_ARRAY:
|
||||
default:
|
||||
// no smart way to guess what the user expects here
|
||||
// no smart way to guess what the user expects here
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -157,7 +157,7 @@ class EntityPopulator
|
||||
foreach ($tableMap->getBehaviors() as $name => $params) {
|
||||
switch ($name) {
|
||||
case 'nested_set':
|
||||
$modifiers['nested_set'] = static function ($obj, $inserted) use ($class, $generator) {
|
||||
$modifiers['nested_set'] = static function ($obj, $inserted) use ($class, $generator): void {
|
||||
if (isset($inserted[$class])) {
|
||||
$queryClass = $class . 'Query';
|
||||
$parent = $queryClass::create()->findPk($generator->randomElement($inserted[$class]));
|
||||
@@ -170,7 +170,7 @@ class EntityPopulator
|
||||
break;
|
||||
|
||||
case 'sortable':
|
||||
$modifiers['sortable'] = static function ($obj, $inserted) use ($class, $generator) {
|
||||
$modifiers['sortable'] = static function ($obj, $inserted) use ($class, $generator): void {
|
||||
$obj->insertAtRank($generator->numberBetween(1, count($inserted[$class] ?? []) + 1));
|
||||
};
|
||||
|
||||
|
||||
@@ -105,7 +105,7 @@ class ColumnTypeGuesser
|
||||
case PropelTypes::OBJECT:
|
||||
case PropelTypes::PHP_ARRAY:
|
||||
default:
|
||||
// no smart way to guess what the user expects here
|
||||
// no smart way to guess what the user expects here
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -160,7 +160,7 @@ class EntityPopulator
|
||||
foreach ($tableMap->getBehaviors() as $name => $params) {
|
||||
switch ($name) {
|
||||
case 'nested_set':
|
||||
$modifiers['nested_set'] = static function ($obj, $inserted) use ($class, $generator) {
|
||||
$modifiers['nested_set'] = static function ($obj, $inserted) use ($class, $generator): void {
|
||||
if (isset($inserted[$class])) {
|
||||
$queryClass = $class . 'Query';
|
||||
$parent = $queryClass::create()->findPk($generator->randomElement($inserted[$class]));
|
||||
@@ -173,7 +173,7 @@ class EntityPopulator
|
||||
break;
|
||||
|
||||
case 'sortable':
|
||||
$modifiers['sortable'] = static function ($obj, $inserted) use ($class, $generator) {
|
||||
$modifiers['sortable'] = static function ($obj, $inserted) use ($class, $generator): void {
|
||||
$obj->insertAtRank($generator->numberBetween(1, count($inserted[$class] ?? []) + 1));
|
||||
};
|
||||
|
||||
|
||||
@@ -180,7 +180,7 @@ class EntityPopulator
|
||||
return $obj;
|
||||
}
|
||||
|
||||
private function fillColumns($obj, $insertedEntities)
|
||||
private function fillColumns($obj, $insertedEntities): void
|
||||
{
|
||||
foreach ($this->columnFormatters as $field => $format) {
|
||||
if (null !== $format) {
|
||||
@@ -190,7 +190,7 @@ class EntityPopulator
|
||||
}
|
||||
}
|
||||
|
||||
private function callMethods($obj, $insertedEntities)
|
||||
private function callMethods($obj, $insertedEntities): void
|
||||
{
|
||||
foreach ($this->getModifiers() as $modifier) {
|
||||
$modifier($obj, $insertedEntities);
|
||||
|
||||
@@ -79,7 +79,7 @@ class Populator
|
||||
foreach ($this->quantities as $entityName => $number) {
|
||||
for ($i = 0; $i < $number; ++$i) {
|
||||
$insertedEntities[$entityName][] = $this->entities[$entityName]->execute(
|
||||
$insertedEntities
|
||||
$insertedEntities,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
123
vendor/fakerphp/faker/src/Faker/Provider/Base.php
vendored
123
vendor/fakerphp/faker/src/Faker/Provider/Base.php
vendored
@@ -179,67 +179,115 @@ class Base
|
||||
/**
|
||||
* Returns randomly ordered subsequence of $count elements from a provided array
|
||||
*
|
||||
* @param array $array Array to take elements from. Defaults to a-c
|
||||
* @param int $count Number of elements to take.
|
||||
* @param bool $allowDuplicates Allow elements to be picked several times. Defaults to false
|
||||
* @todo update default $count to `null` (BC) for next major version
|
||||
*
|
||||
* @throws \LengthException When requesting more elements than provided
|
||||
* @param array|class-string|\Traversable $array Array to take elements from. Defaults to a-c
|
||||
* @param int|null $count Number of elements to take. If `null` then returns random number of elements
|
||||
* @param bool $allowDuplicates Allow elements to be picked several times. Defaults to false
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws \LengthException When requesting more elements than provided
|
||||
*
|
||||
* @return array New array with $count elements from $array
|
||||
*/
|
||||
public static function randomElements($array = ['a', 'b', 'c'], $count = 1, $allowDuplicates = false)
|
||||
{
|
||||
$traversables = [];
|
||||
$elements = $array;
|
||||
|
||||
if (is_string($array) && function_exists('enum_exists') && enum_exists($array)) {
|
||||
$elements = $array::cases();
|
||||
}
|
||||
|
||||
if ($array instanceof \Traversable) {
|
||||
foreach ($array as $element) {
|
||||
$traversables[] = $element;
|
||||
}
|
||||
$elements = \iterator_to_array($array, false);
|
||||
}
|
||||
|
||||
$arr = count($traversables) ? $traversables : $array;
|
||||
|
||||
$allKeys = array_keys($arr);
|
||||
$numKeys = count($allKeys);
|
||||
|
||||
if (!$allowDuplicates && $numKeys < $count) {
|
||||
throw new \LengthException(sprintf('Cannot get %d elements, only %d in array', $count, $numKeys));
|
||||
if (!is_array($elements)) {
|
||||
throw new \InvalidArgumentException(sprintf(
|
||||
'Argument for parameter $array needs to be array, an instance of %s, or an instance of %s, got %s instead.',
|
||||
\UnitEnum::class,
|
||||
\Traversable::class,
|
||||
is_object($array) ? get_class($array) : gettype($array),
|
||||
));
|
||||
}
|
||||
|
||||
$highKey = $numKeys - 1;
|
||||
$keys = $elements = [];
|
||||
$numElements = 0;
|
||||
$numberOfElements = count($elements);
|
||||
|
||||
while ($numElements < $count) {
|
||||
$num = mt_rand(0, $highKey);
|
||||
if (!$allowDuplicates && null !== $count && $numberOfElements < $count) {
|
||||
throw new \LengthException(sprintf(
|
||||
'Cannot get %d elements, only %d in array',
|
||||
$count,
|
||||
$numberOfElements,
|
||||
));
|
||||
}
|
||||
|
||||
if (null === $count) {
|
||||
$count = mt_rand(1, $numberOfElements);
|
||||
}
|
||||
|
||||
$randomElements = [];
|
||||
|
||||
$keys = array_keys($elements);
|
||||
$maxIndex = $numberOfElements - 1;
|
||||
$elementHasBeenSelectedAlready = [];
|
||||
$numberOfRandomElements = 0;
|
||||
|
||||
while ($numberOfRandomElements < $count) {
|
||||
$index = mt_rand(0, $maxIndex);
|
||||
|
||||
if (!$allowDuplicates) {
|
||||
if (isset($keys[$num])) {
|
||||
if (isset($elementHasBeenSelectedAlready[$index])) {
|
||||
continue;
|
||||
}
|
||||
$keys[$num] = true;
|
||||
|
||||
$elementHasBeenSelectedAlready[$index] = true;
|
||||
}
|
||||
|
||||
$elements[] = $arr[$allKeys[$num]];
|
||||
++$numElements;
|
||||
$key = $keys[$index];
|
||||
|
||||
$randomElements[] = $elements[$key];
|
||||
|
||||
++$numberOfRandomElements;
|
||||
}
|
||||
|
||||
return $elements;
|
||||
return $randomElements;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a random element from a passed array
|
||||
*
|
||||
* @param array $array
|
||||
* @param array|class-string|\Traversable $array
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
*/
|
||||
public static function randomElement($array = ['a', 'b', 'c'])
|
||||
{
|
||||
if (!$array || ($array instanceof \Traversable && !count($array))) {
|
||||
$elements = $array;
|
||||
|
||||
if (is_string($array) && function_exists('enum_exists') && enum_exists($array)) {
|
||||
$elements = $array::cases();
|
||||
}
|
||||
|
||||
if ($array instanceof \Traversable) {
|
||||
$elements = iterator_to_array($array, false);
|
||||
}
|
||||
|
||||
if ($elements === []) {
|
||||
return null;
|
||||
}
|
||||
$elements = static::randomElements($array, 1);
|
||||
|
||||
return $elements[0];
|
||||
if (!is_array($elements)) {
|
||||
throw new \InvalidArgumentException(sprintf(
|
||||
'Argument for parameter $array needs to be array, an instance of %s, or an instance of %s, got %s instead.',
|
||||
\UnitEnum::class,
|
||||
\Traversable::class,
|
||||
is_object($array) ? get_class($array) : gettype($array),
|
||||
));
|
||||
}
|
||||
|
||||
$randomElements = static::randomElements($elements, 1);
|
||||
|
||||
return $randomElements[0];
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -363,7 +411,7 @@ class Base
|
||||
return implode('', static::shuffleArray($array));
|
||||
}
|
||||
|
||||
private static function replaceWildcard($string, $wildcard = '#', $callback = 'static::randomDigit')
|
||||
private static function replaceWildcard($string, $wildcard, $callback)
|
||||
{
|
||||
if (($pos = strpos($string, $wildcard)) === false) {
|
||||
return $string;
|
||||
@@ -415,7 +463,7 @@ class Base
|
||||
$string[$toReplace[$i]] = $numbers[$i];
|
||||
}
|
||||
}
|
||||
$string = self::replaceWildcard($string, '%', 'static::randomDigitNotNull');
|
||||
$string = self::replaceWildcard($string, '%', [static::class, 'randomDigitNotNull']);
|
||||
|
||||
return $string;
|
||||
}
|
||||
@@ -429,21 +477,21 @@ class Base
|
||||
*/
|
||||
public static function lexify($string = '????')
|
||||
{
|
||||
return self::replaceWildcard($string, '?', 'static::randomLetter');
|
||||
return self::replaceWildcard($string, '?', [static::class, 'randomLetter']);
|
||||
}
|
||||
|
||||
/**
|
||||
* Replaces hash signs ('#') and question marks ('?') with random numbers and letters
|
||||
* An asterisk ('*') is replaced with either a random number or a random letter
|
||||
*
|
||||
* @param string $string String that needs to bet parsed
|
||||
* @param string $string String that needs to be parsed
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function bothify($string = '## ??')
|
||||
{
|
||||
$string = self::replaceWildcard($string, '*', static function () {
|
||||
return mt_rand(0, 1) ? '#' : '?';
|
||||
return mt_rand(0, 1) === 1 ? '#' : '?';
|
||||
});
|
||||
|
||||
return static::lexify(static::numerify($string));
|
||||
@@ -460,7 +508,7 @@ class Base
|
||||
*/
|
||||
public static function asciify($string = '****')
|
||||
{
|
||||
return preg_replace_callback('/\*/u', 'static::randomAscii', $string);
|
||||
return preg_replace_callback('/\*/u', [static::class, 'randomAscii'], $string);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -528,12 +576,13 @@ class Base
|
||||
// remove backslashes (that are not followed by another backslash) because they are escape characters
|
||||
$match = preg_replace('/\\\(?!\\\)/', '', $matches[1]);
|
||||
$randomElement = Base::randomElement(str_split($match));
|
||||
|
||||
//[.] should not be a random character, but a literal .
|
||||
return str_replace('.', '\.', $randomElement);
|
||||
}, $regex);
|
||||
// replace \d with number and \w with letter and . with ascii
|
||||
$regex = preg_replace_callback('/\\\w/', 'static::randomLetter', $regex);
|
||||
$regex = preg_replace_callback('/\\\d/', 'static::randomDigit', $regex);
|
||||
$regex = preg_replace_callback('/\\\w/', [static::class, 'randomLetter'], $regex);
|
||||
$regex = preg_replace_callback('/\\\d/', [static::class, 'randomDigit'], $regex);
|
||||
//replace . with ascii except backslash
|
||||
$regex = preg_replace_callback('/(?<!\\\)\./', static function () {
|
||||
$chr = static::asciify('*');
|
||||
|
||||
@@ -138,7 +138,7 @@ class Color extends Base
|
||||
'%s,%s,%s',
|
||||
self::numberBetween(0, 360),
|
||||
self::numberBetween(0, 100),
|
||||
self::numberBetween(0, 100)
|
||||
self::numberBetween(0, 100),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ class DateTime extends Base
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a timestamp between January 1, 1970 and now
|
||||
* Get a timestamp between January 1, 1970, and now
|
||||
*
|
||||
* @param \DateTime|int|string $max maximum timestamp used as random end limit, default to "now"
|
||||
*
|
||||
@@ -46,18 +46,18 @@ class DateTime extends Base
|
||||
* @param \DateTime|int|string $max maximum timestamp used as random end limit, default to "now"
|
||||
* @param string $timezone time zone in which the date time should be set, default to DateTime::$defaultTimezone, if set, otherwise the result of `date_default_timezone_get`
|
||||
*
|
||||
* @example DateTime('2005-08-16 20:39:21')
|
||||
*
|
||||
* @return \DateTime
|
||||
*
|
||||
* @see http://php.net/manual/en/timezones.php
|
||||
* @see http://php.net/manual/en/function.date-default-timezone-get.php
|
||||
*
|
||||
* @example DateTime('2005-08-16 20:39:21')
|
||||
*/
|
||||
public static function dateTime($max = 'now', $timezone = null)
|
||||
{
|
||||
return static::setTimezone(
|
||||
new \DateTime('@' . static::unixTime($max)),
|
||||
$timezone
|
||||
$timezone,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -67,12 +67,12 @@ class DateTime extends Base
|
||||
* @param \DateTime|int|string $max maximum timestamp used as random end limit, default to "now"
|
||||
* @param string|null $timezone time zone in which the date time should be set, default to DateTime::$defaultTimezone, if set, otherwise the result of `date_default_timezone_get`
|
||||
*
|
||||
* @example DateTime('1265-03-22 21:15:52')
|
||||
*
|
||||
* @return \DateTime
|
||||
*
|
||||
* @see http://php.net/manual/en/timezones.php
|
||||
* @see http://php.net/manual/en/function.date-default-timezone-get.php
|
||||
*
|
||||
* @example DateTime('1265-03-22 21:15:52')
|
||||
*/
|
||||
public static function dateTimeAD($max = 'now', $timezone = null)
|
||||
{
|
||||
@@ -80,7 +80,7 @@ class DateTime extends Base
|
||||
|
||||
return static::setTimezone(
|
||||
new \DateTime('@' . self::numberBetween($min, static::getMaxTimestamp($max))),
|
||||
$timezone
|
||||
$timezone,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -136,12 +136,12 @@ class DateTime extends Base
|
||||
* @param \DateTime|string $endDate Defaults to "now"
|
||||
* @param string|null $timezone time zone in which the date time should be set, default to DateTime::$defaultTimezone, if set, otherwise the result of `date_default_timezone_get`
|
||||
*
|
||||
* @example DateTime('1999-02-02 11:42:52')
|
||||
*
|
||||
* @return \DateTime
|
||||
*
|
||||
* @see http://php.net/manual/en/timezones.php
|
||||
* @see http://php.net/manual/en/function.date-default-timezone-get.php
|
||||
*
|
||||
* @example DateTime('1999-02-02 11:42:52')
|
||||
*/
|
||||
public static function dateTimeBetween($startDate = '-30 years', $endDate = 'now', $timezone = null)
|
||||
{
|
||||
@@ -156,7 +156,7 @@ class DateTime extends Base
|
||||
|
||||
return static::setTimezone(
|
||||
new \DateTime('@' . $timestamp),
|
||||
$timezone
|
||||
$timezone,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -169,10 +169,10 @@ class DateTime extends Base
|
||||
* @param string $interval Defaults to 5 days after
|
||||
* @param string|null $timezone time zone in which the date time should be set, default to DateTime::$defaultTimezone, if set, otherwise the result of `date_default_timezone_get`
|
||||
*
|
||||
* @example dateTimeInInterval('1999-02-02 11:42:52', '+ 5 days')
|
||||
*
|
||||
* @return \DateTime
|
||||
*
|
||||
* @example dateTimeInInterval('1999-02-02 11:42:52', '+ 5 days')
|
||||
*
|
||||
* @see http://php.net/manual/en/timezones.php
|
||||
* @see http://php.net/manual/en/function.date-default-timezone-get.php
|
||||
*/
|
||||
@@ -183,22 +183,22 @@ class DateTime extends Base
|
||||
$otherDatetime = clone $datetime;
|
||||
$otherDatetime->add($intervalObject);
|
||||
|
||||
$begin = $datetime > $otherDatetime ? $otherDatetime : $datetime;
|
||||
$begin = min($datetime, $otherDatetime);
|
||||
$end = $datetime === $begin ? $otherDatetime : $datetime;
|
||||
|
||||
return static::dateTimeBetween(
|
||||
$begin,
|
||||
$end,
|
||||
$timezone
|
||||
$timezone,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a date time object somewhere within a century.
|
||||
*
|
||||
* @param \DateTime|int|string $max maximum timestamp used as random end limit, default to "now"
|
||||
* @param string|null $timezone time zone in which the date time should be set, default to DateTime::$defaultTimezone, if set, otherwise the result of `date_default_timezone_get`
|
||||
*
|
||||
* @example DateTime('1964-04-04 11:02:02')
|
||||
*
|
||||
* @return \DateTime
|
||||
*/
|
||||
public static function dateTimeThisCentury($max = 'now', $timezone = null)
|
||||
@@ -207,11 +207,11 @@ class DateTime extends Base
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a date time object somewhere within a decade.
|
||||
*
|
||||
* @param \DateTime|int|string $max maximum timestamp used as random end limit, default to "now"
|
||||
* @param string|null $timezone time zone in which the date time should be set, default to DateTime::$defaultTimezone, if set, otherwise the result of `date_default_timezone_get`
|
||||
*
|
||||
* @example DateTime('2010-03-10 05:18:58')
|
||||
*
|
||||
* @return \DateTime
|
||||
*/
|
||||
public static function dateTimeThisDecade($max = 'now', $timezone = null)
|
||||
@@ -220,11 +220,11 @@ class DateTime extends Base
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a date time object somewhere inside the current year.
|
||||
*
|
||||
* @param \DateTime|int|string $max maximum timestamp used as random end limit, default to "now"
|
||||
* @param string|null $timezone time zone in which the date time should be set, default to DateTime::$defaultTimezone, if set, otherwise the result of `date_default_timezone_get`
|
||||
*
|
||||
* @example DateTime('2011-09-19 09:24:37')
|
||||
*
|
||||
* @return \DateTime
|
||||
*/
|
||||
public static function dateTimeThisYear($max = 'now', $timezone = null)
|
||||
@@ -233,11 +233,11 @@ class DateTime extends Base
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a date time object somewhere within a month.
|
||||
*
|
||||
* @param \DateTime|int|string $max maximum timestamp used as random end limit, default to "now"
|
||||
* @param string|null $timezone time zone in which the date time should be set, default to DateTime::$defaultTimezone, if set, otherwise the result of `date_default_timezone_get`
|
||||
*
|
||||
* @example DateTime('2011-10-05 12:51:46')
|
||||
*
|
||||
* @return \DateTime
|
||||
*/
|
||||
public static function dateTimeThisMonth($max = 'now', $timezone = null)
|
||||
@@ -246,6 +246,8 @@ class DateTime extends Base
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a string containing either "am" or "pm".
|
||||
*
|
||||
* @param \DateTime|int|string $max maximum timestamp used as random end limit, default to "now"
|
||||
*
|
||||
* @return string
|
||||
@@ -310,7 +312,7 @@ class DateTime extends Base
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @example '1673'
|
||||
* @example '1987'
|
||||
*/
|
||||
public static function year($max = 'now')
|
||||
{
|
||||
@@ -332,9 +334,15 @@ class DateTime extends Base
|
||||
*
|
||||
* @example 'Europe/Paris'
|
||||
*/
|
||||
public static function timezone()
|
||||
public static function timezone(string $countryCode = null)
|
||||
{
|
||||
return static::randomElement(\DateTimeZone::listIdentifiers());
|
||||
if ($countryCode) {
|
||||
$timezones = \DateTimeZone::listIdentifiers(\DateTimeZone::PER_COUNTRY, $countryCode);
|
||||
} else {
|
||||
$timezones = \DateTimeZone::listIdentifiers();
|
||||
}
|
||||
|
||||
return static::randomElement($timezones);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -94,7 +94,7 @@ class HtmlLorem extends Base
|
||||
return $root;
|
||||
}
|
||||
|
||||
private function addRandomLeaf(\DOMElement $node)
|
||||
private function addRandomLeaf(\DOMElement $node): void
|
||||
{
|
||||
$rand = self::numberBetween(1, 10);
|
||||
|
||||
@@ -146,7 +146,7 @@ class HtmlLorem extends Base
|
||||
}
|
||||
}
|
||||
|
||||
private function addRandomAttribute(\DOMElement $node)
|
||||
private function addRandomAttribute(\DOMElement $node): void
|
||||
{
|
||||
$rand = self::numberBetween(1, 2);
|
||||
|
||||
@@ -163,20 +163,20 @@ class HtmlLorem extends Base
|
||||
}
|
||||
}
|
||||
|
||||
private function addRandomP(\DOMElement $element, $maxLength = 10)
|
||||
private function addRandomP(\DOMElement $element, $maxLength = 10): void
|
||||
{
|
||||
$node = $element->ownerDocument->createElement(static::P_TAG);
|
||||
$node->textContent = $this->generator->sentence(self::numberBetween(1, $maxLength));
|
||||
$element->appendChild($node);
|
||||
}
|
||||
|
||||
private function addRandomText(\DOMElement $element, $maxLength = 10)
|
||||
private function addRandomText(\DOMElement $element, $maxLength = 10): void
|
||||
{
|
||||
$text = $element->ownerDocument->createTextNode($this->generator->sentence(self::numberBetween(1, $maxLength)));
|
||||
$element->appendChild($text);
|
||||
}
|
||||
|
||||
private function addRandomA(\DOMElement $element, $maxLength = 10)
|
||||
private function addRandomA(\DOMElement $element, $maxLength = 10): void
|
||||
{
|
||||
$text = $element->ownerDocument->createTextNode($this->generator->sentence(self::numberBetween(1, $maxLength)));
|
||||
$node = $element->ownerDocument->createElement(static::A_TAG);
|
||||
@@ -185,7 +185,7 @@ class HtmlLorem extends Base
|
||||
$element->appendChild($node);
|
||||
}
|
||||
|
||||
private function addRandomTitle(\DOMElement $element, $maxLength = 10)
|
||||
private function addRandomTitle(\DOMElement $element, $maxLength = 10): void
|
||||
{
|
||||
$text = $element->ownerDocument->createTextNode($this->generator->sentence(self::numberBetween(1, $maxLength)));
|
||||
$node = $element->ownerDocument->createElement(static::TITLE_TAG);
|
||||
@@ -193,7 +193,7 @@ class HtmlLorem extends Base
|
||||
$element->appendChild($node);
|
||||
}
|
||||
|
||||
private function addRandomH(\DOMElement $element, $maxLength = 10)
|
||||
private function addRandomH(\DOMElement $element, $maxLength = 10): void
|
||||
{
|
||||
$h = static::H_TAG . (string) self::numberBetween(1, 3);
|
||||
$text = $element->ownerDocument->createTextNode($this->generator->sentence(self::numberBetween(1, $maxLength)));
|
||||
@@ -202,7 +202,7 @@ class HtmlLorem extends Base
|
||||
$element->appendChild($node);
|
||||
}
|
||||
|
||||
private function addRandomB(\DOMElement $element, $maxLength = 10)
|
||||
private function addRandomB(\DOMElement $element, $maxLength = 10): void
|
||||
{
|
||||
$text = $element->ownerDocument->createTextNode($this->generator->sentence(self::numberBetween(1, $maxLength)));
|
||||
$node = $element->ownerDocument->createElement(static::B_TAG);
|
||||
@@ -210,7 +210,7 @@ class HtmlLorem extends Base
|
||||
$element->appendChild($node);
|
||||
}
|
||||
|
||||
private function addRandomI(\DOMElement $element, $maxLength = 10)
|
||||
private function addRandomI(\DOMElement $element, $maxLength = 10): void
|
||||
{
|
||||
$text = $element->ownerDocument->createTextNode($this->generator->sentence(self::numberBetween(1, $maxLength)));
|
||||
$node = $element->ownerDocument->createElement(static::I_TAG);
|
||||
@@ -218,7 +218,7 @@ class HtmlLorem extends Base
|
||||
$element->appendChild($node);
|
||||
}
|
||||
|
||||
private function addRandomSpan(\DOMElement $element, $maxLength = 10)
|
||||
private function addRandomSpan(\DOMElement $element, $maxLength = 10): void
|
||||
{
|
||||
$text = $element->ownerDocument->createTextNode($this->generator->sentence(self::numberBetween(1, $maxLength)));
|
||||
$node = $element->ownerDocument->createElement(static::SPAN_TAG);
|
||||
@@ -226,7 +226,7 @@ class HtmlLorem extends Base
|
||||
$element->appendChild($node);
|
||||
}
|
||||
|
||||
private function addLoginForm(\DOMElement $element)
|
||||
private function addLoginForm(\DOMElement $element): void
|
||||
{
|
||||
$textInput = $element->ownerDocument->createElement(static::INPUT_TAG);
|
||||
$textInput->setAttribute('type', 'text');
|
||||
@@ -258,7 +258,7 @@ class HtmlLorem extends Base
|
||||
$element->appendChild($submit);
|
||||
}
|
||||
|
||||
private function addRandomTable(\DOMElement $element, $maxRows = 10, $maxCols = 6, $maxTitle = 4, $maxLength = 10)
|
||||
private function addRandomTable(\DOMElement $element, $maxRows = 10, $maxCols = 6, $maxTitle = 4, $maxLength = 10): void
|
||||
{
|
||||
$rows = self::numberBetween(1, $maxRows);
|
||||
$cols = self::numberBetween(1, $maxCols);
|
||||
@@ -292,7 +292,7 @@ class HtmlLorem extends Base
|
||||
$element->appendChild($table);
|
||||
}
|
||||
|
||||
private function addRandomUL(\DOMElement $element, $maxItems = 11, $maxLength = 4)
|
||||
private function addRandomUL(\DOMElement $element, $maxItems = 11, $maxLength = 4): void
|
||||
{
|
||||
$num = self::numberBetween(1, $maxItems);
|
||||
$ul = $element->ownerDocument->createElement(static::UL_TAG);
|
||||
|
||||
@@ -12,6 +12,10 @@ class Image extends Base
|
||||
*/
|
||||
public const BASE_URL = 'https://via.placeholder.com';
|
||||
|
||||
public const FORMAT_JPG = 'jpg';
|
||||
public const FORMAT_JPEG = 'jpeg';
|
||||
public const FORMAT_PNG = 'png';
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*
|
||||
@@ -35,6 +39,7 @@ class Image extends Base
|
||||
* @param bool $randomize
|
||||
* @param string|null $word
|
||||
* @param bool $gray
|
||||
* @param string $format
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
@@ -44,9 +49,27 @@ class Image extends Base
|
||||
$category = null,
|
||||
$randomize = true,
|
||||
$word = null,
|
||||
$gray = false
|
||||
$gray = false,
|
||||
$format = 'png'
|
||||
) {
|
||||
$size = sprintf('%dx%d.png', $width, $height);
|
||||
trigger_deprecation(
|
||||
'fakerphp/faker',
|
||||
'1.20',
|
||||
'Provider is deprecated and will no longer be available in Faker 2. Please use a custom provider instead',
|
||||
);
|
||||
|
||||
// Validate image format
|
||||
$imageFormats = static::getFormats();
|
||||
|
||||
if (!in_array(strtolower($format), $imageFormats, true)) {
|
||||
throw new \InvalidArgumentException(sprintf(
|
||||
'Invalid image format "%s". Allowable formats are: %s',
|
||||
$format,
|
||||
implode(', ', $imageFormats),
|
||||
));
|
||||
}
|
||||
|
||||
$size = sprintf('%dx%d.%s', $width, $height, $format);
|
||||
|
||||
$imageParts = [];
|
||||
|
||||
@@ -69,7 +92,7 @@ class Image extends Base
|
||||
self::BASE_URL,
|
||||
$size,
|
||||
$backgroundColor,
|
||||
count($imageParts) > 0 ? '?text=' . urlencode(implode(' ', $imageParts)) : ''
|
||||
count($imageParts) > 0 ? '?text=' . urlencode(implode(' ', $imageParts)) : '',
|
||||
);
|
||||
}
|
||||
|
||||
@@ -90,9 +113,17 @@ class Image extends Base
|
||||
$fullPath = true,
|
||||
$randomize = true,
|
||||
$word = null,
|
||||
$gray = false
|
||||
$gray = false,
|
||||
$format = 'png'
|
||||
) {
|
||||
trigger_deprecation(
|
||||
'fakerphp/faker',
|
||||
'1.20',
|
||||
'Provider is deprecated and will no longer be available in Faker 2. Please use a custom provider instead',
|
||||
);
|
||||
|
||||
$dir = null === $dir ? sys_get_temp_dir() : $dir; // GNU/Linux / OS X / Windows compatible
|
||||
|
||||
// Validate directory path
|
||||
if (!is_dir($dir) || !is_writable($dir)) {
|
||||
throw new \InvalidArgumentException(sprintf('Cannot write to directory "%s"', $dir));
|
||||
@@ -101,10 +132,10 @@ class Image extends Base
|
||||
// Generate a random filename. Use the server address so that a file
|
||||
// generated at the same time on a different server won't have a collision.
|
||||
$name = md5(uniqid(empty($_SERVER['SERVER_ADDR']) ? '' : $_SERVER['SERVER_ADDR'], true));
|
||||
$filename = $name . '.png';
|
||||
$filename = sprintf('%s.%s', $name, $format);
|
||||
$filepath = $dir . DIRECTORY_SEPARATOR . $filename;
|
||||
|
||||
$url = static::imageUrl($width, $height, $category, $randomize, $word, $gray);
|
||||
$url = static::imageUrl($width, $height, $category, $randomize, $word, $gray, $format);
|
||||
|
||||
// save file
|
||||
if (function_exists('curl_exec')) {
|
||||
@@ -136,4 +167,30 @@ class Image extends Base
|
||||
|
||||
return $fullPath ? $filepath : $filename;
|
||||
}
|
||||
|
||||
public static function getFormats(): array
|
||||
{
|
||||
trigger_deprecation(
|
||||
'fakerphp/faker',
|
||||
'1.20',
|
||||
'Provider is deprecated and will no longer be available in Faker 2. Please use a custom provider instead',
|
||||
);
|
||||
|
||||
return array_keys(static::getFormatConstants());
|
||||
}
|
||||
|
||||
public static function getFormatConstants(): array
|
||||
{
|
||||
trigger_deprecation(
|
||||
'fakerphp/faker',
|
||||
'1.20',
|
||||
'Provider is deprecated and will no longer be available in Faker 2. Please use a custom provider instead',
|
||||
);
|
||||
|
||||
return [
|
||||
static::FORMAT_JPG => constant('IMAGETYPE_JPEG'),
|
||||
static::FORMAT_JPEG => constant('IMAGETYPE_JPEG'),
|
||||
static::FORMAT_PNG => constant('IMAGETYPE_PNG'),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -184,7 +184,15 @@ class Lorem extends Base
|
||||
throw new \InvalidArgumentException('text() can only generate text of at least 5 characters');
|
||||
}
|
||||
|
||||
$type = ($maxNbChars < 25) ? 'word' : (($maxNbChars < 100) ? 'sentence' : 'paragraph');
|
||||
$type = 'paragraph';
|
||||
|
||||
if ($maxNbChars < 100) {
|
||||
$type = 'sentence';
|
||||
}
|
||||
|
||||
if ($maxNbChars < 25) {
|
||||
$type = 'word';
|
||||
}
|
||||
|
||||
$text = [];
|
||||
|
||||
|
||||
@@ -202,11 +202,12 @@ class Miscellaneous extends Base
|
||||
|
||||
/**
|
||||
* @see https://en.wikipedia.org/wiki/ISO_4217
|
||||
* On date of 2019-09-27
|
||||
* On date of 2023-01-01
|
||||
*
|
||||
* With the following exceptions:
|
||||
* SVC has been replaced by the USD in 2001: https://en.wikipedia.org/wiki/Salvadoran_col%C3%B3n
|
||||
* ZWL has been suspended since 2009: https://en.wikipedia.org/wiki/Zimbabwean_dollar
|
||||
* HRK has been replaced by EUR since 2023: https://en.wikipedia.org/wiki/Croatian_kuna
|
||||
*/
|
||||
protected static $currencyCode = [
|
||||
'AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', 'ARS', 'AUD', 'AWG', 'AZN',
|
||||
@@ -214,17 +215,17 @@ class Miscellaneous extends Base
|
||||
'BSD', 'BTN', 'BWP', 'BYN', 'BZD', 'CAD', 'CDF', 'CHF', 'CLP', 'CNY',
|
||||
'COP', 'CRC', 'CUC', 'CUP', 'CVE', 'CZK', 'DJF', 'DKK', 'DOP', 'DZD',
|
||||
'EGP', 'ERN', 'ETB', 'EUR', 'FJD', 'FKP', 'GBP', 'GEL', 'GHS', 'GIP',
|
||||
'GMD', 'GNF', 'GTQ', 'GYD', 'HKD', 'HNL', 'HRK', 'HTG', 'HUF', 'IDR',
|
||||
'ILS', 'INR', 'IQD', 'IRR', 'ISK', 'JMD', 'JOD', 'JPY', 'KES', 'KGS',
|
||||
'KHR', 'KMF', 'KPW', 'KRW', 'KWD', 'KYD', 'KZT', 'LAK', 'LBP', 'LKR',
|
||||
'LRD', 'LSL', 'LYD', 'MAD', 'MDL', 'MGA', 'MKD', 'MMK', 'MNT', 'MOP',
|
||||
'MRU', 'MUR', 'MVR', 'MWK', 'MXN', 'MYR', 'MZN', 'NAD', 'NGN', 'NIO',
|
||||
'NOK', 'NPR', 'NZD', 'OMR', 'PAB', 'PEN', 'PGK', 'PHP', 'PKR', 'PLN',
|
||||
'PYG', 'QAR', 'RON', 'RSD', 'RUB', 'RWF', 'SAR', 'SBD', 'SCR', 'SDG',
|
||||
'SEK', 'SGD', 'SHP', 'SLL', 'SOS', 'SRD', 'SSP', 'STN', 'SYP', 'SZL',
|
||||
'THB', 'TJS', 'TMT', 'TND', 'TOP', 'TRY', 'TTD', 'TWD', 'TZS', 'UAH',
|
||||
'UGX', 'USD', 'UYU', 'UZS', 'VES', 'VND', 'VUV', 'WST', 'XAF', 'XCD',
|
||||
'XOF', 'XPF', 'YER', 'ZAR', 'ZMW',
|
||||
'GMD', 'GNF', 'GTQ', 'GYD', 'HKD', 'HNL', 'HTG', 'HUF', 'IDR', 'ILS',
|
||||
'INR', 'IQD', 'IRR', 'ISK', 'JMD', 'JOD', 'JPY', 'KES', 'KGS', 'KHR',
|
||||
'KMF', 'KPW', 'KRW', 'KWD', 'KYD', 'KZT', 'LAK', 'LBP', 'LKR', 'LRD',
|
||||
'LSL', 'LYD', 'MAD', 'MDL', 'MGA', 'MKD', 'MMK', 'MNT', 'MOP', 'MRU',
|
||||
'MUR', 'MVR', 'MWK', 'MXN', 'MYR', 'MZN', 'NAD', 'NGN', 'NIO', 'NOK',
|
||||
'NPR', 'NZD', 'OMR', 'PAB', 'PEN', 'PGK', 'PHP', 'PKR', 'PLN', 'PYG',
|
||||
'QAR', 'RON', 'RSD', 'RUB', 'RWF', 'SAR', 'SBD', 'SCR', 'SDG', 'SEK',
|
||||
'SGD', 'SHP', 'SLL', 'SOS', 'SRD', 'SSP', 'STN', 'SYP', 'SZL', 'THB',
|
||||
'TJS', 'TMT', 'TND', 'TOP', 'TRY', 'TTD', 'TWD', 'TZS', 'UAH', 'UGX',
|
||||
'USD', 'UYU', 'UZS', 'VES', 'VND', 'VUV', 'WST', 'XAF', 'XCD', 'XOF',
|
||||
'XPF', 'YER', 'ZAR', 'ZMW',
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace Faker\Provider;
|
||||
|
||||
class UserAgent extends Base
|
||||
{
|
||||
protected static $userAgents = ['firefox', 'chrome', 'internetExplorer', 'opera', 'safari'];
|
||||
protected static $userAgents = ['firefox', 'chrome', 'internetExplorer', 'opera', 'safari', 'msedge'];
|
||||
|
||||
protected static $windowsPlatformTokens = [
|
||||
'Windows NT 6.2', 'Windows NT 6.1', 'Windows NT 6.0', 'Windows NT 5.2', 'Windows NT 5.1',
|
||||
@@ -25,7 +25,7 @@ class UserAgent extends Base
|
||||
/**
|
||||
* Add as many languages as you like.
|
||||
*/
|
||||
protected static $lang = ['en-US', 'sl-SI'];
|
||||
protected static $lang = ['en-US', 'sl-SI', 'nl-NL'];
|
||||
|
||||
/**
|
||||
* Generate mac processor
|
||||
@@ -81,6 +81,28 @@ class UserAgent extends Base
|
||||
return 'Mozilla/5.0 ' . static::randomElement($platforms);
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate Edge user agent
|
||||
*
|
||||
* @example 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.82 Safari/537.36 Edg/99.0.1150.36'
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function msedge()
|
||||
{
|
||||
$saf = self::numberBetween(531, 537) . '.' . self::numberBetween(0, 2);
|
||||
$chrv = self::numberBetween(79, 99) . '.0';
|
||||
|
||||
$platforms = [
|
||||
'(' . static::windowsPlatformToken() . ") AppleWebKit/$saf (KHTML, like Gecko) Chrome/$chrv" . '.' . self::numberBetween(4000, 4844) . '.' . self::numberBetween(10, 99) . " Safari/$saf Edg/$chrv" . self::numberBetween(1000, 1146) . '.' . self::numberBetween(0, 99),
|
||||
'(' . static::macPlatformToken() . ") AppleWebKit/$saf (KHTML, like Gecko) Chrome/$chrv" . '.' . self::numberBetween(4000, 4844) . '.' . self::numberBetween(10, 99) . " Safari/$saf Edg/$chrv" . self::numberBetween(1000, 1146) . '.' . self::numberBetween(0, 99),
|
||||
'(' . static::linuxPlatformToken() . ") AppleWebKit/$saf (KHTML, like Gecko) Chrome/$chrv" . '.' . self::numberBetween(4000, 4844) . '.' . self::numberBetween(10, 99) . " Safari/$saf EdgA/$chrv" . self::numberBetween(1000, 1146) . '.' . self::numberBetween(0, 99),
|
||||
'(' . static::iosMobileToken() . ") AppleWebKit/$saf (KHTML, like Gecko) Version/15.0 EdgiOS/$chrv" . self::numberBetween(1000, 1146) . '.' . self::numberBetween(0, 99) . " Mobile/15E148 Safari/$saf",
|
||||
];
|
||||
|
||||
return 'Mozilla/5.0 ' . static::randomElement($platforms);
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate Firefox user agent
|
||||
*
|
||||
@@ -177,6 +199,16 @@ class UserAgent extends Base
|
||||
return 'Macintosh; ' . static::randomElement(static::$macProcessor) . ' Mac OS X 10_' . self::numberBetween(5, 8) . '_' . self::numberBetween(0, 9);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public static function iosMobileToken()
|
||||
{
|
||||
$iosVer = self::numberBetween(13, 15) . '_' . self::numberBetween(0, 2);
|
||||
|
||||
return 'iPhone; CPU iPhone OS ' . $iosVer . ' like Mac OS X';
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -53,7 +53,7 @@ class Uuid extends Base
|
||||
$byte[12],
|
||||
$byte[13],
|
||||
$byte[14],
|
||||
$byte[15]
|
||||
$byte[15],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -84,35 +84,35 @@ class Address extends \Faker\Provider\Address
|
||||
|
||||
/**
|
||||
* @see https://ar.wikipedia.org/wiki/%D9%82%D8%A7%D8%A6%D9%85%D8%A9_%D9%85%D8%AD%D8%A7%D9%81%D8%B8%D8%A7%D8%AA_%D9%85%D8%B5%D8%B1
|
||||
* @see https://ar.wikipedia.org/wiki/%D8%A8%D8%B7%D8%A7%D9%82%D8%A9_%D8%A7%D9%84%D8%B1%D9%82%D9%85_%D8%A7%D9%84%D9%82%D9%88%D9%85%D9%8A_%D8%A7%D9%84%D9%85%D8%B5%D8%B1%D9%8A%D8%A9
|
||||
*/
|
||||
protected static $governorates = [
|
||||
'الإسكندرية',
|
||||
'الإسماعيلية',
|
||||
'أسوان',
|
||||
'أسيوط',
|
||||
'الأقصر',
|
||||
'البحر الأحمر',
|
||||
'البحيرة',
|
||||
'بني سويف',
|
||||
'بورسعيد',
|
||||
'جنوب سيناء',
|
||||
'الجيزة',
|
||||
'الدقهلية',
|
||||
'دمياط',
|
||||
'سوهاج',
|
||||
'السويس',
|
||||
'الشرقية',
|
||||
'شمال سيناء',
|
||||
'الغربية',
|
||||
'الفيوم',
|
||||
'القاهرة',
|
||||
'القليوبية',
|
||||
'قنا',
|
||||
'كفر الشيخ',
|
||||
'مطروح',
|
||||
'المنوفية',
|
||||
'المنيا',
|
||||
'الوادي الجديد',
|
||||
'الإسكندرية' => '02',
|
||||
'الإسماعيلية' => '19',
|
||||
'أسوان' => '28',
|
||||
'أسيوط' => '25',
|
||||
'الأقصر' => '29',
|
||||
'البحر الأحمر' => '31',
|
||||
'البحيرة' => '18',
|
||||
'بني سويف' => '22',
|
||||
'بورسعيد' => '03',
|
||||
'جنوب سيناء' => '35',
|
||||
'القاهرة' => '01',
|
||||
'الدقهلية' => '12',
|
||||
'دمياط' => '11',
|
||||
'سوهاج' => '26',
|
||||
'السويس' => '04',
|
||||
'الشرقية' => '13',
|
||||
'شمال سيناء' => '34',
|
||||
'الغربية' => '16',
|
||||
'الفيوم' => '23',
|
||||
'القليوبية' => '14',
|
||||
'قنا' => '27',
|
||||
'كفر الشيخ' => '15',
|
||||
'مطروح' => '33',
|
||||
'المنوفية' => '17',
|
||||
'المنيا' => '24',
|
||||
'الوادي الجديد' => '32',
|
||||
];
|
||||
|
||||
protected static $buildingNumber = ['%####', '%###', '%#'];
|
||||
@@ -201,6 +201,16 @@ class Address extends \Faker\Provider\Address
|
||||
* @example 'الإسكندرية'
|
||||
*/
|
||||
public static function governorate()
|
||||
{
|
||||
return static::randomKey(static::$governorates);
|
||||
}
|
||||
|
||||
/**
|
||||
* @example '01'
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function governorateId()
|
||||
{
|
||||
return static::randomElement(static::$governorates);
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Faker\Provider\ar_EG;
|
||||
|
||||
use Faker\Calculator\Luhn;
|
||||
|
||||
class Person extends \Faker\Provider\Person
|
||||
{
|
||||
protected static $maleNameFormats = [
|
||||
@@ -29,7 +27,7 @@ class Person extends \Faker\Provider\Person
|
||||
'حاتم', 'حازم', 'حافظ', 'حامد', 'حبيب', 'حسام', 'حسان', 'حسن', 'حسني', 'حسين', 'حمدان', 'حمدي', 'حمزة', 'حميد', 'خالد', 'خضر', 'خلف', 'خليفة', 'خليل', 'خميس', 'داوود', 'دياب', 'رأفت', 'رؤوف',
|
||||
'رائد', 'رائف', 'راجح', 'راجي', 'راشد', 'راضي', 'راغب', 'رافت', 'راكان', 'رامز', 'رامي', 'ربيع', 'رجب', 'رزق', 'رشاد', 'رشيد', 'رضا', 'رضوان', 'رياض', 'ريان', 'زاهر', 'زاهي', 'زايد',
|
||||
'زكريا', 'زمام', 'زهير', 'زياد', 'زيد', 'زيدان', 'زين', 'سالم', 'سامح', 'سامر', 'سامي', 'سعد', 'سعيد', 'سلام', 'سلطان', 'سلمان', 'سليم', 'سليمان', 'سمعان', 'سميح', 'سنان', 'سند',
|
||||
'سيف', 'شادي', 'شاكر', 'شريف', 'شهاب', 'شهم', 'شوان', 'صادق', 'صافي', 'صالح', 'صفاء', 'صفوان', 'صقر', 'صلاح', 'صلاح الدين', 'صهيب', 'ضرغام', 'ضياء', 'ضياء الدين’, ', 'طارق', 'طالب', 'طاهر', 'طه', 'عادل', 'عاصم', 'عاطف',
|
||||
'سيف', 'شادي', 'شاكر', 'شريف', 'شهاب', 'شهم', 'شوان', 'صادق', 'صافي', 'صالح', 'صفاء', 'صفوان', 'صقر', 'صلاح', 'صلاح الدين', 'صهيب', 'ضرغام', 'ضياء', 'ضياء الدين', 'طارق', 'طالب', 'طاهر', 'طه', 'عادل', 'عاصم', 'عاطف',
|
||||
'عبيدة', 'عثمان', 'عدلي', 'عدنان', 'عزت',
|
||||
'عصام', 'علاء', 'علي', 'عماد', 'عمار', 'عمر', 'عمرو', 'عنان', 'عواد', 'عوض', 'عوف', 'عوني', 'عيد', 'عيسى', 'غازي', 'غسان', 'غيث', 'فؤاد', 'فادي',
|
||||
'فارس', 'فاروق', 'فاضل', 'فايز', 'فتحي', 'فراس', 'فرح', 'فريد', 'فهد', 'فهمي', 'فوزي', 'فيصل', 'قارس', 'قاسم', 'قيس', 'كامل', 'كرم', 'كريم', 'كمال', 'لؤي', 'لبيب', 'لطفي', 'ليث', 'مأمون',
|
||||
@@ -80,16 +78,30 @@ class Person extends \Faker\Provider\Person
|
||||
}
|
||||
|
||||
/**
|
||||
* @see https://ar.wikipedia.org/wiki/%D8%A8%D8%B7%D8%A7%D9%82%D8%A9_%D8%A7%D9%84%D8%B1%D9%82%D9%85_%D8%A7%D9%84%D9%82%D9%88%D9%85%D9%8A_%D8%A7%D9%84%D9%85%D8%B5%D8%B1%D9%8A%D8%A9
|
||||
*
|
||||
* @example 27512310101010
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function nationalIdNumber()
|
||||
public static function nationalIdNumber($gender = null)
|
||||
{
|
||||
$timestamp = self::numberBetween(1, time());
|
||||
$randomBirthDateTimestamp = mt_rand(strtotime('1950-Jan-10'), strtotime('2005-Dec-25'));
|
||||
|
||||
$date = explode(':', date('y:m:d', $timestamp));
|
||||
$centuryId = ((int) date('Y', $randomBirthDateTimestamp)) >= 2000 ? 3 : 2;
|
||||
$fullBirthDate = date('ymd', $randomBirthDateTimestamp);
|
||||
$governorateId = Address::governorateId();
|
||||
$birthRegistrationSequence = mt_rand(1, 500);
|
||||
|
||||
$partialValue = static::numerify(2 . $date[0] . $date[1] . $date[2] . str_repeat('#', 6));
|
||||
if ($gender === static::GENDER_MALE) {
|
||||
$birthRegistrationSequence = $birthRegistrationSequence | 1; // Convert to the nearest odd number
|
||||
} elseif ($gender === static::GENDER_FEMALE) {
|
||||
$birthRegistrationSequence = $birthRegistrationSequence & ~1; // Convert to the nearest even number
|
||||
}
|
||||
|
||||
return Luhn::generateLuhnNumber($partialValue);
|
||||
$birthRegistrationSequence = str_pad((string) $birthRegistrationSequence, 4, '0', STR_PAD_LEFT);
|
||||
$randomCheckDigit = mt_rand(1, 9);
|
||||
|
||||
return $centuryId . $fullBirthDate . $governorateId . $birthRegistrationSequence . $randomCheckDigit;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ class Person extends \Faker\Provider\Person
|
||||
'جواد', 'حابس', 'حاتم', 'حارث', 'حازم', 'حافظ', 'حاكم', 'حامد', 'حبيب', 'حذيفة', 'حسام', 'حسان', 'حسن', 'حسني', 'حسين', 'حكم', 'حمد', 'حمدالله', 'حمدان', 'حمدي', 'حمزة', 'حمود', 'حميد', 'خالد', 'خضر', 'خلدون', 'خلف', 'خليفة', 'خليل', 'خميس', 'داوود', 'ذياب', 'ذيب', 'رأفت', 'رؤوف', 'رئاد',
|
||||
'رائد', 'رائف', 'راجح', 'راجي', 'راشد', 'راضي', 'راغب', 'رافت', 'رافع', 'رافي', 'راكان', 'رامان', 'رامز', 'رامي', 'رامين', 'ربيع', 'رجا', 'رجائي', 'رجب', 'رداد', 'رزق', 'رسلان', 'رشاد', 'رشيد', 'رضا', 'رضوان', 'رعد', 'رغد', 'رغيد', 'ركان', 'رماح', 'رياض', 'ريان', 'زاهر', 'زاهي', 'زايد',
|
||||
'زكريا', 'زمام', 'زهير', 'زياد', 'زيد', 'زيدان', 'زيدون', 'زين', 'زين العابدين', 'سائد', 'ساري', 'سالم', 'سامح', 'سامر', 'سامي', 'ساهر', 'سدير', 'سرمد', 'سري', 'سعد', 'سعود', 'سعيد', 'سفيان', 'سكوت', 'سلام', 'سلطان', 'سلمان', 'سليم', 'سليمان', 'سمعان', 'سميح', 'سنان', 'سند', 'سهل', 'سهم',
|
||||
'سيف', 'شادي', 'شافع', 'شاكر', 'شامل', 'شاهر', 'شرحبيل', 'شريف', 'شهاب', 'شهم', 'شوان', 'صادق', 'صافي', 'صالح', 'صخر', 'صدام', 'صفاء', 'صفوان', 'صقر', 'صلاح', 'صلاح الدين', 'صهيب', 'ضرار', 'ضرغام', 'ضياء', 'ضياء الدين’, ', 'طارق', 'طالب', 'طاهر', 'طلال', 'طه', 'عادل', 'عاصم', 'عاطف',
|
||||
'سيف', 'شادي', 'شافع', 'شاكر', 'شامل', 'شاهر', 'شرحبيل', 'شريف', 'شهاب', 'شهم', 'شوان', 'صادق', 'صافي', 'صالح', 'صخر', 'صدام', 'صفاء', 'صفوان', 'صقر', 'صلاح', 'صلاح الدين', 'صهيب', 'ضرار', 'ضرغام', 'ضياء', 'ضياء الدين', 'طارق', 'طالب', 'طاهر', 'طلال', 'طه', 'عادل', 'عاصم', 'عاطف',
|
||||
'عامر', 'عايد', 'عبادة', 'عباس', 'عبد الباري', 'عبد الحافظ', 'عبد الحكيم', 'عبد الحليم', 'عبد الحميد', 'عبد الحي', 'عبد الرحمان', 'عبد الرحمن', 'عبد الرحيم', 'عبد الرزاق', 'عبد السلام', 'عبد السميع', 'عبد العزيز', 'عبد العفو', 'عبد الغني', 'عبد الفتاح', 'عبد القادر', 'عبد الكريم',
|
||||
'عبد اللطيف', 'عبد الله', 'عبد المجيد', 'عبد المولى', 'عبد الناصر', 'عبد الهادي', 'عبد ربه', 'عبداالله', 'عبدالاله', 'عبدالباسط', 'عبدالجليل', 'عبدالجواد', 'عبدالحليم', 'عبدالحميد', 'عبدالرؤوف', 'عبدالرحمن', 'عبدالرحيم', 'عبدالرزاق', 'عبدالسلام', 'عبدالعزيز', 'عبدالفتاح', 'عبدالقادر',
|
||||
'عبدالكريم', 'عبداللطيف', 'عبدالله', 'عبدالمجيد', 'عبدالمطلب', 'عبدالمعطي', 'عبدالمهيمن', 'عبدالناصر', 'عبدالهادي', 'عبدالوهاب', 'عبيدالله', 'عبيدة', 'عتيبه', 'عثمان', 'عدب', 'عدلي', 'عدنان', 'عدوان', 'عدي', 'عرار', 'عرمان', 'عروة', 'عريق', 'عرين', 'عز الدين', 'عزالدين', 'عزام', 'عزت',
|
||||
@@ -93,7 +93,7 @@ class Person extends \Faker\Provider\Person
|
||||
public static function idNumber()
|
||||
{
|
||||
$partialValue = static::numerify(
|
||||
static::randomElement([1, 2]) . str_repeat('#', 8)
|
||||
static::randomElement([1, 2]) . str_repeat('#', 8),
|
||||
);
|
||||
|
||||
return Luhn::generateLuhnNumber($partialValue);
|
||||
|
||||
@@ -40,7 +40,7 @@ class Payment extends \Faker\Provider\Payment
|
||||
'%s%d%d',
|
||||
$prefix,
|
||||
self::randomNumber(5, true), // workaround for mt_getrandmax() limitation
|
||||
self::randomNumber(self::randomElement([4, 5]), true)
|
||||
self::randomNumber(self::randomElement([4, 5]), true),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ class Person extends \Faker\Provider\Person
|
||||
protected static $firstNameMale = [
|
||||
'Adam', 'Aleš', 'Alois', 'Antonín', 'Bohumil', 'Bohuslav', 'Dagmar',
|
||||
'Dalibor', 'Daniel', 'David', 'Dominik', 'Dušan', 'Eduard', 'Emil',
|
||||
'Filip', 'František', 'Ilona', 'Ivan', 'Ivo', 'Jakub', 'Jan', 'Ján',
|
||||
'Filip', 'František', 'Igor', 'Ivan', 'Ivo', 'Jakub', 'Jan', 'Ján',
|
||||
'Jaromír', 'Jaroslav', 'Jindřich', 'Jiří', 'Josef', 'Jozef', 'Kamil',
|
||||
'Karel', 'Kryštof', 'Ladislav', 'Libor', 'Lubomír', 'Luboš', 'Luděk',
|
||||
'Ludvík', 'Lukáš', 'Marcel', 'Marek', 'Martin', 'Matěj', 'Matyáš',
|
||||
@@ -438,8 +438,8 @@ class Person extends \Faker\Provider\Person
|
||||
$gender = $this->generator->boolean() ? static::GENDER_MALE : static::GENDER_FEMALE;
|
||||
}
|
||||
|
||||
$startTimestamp = strtotime("-${maxAge} year");
|
||||
$endTimestamp = strtotime("-${minAge} year");
|
||||
$startTimestamp = strtotime(sprintf('-%d year', $maxAge));
|
||||
$endTimestamp = strtotime(sprintf('-%d year', $minAge));
|
||||
$randTimestamp = self::numberBetween($startTimestamp, $endTimestamp);
|
||||
|
||||
$year = (int) (date('Y', $randTimestamp));
|
||||
@@ -451,6 +451,7 @@ class Person extends \Faker\Provider\Person
|
||||
if ($gender == static::GENDER_FEMALE) {
|
||||
$month += 50;
|
||||
}
|
||||
|
||||
// from year 2004 everyone has +20 to month when birth numbers in one day are exhausted
|
||||
if ($year >= 2004 && $this->generator->boolean(10)) {
|
||||
$month += 20;
|
||||
|
||||
@@ -36,7 +36,7 @@ class Person extends \Faker\Provider\Person
|
||||
* @var array Danish first names.
|
||||
*/
|
||||
protected static $firstNameMale = [
|
||||
'Aage', 'Adam', 'Adolf', 'Ahmad', 'Ahmed', 'Aksel', 'Albert', 'Alex', 'Alexander', 'Alf', 'Alfred', 'Ali', 'Allan',
|
||||
'Aage', 'Adam', 'Ahmad', 'Ahmed', 'Aksel', 'Albert', 'Alex', 'Alexander', 'Alf', 'Alfred', 'Ali', 'Allan',
|
||||
'Anders', 'Andreas', 'Anker', 'Anton', 'Arne', 'Arnold', 'Arthur', 'Asbjørn', 'Asger', 'August', 'Axel', 'Benjamin',
|
||||
'Benny', 'Bent', 'Bernhard', 'Birger', 'Bjarne', 'Bjørn', 'Bo', 'Brian', 'Bruno', 'Børge', 'Carl', 'Carlo',
|
||||
'Carsten', 'Casper', 'Charles', 'Chris', 'Christian', 'Christoffer', 'Christopher', 'Claus', 'Dan', 'Daniel', 'David', 'Dennis',
|
||||
|
||||
@@ -8,7 +8,7 @@ class Person extends \Faker\Provider\de_DE\Person
|
||||
* @see http://www.bfs.admin.ch/bfs/portal/de/index/themen/01/02/blank/dos/prenoms/02.html
|
||||
*/
|
||||
protected static $firstNameMale = [
|
||||
'Adolf', 'Adrian', 'Alain', 'Albert', 'Alessandro', 'Alex', 'Alexander', 'Alfred', 'Ali', 'Alois', 'Andrea', 'Andreas', 'Andrin', 'André', 'Angelo', 'Anton', 'Antonio', 'Armin', 'Arnold', 'Arthur',
|
||||
'Adrian', 'Alain', 'Albert', 'Alessandro', 'Alex', 'Alexander', 'Alfred', 'Ali', 'Alois', 'Andrea', 'Andreas', 'Andrin', 'André', 'Angelo', 'Anton', 'Antonio', 'Armin', 'Arnold', 'Arthur',
|
||||
'Beat', 'Benjamin', 'Bernhard', 'Bruno',
|
||||
'Carlo', 'Carlos', 'Christian', 'Christoph', 'Claudio', 'Cyrill', 'Cédric',
|
||||
'Damian', 'Daniel', 'Dario', 'David', 'Denis', 'Diego', 'Dieter', 'Dominic', 'Dominik',
|
||||
|
||||
@@ -31,7 +31,7 @@ class Person extends \Faker\Provider\Person
|
||||
* {@link} From https://de.wiktionary.org/wiki/Verzeichnis:Deutsch/Namen/die_h%C3%A4ufigsten_m%C3%A4nnlichen_Vornamen_Deutschlands
|
||||
*/
|
||||
protected static $firstNameMale = [
|
||||
'Achim', 'Adalbert', 'Adam', 'Adolf', 'Adrian', 'Ahmed', 'Ahmet', 'Albert', 'Albin', 'Albrecht', 'Alex', 'Alexander', 'Alfons', 'Alfred', 'Ali', 'Alois', 'Aloys', 'Alwin', 'Anatoli', 'Andre', 'Andreas', 'Andree', 'Andrej', 'Andrzej', 'André', 'Andy', 'Angelo', 'Ansgar', 'Anton', 'Antonio', 'Antonius', 'Armin', 'Arnd', 'Arndt', 'Arne', 'Arno', 'Arnold', 'Arnulf', 'Arthur', 'Artur', 'August', 'Axel',
|
||||
'Achim', 'Adalbert', 'Adam', 'Adrian', 'Ahmed', 'Ahmet', 'Albert', 'Albin', 'Albrecht', 'Alex', 'Alexander', 'Alfons', 'Alfred', 'Ali', 'Alois', 'Aloys', 'Alwin', 'Anatoli', 'Andre', 'Andreas', 'Andree', 'Andrej', 'Andrzej', 'André', 'Andy', 'Angelo', 'Ansgar', 'Anton', 'Antonio', 'Antonius', 'Armin', 'Arnd', 'Arndt', 'Arne', 'Arno', 'Arnold', 'Arnulf', 'Arthur', 'Artur', 'August', 'Axel',
|
||||
'Bastian', 'Benedikt', 'Benjamin', 'Benno', 'Bernard', 'Bernd', 'Berndt', 'Bernhard', 'Bert', 'Berthold', 'Bertram', 'Björn', 'Bodo', 'Bogdan', 'Boris', 'Bruno', 'Burghard', 'Burkhard',
|
||||
'Carl', 'Carlo', 'Carlos', 'Carsten', 'Christian', 'Christof', 'Christoph', 'Christopher', 'Christos', 'Claudio', 'Claus', 'Claus-Dieter', 'Claus-Peter', 'Clemens', 'Cornelius',
|
||||
'Daniel', 'Danny', 'Darius', 'David', 'Denis', 'Dennis', 'Detlef', 'Detlev', 'Dierk', 'Dieter', 'Diethard', 'Diethelm', 'Dietmar', 'Dietrich', 'Dimitri', 'Dimitrios', 'Dirk', 'Domenico', 'Dominik',
|
||||
|
||||
@@ -4,21 +4,124 @@ namespace Faker\Provider\de_DE;
|
||||
|
||||
class PhoneNumber extends \Faker\Provider\PhoneNumber
|
||||
{
|
||||
/**
|
||||
* @var array<int, string>
|
||||
*/
|
||||
protected static $areaCodeRegexes = [
|
||||
2 => '(0[0-389]|0[4-6][1-68]|1[124]|1[0-9][0-9]|2[18]|2[0-9][1-9]|3[14]|3[0-35-9][0-9]|4[1]|4[02-8][0-9]|5[1]|5[02-9][0-9]|6[1]|6[02-9][0-9]|7[1]|7[2-7][0-9]|8[1]|8[02-7][0-9]|9[1]|9[02-9][0-9])',
|
||||
3 => '(0|3[15]|3[02-46-9][1-9]|3[02-46-9][02-9][0-9]|4[015]|4[2-4679][1-8]|4[2-4679][02-9][0-9]|5[15]|5[02-46-9][1-9]|5[02-46-9][02-9][0-9]|6[15]|6[02-46-9][1-9]|6[02-46-9][02-9][0-9]|7[15]|7[2-467][1-7]|7[2-467][02-689][0-9]|8[15]|8[2-46-8][013-9]|8[2-46-8][02-9][0-9]|9[15]|9[02-46-9][1-9]|9[02-46-9][02-9][0-9])',
|
||||
4 => '(0|1[02-9][0-9]|2[1]|2[02-9][0-9]|3[1]|3[02-9][0-9]|4[1]|4[0-9][0-9]|5[1]|5[02-6][0-9]|6[1]|6[02-8][0-9]|7[1]|7[02-79][0-9]|8[1]|8[02-9][0-9]|9[1]|9[02-7][0-9])',
|
||||
5 => '(0[2-8][0-9]|1[1]|1[02-9][0-9]|2[1]|2[02-9][1-9]|3[1]|3[02-8][0-9]|4[1]|4[02-9][1-9]|5[1]|5[02-9][0-9]|6[1]|6[02-9][0-9]|7[1]|7[02-7][1-9]|8[1]|8[02-8][0-9]|9[1]|9[0-7][1-9])',
|
||||
6 => '(0[02-9][0-9]|1[1]|1[02-9][0-9]|2[1]|2[02-9][0-9]|3[1]|3[02-9][0-9]|4[1]|4[0-8][0-9]|5[1]|5[02-9][0-9]|6[1]|6[2-9][0-9]|7[1]|7[02-8][1-9]|8[1]|8[02-9][1-9]|9)',
|
||||
7 => '(0[2-8][1-6]|1[1]|1[2-9][0-9]|2[1]|2[0-7][0-9]|3[1]|3[02-9][0-9]|4[1]|4[0-8][0-9]|5[1]|5[02-8][0-9]|6[1]|6[02-8][0-9]|7[1]|7[02-7][0-9]|8[1]|8[02-5][1-9]|9[1]|9[03-7][0-9])',
|
||||
8 => '(0[2-9][0-9]|1[1]|1[02-79][0-9]|2[1]|2[02-9][0-9]|3[1]|3[02-9][0-9]|4[1]|4[02-6][0-9]|5[1]|5[02-9][0-9]|6[1]|6[2-8][0-9]|7[1]|7[02-8][1-9]|8[1]|8[02-6][0-9]|9)',
|
||||
9 => '(0[6]|0[07-9][0-9]|1[1]|1[02-9][0-9]|2[1]|2[02-9][0-9]|3[1]|3[02-9][0-9]|4[1]|4[02-9][0-9]|5[1]|5[02-7][0-9]|6[1]|6[02-8][1-9]|7[1]|7[02-467][0-9]|8[1]|8[02-7][0-9]|9[1]|9[02-7][0-9])',
|
||||
];
|
||||
|
||||
/**
|
||||
* @see https://en.wikipedia.org/wiki/National_conventions_for_writing_telephone_numbers#Germany
|
||||
* @see https://www.itu.int/oth/T0202000051/en
|
||||
* @see https://en.wikipedia.org/wiki/Telephone_numbers_in_Germany
|
||||
*/
|
||||
protected static $formats = [
|
||||
'+49(0)##########',
|
||||
'+49(0)#### ######',
|
||||
'+49 (0) #### ######',
|
||||
'+49(0) #########',
|
||||
'+49(0)#### #####',
|
||||
'0##########',
|
||||
'0#########',
|
||||
'0#### ######',
|
||||
'0#### #####',
|
||||
'(0####) ######',
|
||||
'(0####) #####',
|
||||
// International format
|
||||
'+49 {{areaCode}} #######',
|
||||
'+49 {{areaCode}} ### ####',
|
||||
'+49 (0{{areaCode}}) #######',
|
||||
'+49 (0{{areaCode}}) ### ####',
|
||||
'+49{{areaCode}}#######',
|
||||
'+49{{areaCode}}### ####',
|
||||
|
||||
// Standard formats
|
||||
'0{{areaCode}} ### ####',
|
||||
'0{{areaCode}} #######',
|
||||
'(0{{areaCode}}) ### ####',
|
||||
'(0{{areaCode}}) #######',
|
||||
];
|
||||
|
||||
protected static $e164Formats = [
|
||||
'+49##########',
|
||||
'+49{{areaCode}}#######',
|
||||
];
|
||||
|
||||
/**
|
||||
* @see https://en.wikipedia.org/wiki/Toll-free_telephone_number
|
||||
*/
|
||||
protected static $tollFreeAreaCodes = [
|
||||
800,
|
||||
];
|
||||
|
||||
protected static $tollFreeFormats = [
|
||||
// Standard formats
|
||||
'0{{tollFreeAreaCode}} ### ####',
|
||||
'(0{{tollFreeAreaCode}}) ### ####',
|
||||
'+49{{tollFreeAreaCode}} ### ####',
|
||||
];
|
||||
|
||||
public function tollFreeAreaCode()
|
||||
{
|
||||
return self::randomElement(static::$tollFreeAreaCodes);
|
||||
}
|
||||
|
||||
public function tollFreePhoneNumber()
|
||||
{
|
||||
$format = self::randomElement(static::$tollFreeFormats);
|
||||
|
||||
return self::numerify($this->generator->parse($format));
|
||||
}
|
||||
|
||||
protected static $mobileCodes = [
|
||||
1511, 1512, 1514, 1515, 1516, 1517,
|
||||
1520, 1521, 1522, 1523, 1525, 1526, 1529,
|
||||
1570, 1573, 1575, 1577, 1578, 1579,
|
||||
1590,
|
||||
];
|
||||
|
||||
protected static $mobileFormats = [
|
||||
'+49{{mobileCode}}#######',
|
||||
'+49 {{mobileCode}} ### ####',
|
||||
'0{{mobileCode}}#######',
|
||||
'0{{mobileCode}} ### ####',
|
||||
'0 {{mobileCode}} ### ####',
|
||||
];
|
||||
|
||||
/**
|
||||
* @see https://en.wikipedia.org/wiki/List_of_dialling_codes_in_Germany
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function areaCode()
|
||||
{
|
||||
$firstDigit = self::numberBetween(2, 9);
|
||||
|
||||
return $firstDigit . self::regexify(self::$areaCodeRegexes[$firstDigit]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate a code for a mobile number.
|
||||
*
|
||||
* @internal Used to generate mobile numbers.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function mobileCode()
|
||||
{
|
||||
return static::randomElement(static::$mobileCodes);
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate a mobile number.
|
||||
*
|
||||
* @example A mobile number: '015111234567'
|
||||
* @example A mobile number with spaces: '01511 123 4567'
|
||||
* @example A mobile number with international code prefix: '+4915111234567'
|
||||
* @example A mobile number with international code prefix and spaces: '+49 1511 123 4567'
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function mobileNumber()
|
||||
{
|
||||
return ltrim(static::numerify($this->generator->parse(
|
||||
static::randomElement(static::$mobileFormats),
|
||||
)));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -126,7 +126,7 @@ class Person extends \Faker\Provider\Person
|
||||
'Αγγελίδης', 'Αγγελόπουλος', 'Αθανασιάδης', 'Αλαφούζος', 'Αλεβίζος', 'Αλεξόπουλος', 'Αλιβιζάτος', 'Αναγνωστόπουλος', 'Αναστασιάδης', 'Αναστασίου', 'Ανδρεάδης', 'Αντωνιάδης', 'Αντωνόπουλος', 'Αποστολόπουλος',
|
||||
'Αξιώτης', 'Βαρουξής', 'Βασιλείου', 'Βασιλόπουλος', 'Βενιζέλος', 'Βέργας', 'Βιτάλης', 'Βούλγαρης', 'Γαλάνης', 'Γερμανός', 'Γεωργίου', 'Γεωργιάδης', 'Γιάγκος', 'Γιαννόπουλος', 'Γιαννακόπουλος', 'Γιάνναρης',
|
||||
'Γούσιος', 'Γρηγοριάδης', 'Δασκαλόπουλος', 'Δελής', 'Διαμαντόπουλος', 'Δημητριάδης', 'Δουρέντης', 'Ελευθερόπουλος', 'Ελευθεριάδης', 'Ευθυμιάδης', 'Ευσταθιάδης', 'Ευταξίας', 'Ζαχαριάδης', 'Ζερβός', 'Ζωγραφός',
|
||||
'Ηλιάδης', 'Ηλιόπουλος', 'Θεοτόκης', 'Θεωδωρόπουλος', 'Θεωδώρου', 'Θεωδωρίδης', 'Ιατρίδης', 'Ιωαννίδης', 'Καλύβας', 'Καραβίας', 'Καννελόπουλος', 'Καραγιάννης', 'Κεδίκογλου', 'Κολιάτσος', 'Κόκκινος', 'Κομνηνός',
|
||||
'Ηλιάδης', 'Ηλιόπουλος', 'Θεοτόκης', 'Θεοδωρόπουλος', 'Θεοδώρου', 'Θεοδωρίδης', 'Ιατρίδης', 'Ιωαννίδης', 'Καλύβας', 'Καραβίας', 'Καννελόπουλος', 'Καραγιάννης', 'Κεδίκογλου', 'Κολιάτσος', 'Κόκκινος', 'Κομνηνός',
|
||||
'Κοντολέων', 'Κοντός', 'Κόρακας', 'Κορομηλάς', 'Κορωναίος', 'Κοσμόπουλος', 'Κουταλιανός', 'Κυπραίος', 'Κωνσταντίνου', 'Κωνσταντινίδης', 'Κωνσταντόπουλος', 'Κωστόπουλος', 'Κρητικός', 'Κυριακόπουλος', 'Λαμέρας',
|
||||
'Λαμπρόπουλος', 'Λούλης', 'Μακρής', 'Μανιάκης', 'Μαρκόπουλος', 'Μαυρλίδης', 'Μεταξάς', 'Μιχαηλίδης', 'Μπλέτσας', 'Νικολαΐδης', 'Νικολάκος', 'Νικολόπουλος', 'Ξανθόπουλος', 'Ξένος', 'Οικονομίδης', 'Ουζουνίδης',
|
||||
'Παναγιωτίδης', 'Πανταζής', 'Παπαγεωργίου', 'Παπάγος', 'Παπαδάκης', 'Παπαδόπουλος', 'Παπάζογλου', 'Παπακώστας', 'Παπανδρέου', 'Παπανικολάου', 'Παπαντωνίου', 'Παπαστεφάνου', 'Παπαφιλίππου', 'Παπαϊωάννου', 'Παππάς',
|
||||
@@ -136,8 +136,8 @@ class Person extends \Faker\Provider\Person
|
||||
|
||||
protected static $lastNameFemale = [
|
||||
'Αγγελίδου', 'Αγγελοπούλου', 'Αλεξάνδρου', 'Αλεξάνδρου', 'Αλεξίου', 'Αναγνώστου', 'Αναστασίου', 'Ανδρέου', 'Αντωνοπούλου', 'Ανυφαντή', 'Ανυφαντή', 'Αργυρού', 'Βαριμπόμπη', 'Βιτάλη', 'Γάσπαρη', 'Γαλάνη', 'Γεννήτη',
|
||||
'Γερμανού', 'Γεωγιάδου', 'Γεωργίβαλου', 'Γεωργίου', 'Γιακουμή', 'Γιαννακοπούλου', 'Γρηγοριάδου', 'Δασκαλοπούλου', 'Διδασκάλου', 'Δημητριάδου', 'Ελευθερίου', 'Ευθυμιάδου', 'Ηλιοπούλου', 'Θεοτόκου', 'Θεωδωροπούλου',
|
||||
'Θεωδώρου', 'Θεωδωρίδου', 'Ιωάννου', 'Καπετανάκη', 'Καπνού', 'Καρσιβάνη', 'Κοκκίνου', 'Κωνσταντινίδου', 'Κωνσταντίνου', 'Κυριακοπούλου', 'Λάσκαρη', 'Λασκαρού', 'Μάκρη', 'Μακρή', 'Μοραΐτη', 'Μπόγρη', 'Μυλωνά',
|
||||
'Γερμανού', 'Γεωγιάδου', 'Γεωργίβαλου', 'Γεωργίου', 'Γιακουμή', 'Γιαννακοπούλου', 'Γρηγοριάδου', 'Δασκαλοπούλου', 'Διδασκάλου', 'Δημητριάδου', 'Ελευθερίου', 'Ευθυμιάδου', 'Ηλιοπούλου', 'Θεοτόκου', 'Θεοδωροπούλου',
|
||||
'Θεοδώρου', 'Θεοδωρίδου', 'Ιωάννου', 'Καπετανάκη', 'Καπνού', 'Καρσιβάνη', 'Κοκκίνου', 'Κωνσταντινίδου', 'Κωνσταντίνου', 'Κυριακοπούλου', 'Λάσκαρη', 'Λασκαρού', 'Μάκρη', 'Μακρή', 'Μοραΐτη', 'Μπόγρη', 'Μυλωνά',
|
||||
'Νικολάου', 'Νικολοπούλου', 'Ξανθοπούλου', 'Οικονομίδου', 'Οικονομοπούλου', 'Οικονόμου', 'Παπαδοπούλου', 'Παπακιρίσκου', 'Παπακωνσταντίνου', 'Παπαμάρκου', 'Παπαστάμου', 'Ράφτη', 'Σακελλαρίου', 'Σελινά', 'Σκουτέρη',
|
||||
'Σπανού', 'Σταματιάδου', 'Σωπολιάτη', 'Τριανταφυλλίδου', 'Φοσκιά', 'Φωτιάδου', 'Χαραλαμπίδου', 'Χατζηιωάννου',
|
||||
];
|
||||
@@ -164,7 +164,7 @@ class Person extends \Faker\Provider\Person
|
||||
}
|
||||
|
||||
/**
|
||||
* @example 'Θεωδωρόπουλος'
|
||||
* @example 'Θεοδωρόπουλος'
|
||||
*/
|
||||
public static function lastNameMale()
|
||||
{
|
||||
|
||||
@@ -158,7 +158,7 @@ class PhoneNumber extends \Faker\Provider\PhoneNumber
|
||||
public static function areaCode()
|
||||
{
|
||||
return static::numerify(
|
||||
str_pad(static::randomElement(static::$areaCodes), 4, '#')
|
||||
str_pad(static::randomElement(static::$areaCodes), 4, '#'),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -182,7 +182,7 @@ class PhoneNumber extends \Faker\Provider\PhoneNumber
|
||||
public function fixedLineNumber()
|
||||
{
|
||||
return ltrim(static::numerify($this->generator->parse(
|
||||
static::randomElement(static::$fixedLineFormats)
|
||||
static::randomElement(static::$fixedLineFormats),
|
||||
)));
|
||||
}
|
||||
|
||||
@@ -211,7 +211,7 @@ class PhoneNumber extends \Faker\Provider\PhoneNumber
|
||||
public function mobileNumber()
|
||||
{
|
||||
return ltrim(static::numerify($this->generator->parse(
|
||||
static::randomElement(static::$mobileFormats)
|
||||
static::randomElement(static::$mobileFormats),
|
||||
)));
|
||||
}
|
||||
|
||||
@@ -224,7 +224,7 @@ class PhoneNumber extends \Faker\Provider\PhoneNumber
|
||||
strtr(static::randomElement(static::$mobileFormats), [
|
||||
'{{internationalCodePrefix}}' => static::internationalCodePrefix(),
|
||||
'{{mobileCode}}' => static::mobileCode(),
|
||||
])
|
||||
]),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -241,7 +241,7 @@ class PhoneNumber extends \Faker\Provider\PhoneNumber
|
||||
public function personalNumber()
|
||||
{
|
||||
return ltrim(static::numerify($this->generator->parse(
|
||||
static::randomElement(static::$personalFormats)
|
||||
static::randomElement(static::$personalFormats),
|
||||
)));
|
||||
}
|
||||
|
||||
@@ -260,7 +260,7 @@ class PhoneNumber extends \Faker\Provider\PhoneNumber
|
||||
return ltrim(static::numerify(
|
||||
strtr(static::randomElement(static::$tollFreeFormats), [
|
||||
'{{internationalCodePrefix}}' => static::internationalCodePrefix(),
|
||||
])
|
||||
]),
|
||||
));
|
||||
}
|
||||
|
||||
@@ -289,7 +289,7 @@ class PhoneNumber extends \Faker\Provider\PhoneNumber
|
||||
public function sharedCostNumber()
|
||||
{
|
||||
return ltrim(static::numerify($this->generator->parse(
|
||||
static::randomElement(static::$sharedCostFormats)
|
||||
static::randomElement(static::$sharedCostFormats),
|
||||
)));
|
||||
}
|
||||
|
||||
@@ -318,7 +318,7 @@ class PhoneNumber extends \Faker\Provider\PhoneNumber
|
||||
public function premiumRateNumber()
|
||||
{
|
||||
return ltrim(static::numerify($this->generator->parse(
|
||||
static::randomElement(static::$premiumRateFormats)
|
||||
static::randomElement(static::$premiumRateFormats),
|
||||
)));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,8 +64,8 @@ class Address extends \Faker\Provider\en_US\Address
|
||||
{
|
||||
$string = static::randomElement(static::$postcode);
|
||||
|
||||
$string = preg_replace_callback('/\#/u', 'static::randomDigit', $string);
|
||||
$string = preg_replace_callback('/\?/u', 'static::randomPostcodeLetter', $string);
|
||||
$string = preg_replace_callback('/\#/u', [static::class, 'randomDigit'], $string);
|
||||
$string = preg_replace_callback('/\?/u', [static::class, 'randomPostcodeLetter'], $string);
|
||||
|
||||
return static::toUpper($string);
|
||||
}
|
||||
|
||||
@@ -21,7 +21,6 @@ class Company extends \Faker\Provider\Company
|
||||
public static function vat(string $type = null): string
|
||||
{
|
||||
switch ($type) {
|
||||
|
||||
case static::VAT_TYPE_BRANCH:
|
||||
return static::generateBranchTraderVatNumber();
|
||||
|
||||
@@ -33,7 +32,6 @@ class Company extends \Faker\Provider\Company
|
||||
|
||||
default:
|
||||
return static::generateStandardVatNumber();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,7 +53,7 @@ class Company extends \Faker\Provider\Company
|
||||
static::VAT_PREFIX,
|
||||
$firstBlock,
|
||||
$secondBlock,
|
||||
static::calculateModulus97($firstBlock . $secondBlock)
|
||||
static::calculateModulus97($firstBlock . $secondBlock),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -68,7 +66,7 @@ class Company extends \Faker\Provider\Company
|
||||
return sprintf(
|
||||
'%sHA%d',
|
||||
static::VAT_PREFIX,
|
||||
static::numberBetween(500, 999)
|
||||
static::numberBetween(500, 999),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -81,7 +79,7 @@ class Company extends \Faker\Provider\Company
|
||||
return sprintf(
|
||||
'%s %d',
|
||||
static::generateStandardVatNumber(),
|
||||
static::randomNumber(3, true)
|
||||
static::randomNumber(3, true),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -94,7 +92,7 @@ class Company extends \Faker\Provider\Company
|
||||
return sprintf(
|
||||
'%sGD%s',
|
||||
static::VAT_PREFIX,
|
||||
str_pad((string) static::numberBetween(0, 499), 3, '0', STR_PAD_LEFT)
|
||||
str_pad((string) static::numberBetween(0, 499), 3, '0', STR_PAD_LEFT),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ class Company extends \Faker\Provider\Company
|
||||
'Adaptive', 'Advanced', 'Ameliorated', 'Assimilated', 'Automated', 'Balanced', 'Business-focused', 'Centralized', 'Cloned', 'Compatible', 'Configurable', 'Cross-group', 'Cross-platform', 'Customer-focused', 'Customizable', 'Decentralized', 'De-engineered', 'Devolved', 'Digitized', 'Distributed', 'Diverse', 'Down-sized', 'Enhanced', 'Enterprise-wide', 'Ergonomic', 'Exclusive', 'Expanded', 'Extended', 'Facetoface', 'Focused', 'Front-line', 'Fully-configurable', 'Function-based', 'Fundamental', 'Future-proofed', 'Grass-roots', 'Horizontal', 'Implemented', 'Innovative', 'Integrated', 'Intuitive', 'Inverse', 'Managed', 'Mandatory', 'Monitored', 'Multi-channelled', 'Multi-lateral', 'Multi-layered', 'Multi-tiered', 'Networked', 'Object-based', 'Open-architected', 'Open-source', 'Operative', 'Optimized', 'Optional', 'Organic', 'Organized', 'Persevering', 'Persistent', 'Phased', 'Polarised', 'Pre-emptive', 'Proactive', 'Profit-focused', 'Profound', 'Programmable', 'Progressive', 'Public-key', 'Quality-focused', 'Reactive', 'Realigned', 'Re-contextualized', 'Re-engineered', 'Reduced', 'Reverse-engineered', 'Right-sized', 'Robust', 'Seamless', 'Secured', 'Self-enabling', 'Sharable', 'Stand-alone', 'Streamlined', 'Switchable', 'Synchronised', 'Synergistic', 'Synergized', 'Team-oriented', 'Total', 'Triple-buffered', 'Universal', 'Up-sized', 'Upgradable', 'User-centric', 'User-friendly', 'Versatile', 'Virtual', 'Visionary', 'Vision-oriented',
|
||||
],
|
||||
[
|
||||
'24hour', '24/7', '3rdgeneration', '4thgeneration', '5thgeneration', '6thgeneration', 'actuating', 'analyzing', 'assymetric', 'asynchronous', 'attitude-oriented', 'background', 'bandwidth-monitored', 'bi-directional', 'bifurcated', 'bottom-line', 'clear-thinking', 'client-driven', 'client-server', 'coherent', 'cohesive', 'composite', 'context-sensitive', 'contextually-based', 'content-based', 'dedicated', 'demand-driven', 'didactic', 'directional', 'discrete', 'disintermediate', 'dynamic', 'eco-centric', 'empowering', 'encompassing', 'even-keeled', 'executive', 'explicit', 'exuding', 'fault-tolerant', 'foreground', 'fresh-thinking', 'full-range', 'global', 'grid-enabled', 'heuristic', 'high-level', 'holistic', 'homogeneous', 'human-resource', 'hybrid', 'impactful', 'incremental', 'intangible', 'interactive', 'intermediate', 'leadingedge', 'local', 'logistical', 'maximized', 'methodical', 'mission-critical', 'mobile', 'modular', 'motivating', 'multimedia', 'multi-state', 'multi-tasking', 'national', 'needs-based', 'neutral', 'nextgeneration', 'non-volatile', 'object-oriented', 'optimal', 'optimizing', 'radical', 'real-time', 'reciprocal', 'regional', 'responsive', 'scalable', 'secondary', 'solution-oriented', 'stable', 'static', 'systematic', 'systemic', 'system-worthy', 'tangible', 'tertiary', 'transitional', 'uniform', 'upward-trending', 'user-facing', 'value-added', 'web-enabled', 'well-modulated', 'zeroadministration', 'zerodefect', 'zerotolerance',
|
||||
'24hour', '24/7', '3rdgeneration', '4thgeneration', '5thgeneration', '6thgeneration', 'actuating', 'analyzing', 'asymmetric', 'asynchronous', 'attitude-oriented', 'background', 'bandwidth-monitored', 'bi-directional', 'bifurcated', 'bottom-line', 'clear-thinking', 'client-driven', 'client-server', 'coherent', 'cohesive', 'composite', 'context-sensitive', 'contextually-based', 'content-based', 'dedicated', 'demand-driven', 'didactic', 'directional', 'discrete', 'disintermediate', 'dynamic', 'eco-centric', 'empowering', 'encompassing', 'even-keeled', 'executive', 'explicit', 'exuding', 'fault-tolerant', 'foreground', 'fresh-thinking', 'full-range', 'global', 'grid-enabled', 'heuristic', 'high-level', 'holistic', 'homogeneous', 'human-resource', 'hybrid', 'impactful', 'incremental', 'intangible', 'interactive', 'intermediate', 'leadingedge', 'local', 'logistical', 'maximized', 'methodical', 'mission-critical', 'mobile', 'modular', 'motivating', 'multimedia', 'multi-state', 'multi-tasking', 'national', 'needs-based', 'neutral', 'nextgeneration', 'non-volatile', 'object-oriented', 'optimal', 'optimizing', 'radical', 'real-time', 'reciprocal', 'regional', 'responsive', 'scalable', 'secondary', 'solution-oriented', 'stable', 'static', 'systematic', 'systemic', 'system-worthy', 'tangible', 'tertiary', 'transitional', 'uniform', 'upward-trending', 'user-facing', 'value-added', 'web-enabled', 'well-modulated', 'zeroadministration', 'zerodefect', 'zerotolerance',
|
||||
],
|
||||
[
|
||||
'ability', 'access', 'adapter', 'algorithm', 'alliance', 'analyzer', 'application', 'approach', 'architecture', 'archive', 'artificialintelligence', 'array', 'attitude', 'benchmark', 'blockchain', 'budgetarymanagement', 'capability', 'capacity', 'challenge', 'circuit', 'collaboration', 'complexity', 'concept', 'conglomeration', 'contingency', 'core', 'customerloyalty', 'database', 'data-warehouse', 'definition', 'emulation', 'encoding', 'encryption', 'extranet', 'firmware', 'flexibility', 'focusgroup', 'forecast', 'frame', 'framework', 'function', 'functionalities', 'GraphicInterface', 'groupware', 'GraphicalUserInterface', 'hardware', 'help-desk', 'hierarchy', 'hub', 'implementation', 'info-mediaries', 'infrastructure', 'initiative', 'installation', 'instructionset', 'interface', 'internetsolution', 'intranet', 'knowledgeuser', 'knowledgebase', 'localareanetwork', 'leverage', 'matrices', 'matrix', 'methodology', 'middleware', 'migration', 'model', 'moderator', 'monitoring', 'moratorium', 'neural-net', 'openarchitecture', 'opensystem', 'orchestration', 'paradigm', 'parallelism', 'policy', 'portal', 'pricingstructure', 'processimprovement', 'product', 'productivity', 'project', 'projection', 'protocol', 'securedline', 'service-desk', 'software', 'solution', 'standardization', 'strategy', 'structure', 'success', 'superstructure', 'support', 'synergy', 'systemengine', 'task-force', 'throughput', 'time-frame', 'toolset', 'utilisation', 'website', 'workforce',
|
||||
|
||||
@@ -27,7 +27,7 @@ class Person extends \Faker\Provider\Person
|
||||
];
|
||||
|
||||
protected static $firstNameMale = [
|
||||
'Aaron', 'Abdiel', 'Abdul', 'Abdullah', 'Abe', 'Abel', 'Abelardo', 'Abner', 'Abraham', 'Adalberto', 'Adam', 'Adan', 'Adelbert', 'Adolf', 'Adolfo', 'Adolph', 'Adolphus', 'Adonis', 'Adrain', 'Adrian', 'Adriel', 'Adrien', 'Afton', 'Agustin', 'Ahmad', 'Ahmed', 'Aidan', 'Aiden', 'Akeem', 'Al', 'Alan', 'Albert', 'Alberto', 'Albin', 'Alden', 'Alec', 'Alejandrin', 'Alek', 'Alessandro', 'Alex', 'Alexander', 'Alexandre', 'Alexandro', 'Alexie', 'Alexis', 'Alexys', 'Alexzander', 'Alf', 'Alfonso', 'Alfonzo', 'Alford', 'Alfred', 'Alfredo', 'Ali', 'Allan', 'Allen', 'Alphonso', 'Alvah', 'Alvis', 'Amani', 'Amari', 'Ambrose', 'Americo', 'Amir', 'Amos', 'Amparo', 'Anastacio', 'Anderson', 'Andre', 'Andres', 'Andrew', 'Andy', 'Angel', 'Angelo', 'Angus', 'Anibal', 'Ansel', 'Ansley', 'Anthony', 'Antone', 'Antonio', 'Antwan', 'Antwon', 'Arch', 'Archibald', 'Arden', 'Arely', 'Ari', 'Aric', 'Ariel', 'Arjun', 'Arlo', 'Armand', 'Armando', 'Armani', 'Arnaldo', 'Arne', 'Arno', 'Arnold', 'Arnoldo', 'Arnulfo', 'Aron', 'Art', 'Arthur', 'Arturo', 'Arvel', 'Arvid', 'Ashton', 'August', 'Augustus', 'Aurelio', 'Austen', 'Austin', 'Austyn', 'Avery', 'Axel', 'Ayden',
|
||||
'Aaron', 'Abdiel', 'Abdul', 'Abdullah', 'Abe', 'Abel', 'Abelardo', 'Abner', 'Abraham', 'Adalberto', 'Adam', 'Adan', 'Adelbert', 'Adolfo', 'Adolphus', 'Adonis', 'Adrain', 'Adrian', 'Adriel', 'Adrien', 'Afton', 'Agustin', 'Ahmad', 'Ahmed', 'Aidan', 'Aiden', 'Akeem', 'Al', 'Alan', 'Albert', 'Alberto', 'Albin', 'Alden', 'Alec', 'Alejandrin', 'Alek', 'Alessandro', 'Alex', 'Alexander', 'Alexandre', 'Alexandro', 'Alexie', 'Alexis', 'Alexys', 'Alexzander', 'Alf', 'Alfonso', 'Alfonzo', 'Alford', 'Alfred', 'Alfredo', 'Ali', 'Allan', 'Allen', 'Alphonso', 'Alvah', 'Alvis', 'Amani', 'Amari', 'Ambrose', 'Americo', 'Amir', 'Amos', 'Amparo', 'Anastacio', 'Anderson', 'Andre', 'Andres', 'Andrew', 'Andy', 'Angel', 'Angelo', 'Angus', 'Anibal', 'Ansel', 'Ansley', 'Anthony', 'Antone', 'Antonio', 'Antwan', 'Antwon', 'Arch', 'Archibald', 'Arden', 'Arely', 'Ari', 'Aric', 'Ariel', 'Arjun', 'Arlo', 'Armand', 'Armando', 'Armani', 'Arnaldo', 'Arne', 'Arno', 'Arnold', 'Arnoldo', 'Arnulfo', 'Aron', 'Art', 'Arthur', 'Arturo', 'Arvel', 'Arvid', 'Ashton', 'August', 'Augustus', 'Aurelio', 'Austen', 'Austin', 'Austyn', 'Avery', 'Axel', 'Ayden',
|
||||
'Bailey', 'Barney', 'Baron', 'Barrett', 'Barry', 'Bart', 'Bartholome', 'Barton', 'Baylee', 'Beau', 'Bell', 'Ben', 'Benedict', 'Benjamin', 'Bennett', 'Bennie', 'Benny', 'Benton', 'Bernard', 'Bernardo', 'Bernhard', 'Bernie', 'Berry', 'Berta', 'Bertha', 'Bertram', 'Bertrand', 'Bill', 'Billy', 'Blair', 'Blaise', 'Blake', 'Blaze', 'Bo', 'Bobbie', 'Bobby', 'Boris', 'Boyd', 'Brad', 'Braden', 'Bradford', 'Bradley', 'Bradly', 'Brady', 'Braeden', 'Brain', 'Brando', 'Brandon', 'Brandt', 'Brannon', 'Branson', 'Brant', 'Braulio', 'Braxton', 'Brayan', 'Brendan', 'Brenden', 'Brendon', 'Brennan', 'Brennon', 'Brent', 'Bret', 'Brett', 'Brian', 'Brice', 'Brock', 'Broderick', 'Brody', 'Brook', 'Brooks', 'Brown', 'Bruce', 'Bryce', 'Brycen', 'Bryon', 'Buck', 'Bud', 'Buddy', 'Buford', 'Burley', 'Buster',
|
||||
'Cade', 'Caden', 'Caesar', 'Cale', 'Caleb', 'Camden', 'Cameron', 'Camren', 'Camron', 'Camryn', 'Candelario', 'Candido', 'Carey', 'Carleton', 'Carlo', 'Carlos', 'Carmel', 'Carmelo', 'Carmine', 'Carol', 'Carroll', 'Carson', 'Carter', 'Cary', 'Casey', 'Casimer', 'Casimir', 'Casper', 'Ceasar', 'Cecil', 'Cedrick', 'Celestino', 'Cesar', 'Chad', 'Chadd', 'Chadrick', 'Chaim', 'Chance', 'Chandler', 'Charles', 'Charley', 'Charlie', 'Chase', 'Chauncey', 'Chaz', 'Chelsey', 'Chesley', 'Chester', 'Chet', 'Chris', 'Christ', 'Christian', 'Christop', 'Christophe', 'Christopher', 'Cicero', 'Cielo', 'Clair', 'Clark', 'Claud', 'Claude', 'Clay', 'Clemens', 'Clement', 'Cleo', 'Cletus', 'Cleve', 'Cleveland', 'Clifford', 'Clifton', 'Clint', 'Clinton', 'Clovis', 'Cloyd', 'Clyde', 'Coby', 'Cody', 'Colby', 'Cole', 'Coleman', 'Colin', 'Collin', 'Colt', 'Colten', 'Colton', 'Columbus', 'Conner', 'Connor', 'Conor', 'Conrad', 'Constantin', 'Consuelo', 'Cooper', 'Corbin', 'Cordelia', 'Cordell', 'Cornelius', 'Cornell', 'Cortez', 'Cory', 'Coty', 'Coy', 'Craig', 'Crawford', 'Cristian', 'Cristina', 'Cristobal', 'Cristopher', 'Cruz', 'Cullen', 'Curt', 'Curtis', 'Cyril', 'Cyrus',
|
||||
'Dagmar', 'Dale', 'Dallas', 'Dallin', 'Dalton', 'Dameon', 'Damian', 'Damien', 'Damion', 'Damon', 'Dan', 'Dane', 'D\'angelo', 'Dangelo', 'Danial', 'Danny', 'Dante', 'Daren', 'Darian', 'Darien', 'Dario', 'Darion', 'Darius', 'Daron', 'Darrel', 'Darrell', 'Darren', 'Darrick', 'Darrin', 'Darrion', 'Darron', 'Darryl', 'Darwin', 'Daryl', 'Dashawn', 'Dave', 'David', 'Davin', 'Davion', 'Davon', 'Davonte', 'Dawson', 'Dax', 'Dayne', 'Dayton', 'Dean', 'Deangelo', 'Declan', 'Dedric', 'Dedrick', 'Dee', 'Deion', 'Dejon', 'Dejuan', 'Delaney', 'Delbert', 'Dell', 'Delmer', 'Demarco', 'Demarcus', 'Demario', 'Demetrius', 'Demond', 'Denis', 'Dennis', 'Deon', 'Deondre', 'Deontae', 'Deonte', 'Dereck', 'Derek', 'Derick', 'Deron', 'Derrick', 'Deshaun', 'Deshawn', 'Desmond', 'Destin', 'Devan', 'Devante', 'Deven', 'Devin', 'Devon', 'Devonte', 'Devyn', 'Dewayne', 'Dewitt', 'Dexter', 'Diamond', 'Diego', 'Dillan', 'Dillon', 'Dimitri', 'Dino', 'Dion', 'Dock', 'Domenic', 'Domenick', 'Domenico', 'Domingo', 'Dominic', 'Don', 'Donald', 'Donato', 'Donavon', 'Donnell', 'Donnie', 'Donny', 'Dorcas', 'Dorian', 'Doris', 'Dorthy', 'Doug', 'Douglas', 'Doyle', 'Drake', 'Dudley', 'Duncan', 'Durward', 'Dustin', 'Dusty', 'Dwight', 'Dylan',
|
||||
|
||||
@@ -20,7 +20,7 @@ class Company extends \Faker\Provider\Company
|
||||
'%s/%s/%s',
|
||||
\Faker\Provider\DateTime::dateTimeBetween('-50 years', 'now')->format('Y'),
|
||||
static::randomNumber(6, true),
|
||||
static::randomElement(static::$legalEntities)
|
||||
static::randomElement(static::$legalEntities),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -135,9 +135,8 @@ class Person extends \Faker\Provider\Person
|
||||
/**
|
||||
* @see https://en.wikipedia.org/wiki/National_identification_number#South_Africa
|
||||
*
|
||||
* @param \DateTime $birthdate
|
||||
* @param bool $citizen
|
||||
* @param string $gender
|
||||
* @param bool $citizen
|
||||
* @param string $gender
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@@ -17,7 +17,7 @@ class Company extends \Faker\Provider\Company
|
||||
'Adaptive', 'Advanced', 'Ameliorated', 'Assimilated', 'Automated', 'Balanced', 'Business-focused', 'Centralized', 'Cloned', 'Compatible', 'Configurable', 'Cross-group', 'Cross-platform', 'Customer-focused', 'Customizable', 'Decentralized', 'De-engineered', 'Devolved', 'Digitized', 'Distributed', 'Diverse', 'Down-sized', 'Enhanced', 'Enterprise-wide', 'Ergonomic', 'Exclusive', 'Expanded', 'Extended', 'Facetoface', 'Focused', 'Front-line', 'Fully-configurable', 'Function-based', 'Fundamental', 'Future-proofed', 'Grass-roots', 'Horizontal', 'Implemented', 'Innovative', 'Integrated', 'Intuitive', 'Inverse', 'Managed', 'Mandatory', 'Monitored', 'Multi-channelled', 'Multi-lateral', 'Multi-layered', 'Multi-tiered', 'Networked', 'Object-based', 'Open-architected', 'Open-source', 'Operative', 'Optimized', 'Optional', 'Organic', 'Organized', 'Persevering', 'Persistent', 'Phased', 'Polarised', 'Pre-emptive', 'Proactive', 'Profit-focused', 'Profound', 'Programmable', 'Progressive', 'Public-key', 'Quality-focused', 'Reactive', 'Realigned', 'Re-contextualized', 'Re-engineered', 'Reduced', 'Reverse-engineered', 'Right-sized', 'Robust', 'Seamless', 'Secured', 'Self-enabling', 'Sharable', 'Stand-alone', 'Streamlined', 'Switchable', 'Synchronised', 'Synergistic', 'Synergized', 'Team-oriented', 'Total', 'Triple-buffered', 'Universal', 'Up-sized', 'Upgradable', 'User-centric', 'User-friendly', 'Versatile', 'Virtual', 'Visionary', 'Vision-oriented',
|
||||
],
|
||||
[
|
||||
'24hour', '24/7', '3rdgeneration', '4thgeneration', '5thgeneration', '6thgeneration', 'actuating', 'analyzing', 'assymetric', 'asynchronous', 'attitude-oriented', 'background', 'bandwidth-monitored', 'bi-directional', 'bifurcated', 'bottom-line', 'clear-thinking', 'client-driven', 'client-server', 'coherent', 'cohesive', 'composite', 'context-sensitive', 'contextually-based', 'content-based', 'dedicated', 'demand-driven', 'didactic', 'directional', 'discrete', 'disintermediate', 'dynamic', 'eco-centric', 'empowering', 'encompassing', 'even-keeled', 'executive', 'explicit', 'exuding', 'fault-tolerant', 'foreground', 'fresh-thinking', 'full-range', 'global', 'grid-enabled', 'heuristic', 'high-level', 'holistic', 'homogeneous', 'human-resource', 'hybrid', 'impactful', 'incremental', 'intangible', 'interactive', 'intermediate', 'leadingedge', 'local', 'logistical', 'maximized', 'methodical', 'mission-critical', 'mobile', 'modular', 'motivating', 'multimedia', 'multi-state', 'multi-tasking', 'national', 'needs-based', 'neutral', 'nextgeneration', 'non-volatile', 'object-oriented', 'optimal', 'optimizing', 'radical', 'real-time', 'reciprocal', 'regional', 'responsive', 'scalable', 'secondary', 'solution-oriented', 'stable', 'static', 'systematic', 'systemic', 'system-worthy', 'tangible', 'tertiary', 'transitional', 'uniform', 'upward-trending', 'user-facing', 'value-added', 'web-enabled', 'well-modulated', 'zeroadministration', 'zerodefect', 'zerotolerance',
|
||||
'24hour', '24/7', '3rdgeneration', '4thgeneration', '5thgeneration', '6thgeneration', 'actuating', 'analyzing', 'asymmetric', 'asynchronous', 'attitude-oriented', 'background', 'bandwidth-monitored', 'bi-directional', 'bifurcated', 'bottom-line', 'clear-thinking', 'client-driven', 'client-server', 'coherent', 'cohesive', 'composite', 'context-sensitive', 'contextually-based', 'content-based', 'dedicated', 'demand-driven', 'didactic', 'directional', 'discrete', 'disintermediate', 'dynamic', 'eco-centric', 'empowering', 'encompassing', 'even-keeled', 'executive', 'explicit', 'exuding', 'fault-tolerant', 'foreground', 'fresh-thinking', 'full-range', 'global', 'grid-enabled', 'heuristic', 'high-level', 'holistic', 'homogeneous', 'human-resource', 'hybrid', 'impactful', 'incremental', 'intangible', 'interactive', 'intermediate', 'leadingedge', 'local', 'logistical', 'maximized', 'methodical', 'mission-critical', 'mobile', 'modular', 'motivating', 'multimedia', 'multi-state', 'multi-tasking', 'national', 'needs-based', 'neutral', 'nextgeneration', 'non-volatile', 'object-oriented', 'optimal', 'optimizing', 'radical', 'real-time', 'reciprocal', 'regional', 'responsive', 'scalable', 'secondary', 'solution-oriented', 'stable', 'static', 'systematic', 'systemic', 'system-worthy', 'tangible', 'tertiary', 'transitional', 'uniform', 'upward-trending', 'user-facing', 'value-added', 'web-enabled', 'well-modulated', 'zeroadministration', 'zerodefect', 'zerotolerance',
|
||||
],
|
||||
[
|
||||
'ability', 'access', 'adapter', 'algorithm', 'alliance', 'analyzer', 'application', 'approach', 'architecture', 'archive', 'artificialintelligence', 'array', 'attitude', 'benchmark', 'budgetarymanagement', 'capability', 'capacity', 'challenge', 'circuit', 'collaboration', 'complexity', 'concept', 'conglomeration', 'contingency', 'core', 'customerloyalty', 'database', 'data-warehouse', 'definition', 'emulation', 'encoding', 'encryption', 'extranet', 'firmware', 'flexibility', 'focusgroup', 'forecast', 'frame', 'framework', 'function', 'functionalities', 'GraphicInterface', 'groupware', 'GraphicalUserInterface', 'hardware', 'help-desk', 'hierarchy', 'hub', 'implementation', 'info-mediaries', 'infrastructure', 'initiative', 'installation', 'instructionset', 'interface', 'internetsolution', 'intranet', 'knowledgeuser', 'knowledgebase', 'localareanetwork', 'leverage', 'matrices', 'matrix', 'methodology', 'middleware', 'migration', 'model', 'moderator', 'monitoring', 'moratorium', 'neural-net', 'openarchitecture', 'opensystem', 'orchestration', 'paradigm', 'parallelism', 'policy', 'portal', 'pricingstructure', 'processimprovement', 'product', 'productivity', 'project', 'projection', 'protocol', 'securedline', 'service-desk', 'software', 'solution', 'standardization', 'strategy', 'structure', 'success', 'superstructure', 'support', 'synergy', 'systemengine', 'task-force', 'throughput', 'time-frame', 'toolset', 'utilisation', 'website', 'workforce',
|
||||
|
||||
@@ -22,7 +22,7 @@ class Company extends \Faker\Provider\Company
|
||||
'Adaptive', 'Advanced', 'Ameliorated', 'Assimilated', 'Automated', 'Balanced', 'Business-focused', 'Centralized', 'Cloned', 'Compatible', 'Configurable', 'Cross-group', 'Cross-platform', 'Customer-focused', 'Customizable', 'Decentralized', 'De-engineered', 'Devolved', 'Digitized', 'Distributed', 'Diverse', 'Down-sized', 'Enhanced', 'Enterprise-wide', 'Ergonomic', 'Exclusive', 'Expanded', 'Extended', 'Facetoface', 'Focused', 'Front-line', 'Fully-configurable', 'Function-based', 'Fundamental', 'Future-proofed', 'Grass-roots', 'Horizontal', 'Implemented', 'Innovative', 'Integrated', 'Intuitive', 'Inverse', 'Managed', 'Mandatory', 'Monitored', 'Multi-channelled', 'Multi-lateral', 'Multi-layered', 'Multi-tiered', 'Networked', 'Object-based', 'Open-architected', 'Open-source', 'Operative', 'Optimized', 'Optional', 'Organic', 'Organized', 'Persevering', 'Persistent', 'Phased', 'Polarised', 'Pre-emptive', 'Proactive', 'Profit-focused', 'Profound', 'Programmable', 'Progressive', 'Public-key', 'Quality-focused', 'Reactive', 'Realigned', 'Re-contextualized', 'Re-engineered', 'Reduced', 'Reverse-engineered', 'Right-sized', 'Robust', 'Seamless', 'Secured', 'Self-enabling', 'Sharable', 'Stand-alone', 'Streamlined', 'Switchable', 'Synchronised', 'Synergistic', 'Synergized', 'Team-oriented', 'Total', 'Triple-buffered', 'Universal', 'Up-sized', 'Upgradable', 'User-centric', 'User-friendly', 'Versatile', 'Virtual', 'Visionary', 'Vision-oriented',
|
||||
],
|
||||
[
|
||||
'24hour', '24/7', '3rdgeneration', '4thgeneration', '5thgeneration', '6thgeneration', 'actuating', 'analyzing', 'assymetric', 'asynchronous', 'attitude-oriented', 'background', 'bandwidth-monitored', 'bi-directional', 'bifurcated', 'bottom-line', 'clear-thinking', 'client-driven', 'client-server', 'coherent', 'cohesive', 'composite', 'context-sensitive', 'contextually-based', 'content-based', 'dedicated', 'demand-driven', 'didactic', 'directional', 'discrete', 'disintermediate', 'dynamic', 'eco-centric', 'empowering', 'encompassing', 'even-keeled', 'executive', 'explicit', 'exuding', 'fault-tolerant', 'foreground', 'fresh-thinking', 'full-range', 'global', 'grid-enabled', 'heuristic', 'high-level', 'holistic', 'homogeneous', 'human-resource', 'hybrid', 'impactful', 'incremental', 'intangible', 'interactive', 'intermediate', 'leadingedge', 'local', 'logistical', 'maximized', 'methodical', 'mission-critical', 'mobile', 'modular', 'motivating', 'multimedia', 'multi-state', 'multi-tasking', 'national', 'needs-based', 'neutral', 'nextgeneration', 'non-volatile', 'object-oriented', 'optimal', 'optimizing', 'radical', 'real-time', 'reciprocal', 'regional', 'responsive', 'scalable', 'secondary', 'solution-oriented', 'stable', 'static', 'systematic', 'systemic', 'system-worthy', 'tangible', 'tertiary', 'transitional', 'uniform', 'upward-trending', 'user-facing', 'value-added', 'web-enabled', 'well-modulated', 'zeroadministration', 'zerodefect', 'zerotolerance',
|
||||
'24hour', '24/7', '3rdgeneration', '4thgeneration', '5thgeneration', '6thgeneration', 'actuating', 'analyzing', 'asymmetric', 'asynchronous', 'attitude-oriented', 'background', 'bandwidth-monitored', 'bi-directional', 'bifurcated', 'bottom-line', 'clear-thinking', 'client-driven', 'client-server', 'coherent', 'cohesive', 'composite', 'context-sensitive', 'contextually-based', 'content-based', 'dedicated', 'demand-driven', 'didactic', 'directional', 'discrete', 'disintermediate', 'dynamic', 'eco-centric', 'empowering', 'encompassing', 'even-keeled', 'executive', 'explicit', 'exuding', 'fault-tolerant', 'foreground', 'fresh-thinking', 'full-range', 'global', 'grid-enabled', 'heuristic', 'high-level', 'holistic', 'homogeneous', 'human-resource', 'hybrid', 'impactful', 'incremental', 'intangible', 'interactive', 'intermediate', 'leadingedge', 'local', 'logistical', 'maximized', 'methodical', 'mission-critical', 'mobile', 'modular', 'motivating', 'multimedia', 'multi-state', 'multi-tasking', 'national', 'needs-based', 'neutral', 'nextgeneration', 'non-volatile', 'object-oriented', 'optimal', 'optimizing', 'radical', 'real-time', 'reciprocal', 'regional', 'responsive', 'scalable', 'secondary', 'solution-oriented', 'stable', 'static', 'systematic', 'systemic', 'system-worthy', 'tangible', 'tertiary', 'transitional', 'uniform', 'upward-trending', 'user-facing', 'value-added', 'web-enabled', 'well-modulated', 'zeroadministration', 'zerodefect', 'zerotolerance',
|
||||
],
|
||||
[
|
||||
'ability', 'access', 'adapter', 'algorithm', 'alliance', 'analyzer', 'application', 'approach', 'architecture', 'archive', 'artificialintelligence', 'array', 'attitude', 'benchmark', 'budgetarymanagement', 'capability', 'capacity', 'challenge', 'circuit', 'collaboration', 'complexity', 'concept', 'conglomeration', 'contingency', 'core', 'customerloyalty', 'database', 'data-warehouse', 'definition', 'emulation', 'encoding', 'encryption', 'extranet', 'firmware', 'flexibility', 'focusgroup', 'forecast', 'frame', 'framework', 'function', 'functionalities', 'GraphicInterface', 'groupware', 'GraphicalUserInterface', 'hardware', 'help-desk', 'hierarchy', 'hub', 'implementation', 'info-mediaries', 'infrastructure', 'initiative', 'installation', 'instructionset', 'interface', 'internetsolution', 'intranet', 'knowledgeuser', 'knowledgebase', 'localareanetwork', 'leverage', 'matrices', 'matrix', 'methodology', 'middleware', 'migration', 'model', 'moderator', 'monitoring', 'moratorium', 'neural-net', 'openarchitecture', 'opensystem', 'orchestration', 'paradigm', 'parallelism', 'policy', 'portal', 'pricingstructure', 'processimprovement', 'product', 'productivity', 'project', 'projection', 'protocol', 'securedline', 'service-desk', 'software', 'solution', 'standardization', 'strategy', 'structure', 'success', 'superstructure', 'support', 'synergy', 'systemengine', 'task-force', 'throughput', 'time-frame', 'toolset', 'utilisation', 'website', 'workforce',
|
||||
|
||||
@@ -17,7 +17,7 @@ class Company extends \Faker\Provider\Company
|
||||
'Adaptive', 'Advanced', 'Ameliorated', 'Assimilated', 'Automated', 'Balanced', 'Business-focused', 'Centralized', 'Cloned', 'Compatible', 'Configurable', 'Cross-group', 'Cross-platform', 'Customer-focused', 'Customizable', 'Decentralized', 'De-engineered', 'Devolved', 'Digitized', 'Distributed', 'Diverse', 'Down-sized', 'Enhanced', 'Enterprise-wide', 'Ergonomic', 'Exclusive', 'Expanded', 'Extended', 'Facetoface', 'Focused', 'Front-line', 'Fully-configurable', 'Function-based', 'Fundamental', 'Future-proofed', 'Grass-roots', 'Horizontal', 'Implemented', 'Innovative', 'Integrated', 'Intuitive', 'Inverse', 'Managed', 'Mandatory', 'Monitored', 'Multi-channelled', 'Multi-lateral', 'Multi-layered', 'Multi-tiered', 'Networked', 'Object-based', 'Open-architected', 'Open-source', 'Operative', 'Optimized', 'Optional', 'Organic', 'Organized', 'Persevering', 'Persistent', 'Phased', 'Polarised', 'Pre-emptive', 'Proactive', 'Profit-focused', 'Profound', 'Programmable', 'Progressive', 'Public-key', 'Quality-focused', 'Reactive', 'Realigned', 'Re-contextualized', 'Re-engineered', 'Reduced', 'Reverse-engineered', 'Right-sized', 'Robust', 'Seamless', 'Secured', 'Self-enabling', 'Sharable', 'Stand-alone', 'Streamlined', 'Switchable', 'Synchronised', 'Synergistic', 'Synergized', 'Team-oriented', 'Total', 'Triple-buffered', 'Universal', 'Up-sized', 'Upgradable', 'User-centric', 'User-friendly', 'Versatile', 'Virtual', 'Visionary', 'Vision-oriented',
|
||||
],
|
||||
[
|
||||
'24hour', '24/7', '3rdgeneration', '4thgeneration', '5thgeneration', '6thgeneration', 'actuating', 'analyzing', 'assymetric', 'asynchronous', 'attitude-oriented', 'background', 'bandwidth-monitored', 'bi-directional', 'bifurcated', 'bottom-line', 'clear-thinking', 'client-driven', 'client-server', 'coherent', 'cohesive', 'composite', 'context-sensitive', 'contextually-based', 'content-based', 'dedicated', 'demand-driven', 'didactic', 'directional', 'discrete', 'disintermediate', 'dynamic', 'eco-centric', 'empowering', 'encompassing', 'even-keeled', 'executive', 'explicit', 'exuding', 'fault-tolerant', 'foreground', 'fresh-thinking', 'full-range', 'global', 'grid-enabled', 'heuristic', 'high-level', 'holistic', 'homogeneous', 'human-resource', 'hybrid', 'impactful', 'incremental', 'intangible', 'interactive', 'intermediate', 'leadingedge', 'local', 'logistical', 'maximized', 'methodical', 'mission-critical', 'mobile', 'modular', 'motivating', 'multimedia', 'multi-state', 'multi-tasking', 'national', 'needs-based', 'neutral', 'nextgeneration', 'non-volatile', 'object-oriented', 'optimal', 'optimizing', 'radical', 'real-time', 'reciprocal', 'regional', 'responsive', 'scalable', 'secondary', 'solution-oriented', 'stable', 'static', 'systematic', 'systemic', 'system-worthy', 'tangible', 'tertiary', 'transitional', 'uniform', 'upward-trending', 'user-facing', 'value-added', 'web-enabled', 'well-modulated', 'zeroadministration', 'zerodefect', 'zerotolerance',
|
||||
'24hour', '24/7', '3rdgeneration', '4thgeneration', '5thgeneration', '6thgeneration', 'actuating', 'analyzing', 'asymmetric', 'asynchronous', 'attitude-oriented', 'background', 'bandwidth-monitored', 'bi-directional', 'bifurcated', 'bottom-line', 'clear-thinking', 'client-driven', 'client-server', 'coherent', 'cohesive', 'composite', 'context-sensitive', 'contextually-based', 'content-based', 'dedicated', 'demand-driven', 'didactic', 'directional', 'discrete', 'disintermediate', 'dynamic', 'eco-centric', 'empowering', 'encompassing', 'even-keeled', 'executive', 'explicit', 'exuding', 'fault-tolerant', 'foreground', 'fresh-thinking', 'full-range', 'global', 'grid-enabled', 'heuristic', 'high-level', 'holistic', 'homogeneous', 'human-resource', 'hybrid', 'impactful', 'incremental', 'intangible', 'interactive', 'intermediate', 'leadingedge', 'local', 'logistical', 'maximized', 'methodical', 'mission-critical', 'mobile', 'modular', 'motivating', 'multimedia', 'multi-state', 'multi-tasking', 'national', 'needs-based', 'neutral', 'nextgeneration', 'non-volatile', 'object-oriented', 'optimal', 'optimizing', 'radical', 'real-time', 'reciprocal', 'regional', 'responsive', 'scalable', 'secondary', 'solution-oriented', 'stable', 'static', 'systematic', 'systemic', 'system-worthy', 'tangible', 'tertiary', 'transitional', 'uniform', 'upward-trending', 'user-facing', 'value-added', 'web-enabled', 'well-modulated', 'zeroadministration', 'zerodefect', 'zerotolerance',
|
||||
],
|
||||
[
|
||||
'ability', 'access', 'adapter', 'algorithm', 'alliance', 'analyzer', 'application', 'approach', 'architecture', 'archive', 'artificialintelligence', 'array', 'attitude', 'benchmark', 'budgetarymanagement', 'capability', 'capacity', 'challenge', 'circuit', 'collaboration', 'complexity', 'concept', 'conglomeration', 'contingency', 'core', 'customerloyalty', 'database', 'data-warehouse', 'definition', 'emulation', 'encoding', 'encryption', 'extranet', 'firmware', 'flexibility', 'focusgroup', 'forecast', 'frame', 'framework', 'function', 'functionalities', 'GraphicInterface', 'groupware', 'GraphicalUserInterface', 'hardware', 'help-desk', 'hierarchy', 'hub', 'implementation', 'info-mediaries', 'infrastructure', 'initiative', 'installation', 'instructionset', 'interface', 'internetsolution', 'intranet', 'knowledgeuser', 'knowledgebase', 'localareanetwork', 'leverage', 'matrices', 'matrix', 'methodology', 'middleware', 'migration', 'model', 'moderator', 'monitoring', 'moratorium', 'neural-net', 'openarchitecture', 'opensystem', 'orchestration', 'paradigm', 'parallelism', 'policy', 'portal', 'pricingstructure', 'processimprovement', 'product', 'productivity', 'project', 'projection', 'protocol', 'securedline', 'service-desk', 'software', 'solution', 'standardization', 'strategy', 'structure', 'success', 'superstructure', 'support', 'synergy', 'systemengine', 'task-force', 'throughput', 'time-frame', 'toolset', 'utilisation', 'website', 'workforce',
|
||||
|
||||
@@ -91,8 +91,7 @@ class Person extends \Faker\Provider\Person
|
||||
*
|
||||
* @see http://www.finlex.fi/fi/laki/ajantasa/2010/20100128
|
||||
*
|
||||
* @param \DateTime $birthdate
|
||||
* @param string $gender Person::GENDER_MALE || Person::GENDER_FEMALE
|
||||
* @param string $gender Person::GENDER_MALE || Person::GENDER_FEMALE
|
||||
*
|
||||
* @return string on format DDMMYYCZZZQ, where DDMMYY is the date of birth, C the century sign, ZZZ the individual number and Q the control character (checksum)
|
||||
*/
|
||||
|
||||
@@ -34,7 +34,11 @@ class Address extends \Faker\Provider\Address
|
||||
];
|
||||
|
||||
protected static $buildingNumber = ['%', '%#', '%#', '%#', '%##'];
|
||||
protected static $postcode = ['#####', '## ###'];
|
||||
|
||||
/**
|
||||
* @see https://en.wikipedia.org/wiki/Postal_codes_in_France
|
||||
*/
|
||||
protected static $postcode = ['#####'];
|
||||
|
||||
protected static $country = [
|
||||
'Afghanistan', 'Afrique du sud', 'Albanie', 'Algérie', 'Allemagne', 'Andorre', 'Angola', 'Anguilla', 'Antarctique', 'Antigua et Barbuda', 'Antilles néerlandaises', 'Arabie saoudite', 'Argentine', 'Arménie', 'Aruba', 'Australie', 'Autriche', 'Azerbaïdjan', 'Bahamas', 'Bahrain', 'Bangladesh', 'Belgique', 'Belize', 'Benin', 'Bermudes (Les)', 'Bhoutan', 'Biélorussie', 'Bolivie', 'Bosnie-Herzégovine', 'Botswana', 'Bouvet (Îles)', 'Brunei', 'Brésil', 'Bulgarie', 'Burkina Faso', 'Burundi', 'Cambodge', 'Cameroun', 'Canada', 'Cap Vert', 'Cayman (Îles)', 'Chili', 'Chine (Rép. pop.)', 'Christmas (Île)', 'Chypre', 'Cocos (Îles)', 'Colombie', 'Comores', 'Cook (Îles)', 'Corée du Nord', 'Corée, Sud', 'Costa Rica', 'Croatie', 'Cuba', 'Côte d\'Ivoire', 'Danemark', 'Djibouti', 'Dominique', 'Égypte', 'El Salvador', 'Émirats arabes unis', 'Équateur', 'Érythrée', 'Espagne', 'Estonie', 'États-Unis', 'Ethiopie', 'Falkland (Île)', 'Fidji (République des)', 'Finlande', 'France', 'Féroé (Îles)', 'Gabon',
|
||||
@@ -43,13 +47,13 @@ class Address extends \Faker\Provider\Address
|
||||
'Territoire britannique de l\'océan Indien', 'Territoires français du sud', 'Thailande', 'Timor', 'Togo', 'Tokelau', 'Tonga', 'Trinité et Tobago', 'Tunisie', 'Turkménistan', 'Turks et Caïques (Îles)', 'Turquie', 'Tuvalu', 'Ukraine', 'Uruguay', 'Vanuatu', 'Vatican (Etat du)', 'Venezuela', 'Vierges (Îles)', 'Vierges britanniques (Îles)', 'Vietnam', 'Wallis et Futuna (Îles)', 'Yemen', 'Yougoslavie', 'Zambie', 'Zaïre', 'Zimbabwe',
|
||||
];
|
||||
|
||||
/**
|
||||
* @see https://en.wikipedia.org/wiki/Regions_of_France
|
||||
*/
|
||||
private static $regions = [
|
||||
'Alsace', 'Aquitaine', 'Auvergne', 'Bourgogne', 'Bretagne', 'Centre', 'Champagne-Ardenne',
|
||||
'Corse', 'Franche-Comté', 'Île-de-France', 'Languedoc-Roussillon', 'Limousin',
|
||||
'Lorraine', 'Midi-Pyrénées', 'Nord-Pas-de-Calais', 'Basse-Normandie', 'Haute-Normandie',
|
||||
'Pays-de-Loire', 'Picardie', 'Poitou-Charentes', "Provence-Alpes-Côte d'Azur", 'Rhone-Alpes',
|
||||
'Guadeloupe', 'Martinique', 'Guyane', 'Réunion', 'Saint-Pierre-et-Miquelon', 'Mayotte',
|
||||
'Saint-Barthélémy', 'Saint-Martin', 'Wallis-et-Futuna', 'Polynésie française', 'Nouvelle-Calédonie',
|
||||
'Auvergne-Rhône-Alpes', 'Bourgogne-Franche-Comté', 'Bretagne', 'Centre-Val de Loire', 'Corse', 'Grand Est', 'Hauts-de-France',
|
||||
'Île-de-France', 'Normandie', 'Nouvelle-Aquitaine', 'Occitanie', 'Pays de la Loire', "Provence-Alpes-Côte d'Azur",
|
||||
'Guadeloupe', 'Martinique', 'Guyane', 'La Réunion', 'Mayotte',
|
||||
];
|
||||
|
||||
private static $departments = [
|
||||
|
||||
@@ -173,6 +173,7 @@ class Company extends \Faker\Provider\Company
|
||||
|
||||
/**
|
||||
* @see http://www.pole-emploi.fr/candidat/le-code-rome-et-les-fiches-metiers-@/article.jspz?id=60702
|
||||
*
|
||||
* @note Randomly took 300 from this list
|
||||
*/
|
||||
protected static $jobTitleFormat = [
|
||||
|
||||
@@ -70,7 +70,7 @@ class PhoneNumber extends \Faker\Provider\PhoneNumber
|
||||
];
|
||||
|
||||
protected static $e164Formats = [
|
||||
'+33##########',
|
||||
'+33#########',
|
||||
];
|
||||
|
||||
public function phoneNumber07()
|
||||
|
||||
@@ -9,5 +9,5 @@ class Company extends \Faker\Provider\Company
|
||||
'{{lastName}}',
|
||||
];
|
||||
|
||||
protected static $companySuffix = ['Kft', 'és Tsa', 'Kht', 'ZRT', 'NyRT', 'BT'];
|
||||
protected static $companySuffix = ['Kft.', 'és Tsa', 'Kht', 'Zrt.', 'Nyrt.', 'Bt.'];
|
||||
}
|
||||
|
||||
@@ -2,6 +2,11 @@
|
||||
|
||||
namespace Faker\Provider\hu_HU;
|
||||
|
||||
/**
|
||||
* More info about the hungarian names and hungarian name abbreviations can be found here:
|
||||
*
|
||||
* @see https://en.wikipedia.org/wiki/Hungarian_names and https://en.wiktionary.org/wiki/Category:Hungarian_abbreviations
|
||||
*/
|
||||
class Person extends \Faker\Provider\Person
|
||||
{
|
||||
protected static $maleNameFormats = [
|
||||
@@ -16,9 +21,11 @@ class Person extends \Faker\Provider\Person
|
||||
'{{title}} {{lastName}} {{firstNameFemale}}',
|
||||
'{{lastName}} {{firstNameFemale}} {{suffix}}',
|
||||
'{{title}} {{lastName}} {{firstNameFemale}} {{suffix}}',
|
||||
// ..né
|
||||
'{{lastNameFemaleMarried}} {{lastName}} {{firstNameFemale}}',
|
||||
'{{title}} {{lastNameFemaleMarried}} {{firstNameFemale}}',
|
||||
'{{lastName}} {{firstNameMaleNe}}',
|
||||
'{{title}} {{lastName}} {{firstNameMaleNe}}',
|
||||
'{{lastName}}-{{lastName}} {{firstNameFemale}}',
|
||||
];
|
||||
|
||||
protected static $firstNameMale = [
|
||||
@@ -35,6 +42,19 @@ class Person extends \Faker\Provider\Person
|
||||
'Benedekné', 'Hunorné', 'Jenőné', 'Jánosné', 'Mihályné', 'Mátyásné', 'Szervácné', 'Zsomborné', 'Zétényné', 'Árpádné',
|
||||
];
|
||||
|
||||
protected static $lastNameFemaleMarried = [
|
||||
'Antalné', 'Bakosné', 'Balláné', 'Balogné', 'Baloghné', 'Balázsné', 'Barnáné', 'Bartáné', 'Biróné', 'Bodnárné',
|
||||
'Bogdánné', 'Bognárné', 'Borbélyné', 'Borosné', 'Budainé', 'Bálintné', 'Csonkáné', 'Deákné', 'Dobosné', 'Dudásné',
|
||||
'Faragóné', 'Farkasné', 'Fazekasné', 'Fehérné', 'Feketéné', 'Fodorné', 'Fábiánné', 'Fülöpné', 'Gulyásné', 'Gálné',
|
||||
'Gáspárné', 'Hajdúné', 'Halászné', 'Hegedűsné', 'Horváthné', 'Illésné', 'Jakabné', 'Juhászné', 'Jónásné', 'Katonáné',
|
||||
'Kelemenné', 'Kerekesné', 'Királyné', 'Kisné', 'Kissné', 'Kocsisné', 'Kovácsné', 'Kozmané', 'Lakatosné', 'Lengyelné',
|
||||
'Lukácsné', 'Lászlóné', 'Magyarné', 'Majorné', 'Molnárné', 'Máténé', 'Mészárosné', 'Nagyné', 'Nemesné', 'Novákné',
|
||||
'Némethné', 'Oláhné', 'Orbánné', 'Oroszné', 'Orsósné', 'Papné', 'Pappné', 'Patakiné', 'Pintérné', 'Pálné', 'Pásztorné',
|
||||
'Péterné', 'Ráczné', 'Simonné', 'Siposné', 'Somogyiné', 'Soósné', 'Szabóné', 'Szalainé', 'Szekeresné', 'Szilágyiné',
|
||||
'Székelyné', 'Szücsné', 'Szőkené', 'Szűcsné', 'Sándorné', 'Takácsné', 'Tamásné', 'Tóthné', 'Törökné', 'Vargáné', 'Vassné',
|
||||
'Veresné', 'Vinczéné', 'Virágné', 'Váradiné', 'Véghné', 'Vörösné',
|
||||
];
|
||||
|
||||
protected static $firstNameFemale = [
|
||||
'Adél', 'Alexa', 'Andrea', 'Angéla', 'Anikó', 'Beatrix', 'Bettina', 'Dalma', 'Dorina', 'Dorottya', 'Evelin', 'Fanni', 'Flóra', 'Gabriella',
|
||||
'Georgina', 'Gitta', 'Gizella', 'Gréta', 'Henrietta', 'Izabella', 'Johanna', 'Judit', 'Julianna', 'Jázmin', 'Kata', 'Katalin',
|
||||
@@ -48,25 +68,16 @@ class Person extends \Faker\Provider\Person
|
||||
'Antal', 'Bakos', 'Balla', 'Balog', 'Balogh', 'Balázs', 'Barna', 'Barta', 'Biró', 'Bodnár', 'Bogdán', 'Bognár', 'Borbély', 'Boros', 'Budai', 'Bálint', 'Csonka', 'Deák', 'Dobos', 'Dudás', 'Faragó', 'Farkas', 'Fazekas', 'Fehér', 'Fekete', 'Fodor', 'Fábián', 'Fülöp', 'Gulyás', 'Gál', 'Gáspár', 'Hajdu', 'Halász', 'Hegedüs', 'Hegedűs', 'Horváth', 'Illés', 'Jakab', 'Juhász', 'Jónás', 'Katona', 'Kelemen', 'Kerekes', 'Király', 'Kis', 'Kiss', 'Kocsis', 'Kovács', 'Kozma', 'Lakatos', 'Lengyel', 'Lukács', 'László', 'Magyar', 'Major', 'Molnár', 'Máté', 'Mészáros', 'Nagy', 'Nemes', 'Novák', 'Németh', 'Oláh', 'Orbán', 'Orosz', 'Orsós', 'Pap', 'Papp', 'Pataki', 'Pintér', 'Pál', 'Pásztor', 'Péter', 'Rácz', 'Simon', 'Sipos', 'Somogyi', 'Soós', 'Szabó', 'Szalai', 'Szekeres', 'Szilágyi', 'Székely', 'Szücs', 'Szőke', 'Szűcs', 'Sándor', 'Takács', 'Tamás', 'Tóth', 'Török', 'Varga', 'Vass', 'Veres', 'Vincze', 'Virág', 'Váradi', 'Végh', 'Vörös',
|
||||
];
|
||||
|
||||
protected static $title = ['Dr.', 'Prof.', 'id.', 'ifj.'];
|
||||
protected static $title = ['Dr.', 'Prof.', 'Id.', 'Ifj.', 'Báró', 'Gróf', 'Özv.'];
|
||||
|
||||
protected static $titleFemale = ['Özv.', 'Dr.', 'Prof.'];
|
||||
|
||||
protected static $titleMale = ['Dr.', 'Prof.', 'Id.', 'Ifj.', 'Báró', 'Gróf'];
|
||||
|
||||
private static $suffix = ['PhD'];
|
||||
|
||||
public function title($gender = null)
|
||||
{
|
||||
return static::titleMale();
|
||||
}
|
||||
|
||||
/**
|
||||
* replaced by specific unisex hungarian title
|
||||
*/
|
||||
public static function titleMale()
|
||||
{
|
||||
return static::randomElement(static::$title);
|
||||
}
|
||||
|
||||
/**
|
||||
* specific Hungarian name format for females after marriage
|
||||
* Specific Hungarian name format for females after marriage
|
||||
*/
|
||||
public static function firstNameMaleNe()
|
||||
{
|
||||
@@ -74,18 +85,17 @@ class Person extends \Faker\Provider\Person
|
||||
}
|
||||
|
||||
/**
|
||||
* replaced by specific unisex hungarian title
|
||||
*/
|
||||
public static function titleFemale()
|
||||
{
|
||||
return static::titleMale();
|
||||
}
|
||||
|
||||
/**
|
||||
* Replaced by specific suffix
|
||||
*
|
||||
* @example 'PhD'
|
||||
*/
|
||||
public static function suffix()
|
||||
{
|
||||
return static::randomElement(static::$suffix);
|
||||
}
|
||||
|
||||
public static function lastNameFemaleMarried()
|
||||
{
|
||||
return static::randomElement(static::$lastNameFemaleMarried);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ class Address extends \Faker\Provider\Address
|
||||
{
|
||||
/**
|
||||
* @see http://bandung.go.id/images/download/daftarruasjalan.htm
|
||||
* @see https://id.wikipedia.org/wiki/Kategori:Jalan_di_Jakarta
|
||||
*/
|
||||
protected static $street = [
|
||||
'Abang', 'Abdul', 'Abdul Muis', 'Abdul Rahmat', 'Abdul. Muis', 'Abdullah',
|
||||
@@ -17,7 +18,7 @@ class Address extends \Faker\Provider\Address
|
||||
'Bagonwoto ', 'Bah Jaya', 'Baha', 'Bahagia', 'Bahagia ',
|
||||
'Baiduri', 'Baik', 'Baing', 'Baja', 'Baja Raya',
|
||||
'Bak Air', 'Bak Mandi', 'Bakaru', 'Bakau', 'Bakau Griya Utama',
|
||||
'Bakhita', 'Bakin', 'Bakit ', 'Bakti', 'Baladewa',
|
||||
'Bakhita', 'Bakin', 'Bakit ', 'Bakti', 'Baladewa', 'Balikpapan',
|
||||
'Bambon', 'Bambu', 'Banal', 'Banceng Pondok', 'Banda',
|
||||
'Bank Dagang Negara', 'Bappenas', 'Bara', 'Bara Tambar', 'Baranang',
|
||||
'Baranang Siang', 'Baranang Siang Indah', 'Baranangsiang', 'Barasak', 'Barat',
|
||||
@@ -32,7 +33,7 @@ class Address extends \Faker\Provider\Address
|
||||
'Flora', 'Flores', 'Gading', 'Gajah', 'Gajah Mada',
|
||||
'Gambang', 'Gardujati', 'Gatot Subroto', 'Gedebage Selatan', 'Gegerkalong Hilir',
|
||||
'Gotong Royong', 'Gremet', 'HOS. Cjokroaminoto (Pasirkaliki)', 'Haji', 'Halim',
|
||||
'Hang', 'Hasanuddin', 'Honggowongso', 'Ikan', 'Imam',
|
||||
'Hang', 'Hasanuddin', 'Hayam Wuruk', 'Honggowongso', 'Ikan', 'Imam',
|
||||
'Imam Bonjol', 'Industri', 'Ir. H. Juanda', 'Jagakarsa', 'Jakarta',
|
||||
'Jaksa', 'Jambu', 'Jamika', 'Jayawijaya', 'Jend. A. Yani',
|
||||
'Jend. Sudirman', 'Juanda', 'K.H. Maskur', 'K.H. Wahid Hasyim (Kopo)', 'Kali',
|
||||
@@ -45,7 +46,7 @@ class Address extends \Faker\Provider\Address
|
||||
'Muwardi', 'Nakula', 'Nanas', 'Nangka', 'Orang',
|
||||
'Otista', 'Otto', 'PHH. Mustofa', 'Pacuan Kuda', 'Padang',
|
||||
'Padma', 'Pahlawan', 'Panjaitan', 'Pasir Koja', 'Pasirkoja',
|
||||
'Pasteur', 'Pattimura', 'Pelajar Pejuang 45', 'Perintis Kemerdekaan', 'Peta',
|
||||
'Pasteur', 'Pattimura', 'Pelajar Pejuang 45', 'Perintis Kemerdekaan', 'Peta', 'Pintu Besar Selatan',
|
||||
'Qrisdoren', 'R.E. Martadinata', 'R.M. Said', 'Raden', 'Raden Saleh',
|
||||
'Radio', 'Rajawali', 'Rajawali Barat', 'Rajawali Timur', 'Rajiman',
|
||||
'Raya Setiabudhi', 'Raya Ujungberung', 'Reksoninten', 'Ronggowarsito',
|
||||
|
||||
@@ -14,7 +14,7 @@ class Company extends \Faker\Provider\Company
|
||||
/**
|
||||
* @see http://id.wikipedia.org/wiki/Jenis_badan_usaha
|
||||
*/
|
||||
protected static $companyPrefix = ['PT', 'CV', 'UD', 'PD', 'Perum'];
|
||||
protected static $companyPrefix = ['PT', 'Fa', 'CV', 'UD', 'PJ', 'PD', 'Perum', 'Yayasan'];
|
||||
|
||||
/**
|
||||
* @see https://www.amesbostonhotel.com/macam-macam-profesi-pekerjaan/
|
||||
|
||||
@@ -12,35 +12,35 @@ class Address extends \Faker\Provider\Address
|
||||
];
|
||||
protected static $postcode = ['#####'];
|
||||
protected static $state = [
|
||||
'Agrigento', 'Alessandria', 'Ancona', 'Aosta', 'Arezzo', 'Ascoli Piceno', 'Asti', 'Avellino', 'Bari', 'Barletta-Andria-Trani', 'Belluno', 'Benevento', 'Bergamo', 'Biella', 'Bologna', 'Bolzano', 'Brescia', 'Brindisi', 'Cagliari', 'Caltanissetta', 'Campobasso', 'Carbonia-Iglesias', 'Caserta', 'Catania', 'Catanzaro', 'Chieti', 'Como', 'Cosenza', 'Cremona', 'Crotone', 'Cuneo', 'Enna', 'Fermo', 'Ferrara', 'Firenze', 'Foggia', 'Forlì-Cesena', 'Frosinone', 'Genova', 'Gorizia', 'Grosseto', 'Imperia', 'Isernia', 'La Spezia', 'L\'Aquila', 'Latina', 'Lecce', 'Lecco', 'Livorno', 'Lodi', 'Lucca', 'Macerata', 'Mantova', 'Massa-Carrara', 'Matera', 'Messina', 'Milano', 'Modena', 'Monza e della Brianza', 'Napoli', 'Novara', 'Nuoro', 'Olbia-Tempio', 'Oristano', 'Padova', 'Palermo', 'Parma', 'Pavia', 'Perugia', 'Pesaro e Urbino', 'Pescara', 'Piacenza', 'Pisa', 'Pistoia', 'Pordenone', 'Potenza', 'Prato', 'Ragusa', 'Ravenna', 'Reggio Calabria', 'Reggio Emilia', 'Rieti', 'Rimini', 'Roma', 'Rovigo', 'Salerno', 'Medio Campidano', 'Sassari', 'Savona', 'Siena', 'Siracusa', 'Sondrio', 'Taranto', 'Teramo', 'Terni', 'Torino', 'Ogliastra', 'Trapani', 'Trento', 'Treviso', 'Trieste', 'Udine', 'Varese', 'Venezia', 'Verbano-Cusio-Ossola', 'Vercelli', 'Verona', 'Vibo Valentia', 'Vicenza', 'Viterbo',
|
||||
'Agrigento', 'Alessandria', 'Ancona', 'Aosta', 'Arezzo', 'Ascoli Piceno', 'Asti', 'Avellino', 'Bari', 'Barletta-Andria-Trani', 'Belluno', 'Benevento', 'Bergamo', 'Biella', 'Bologna', 'Bolzano', 'Brescia', 'Brindisi', 'Cagliari', 'Caltanissetta', 'Campobasso', 'Caserta', 'Catania', 'Catanzaro', 'Chieti', 'Como', 'Cosenza', 'Cremona', 'Crotone', 'Cuneo', 'Enna', 'Fermo', 'Ferrara', 'Firenze', 'Foggia', 'Forlì-Cesena', 'Frosinone', 'Genova', 'Gorizia', 'Grosseto', 'Imperia', 'Isernia', 'La Spezia', 'L\'Aquila', 'Latina', 'Lecce', 'Lecco', 'Livorno', 'Lodi', 'Lucca', 'Macerata', 'Mantova', 'Massa-Carrara', 'Matera', 'Messina', 'Milano', 'Modena', 'Monza e della Brianza', 'Napoli', 'Novara', 'Nuoro', 'Oristano', 'Padova', 'Palermo', 'Parma', 'Pavia', 'Perugia', 'Pesaro e Urbino', 'Pescara', 'Piacenza', 'Pisa', 'Pistoia', 'Pordenone', 'Potenza', 'Prato', 'Ragusa', 'Ravenna', 'Reggio Calabria', 'Reggio Emilia', 'Rieti', 'Rimini', 'Roma', 'Rovigo', 'Salerno', 'Sassari', 'Savona', 'Siena', 'Siracusa', 'Sondrio', 'Sud Sardegna', 'Taranto', 'Teramo', 'Terni', 'Torino', 'Trapani', 'Trento', 'Treviso', 'Trieste', 'Udine', 'Varese', 'Venezia', 'Verbano-Cusio-Ossola', 'Vercelli', 'Verona', 'Vibo Valentia', 'Vicenza', 'Viterbo',
|
||||
];
|
||||
protected static $stateAbbr = [
|
||||
'AG', 'AL', 'AN', 'AO', 'AR', 'AP', 'AT', 'AV', 'BA', 'BT', 'BL', 'BN', 'BG', 'BI', 'BO', 'BZ', 'BS', 'BR', 'CA', 'CL', 'CB', 'CI', 'CE', 'CT', 'CZ', 'CH', 'CO', 'CS', 'CR', 'KR', 'CN', 'EN', 'FM', 'FE', 'FI', 'FG', 'FC', 'FR', 'GE', 'GO', 'GR', 'IM', 'IS', 'SP', 'AQ', 'LT', 'LE', 'LC', 'LI', 'LO', 'LU', 'MC', 'MN', 'MS', 'MT', 'ME', 'MI', 'MO', 'MB', 'NA', 'NO', 'NU', 'OT', 'OR', 'PD', 'PA', 'PR', 'PV', 'PG', 'PU', 'PE', 'PC', 'PI', 'PT', 'PN', 'PZ', 'PO', 'RG', 'RA', 'RC', 'RE', 'RI', 'RN', 'RM', 'RO', 'SA', 'VS', 'SS', 'SV', 'SI', 'SR', 'SO', 'TA', 'TE', 'TR', 'TO', 'OG', 'TP', 'TN', 'TV', 'TS', 'UD', 'VA', 'VE', 'VB', 'VC', 'VR', 'VV', 'VI', 'VT',
|
||||
'AG', 'AL', 'AN', 'AO', 'AR', 'AP', 'AT', 'AV', 'BA', 'BT', 'BL', 'BN', 'BG', 'BI', 'BO', 'BZ', 'BS', 'BR', 'CA', 'CL', 'CB', 'CE', 'CT', 'CZ', 'CH', 'CO', 'CS', 'CR', 'KR', 'CN', 'EN', 'FM', 'FE', 'FI', 'FG', 'FC', 'FR', 'GE', 'GO', 'GR', 'IM', 'IS', 'SP', 'AQ', 'LT', 'LE', 'LC', 'LI', 'LO', 'LU', 'MC', 'MN', 'MS', 'MT', 'ME', 'MI', 'MO', 'MB', 'NA', 'NO', 'NU', 'OR', 'PD', 'PA', 'PR', 'PV', 'PG', 'PU', 'PE', 'PC', 'PI', 'PT', 'PN', 'PZ', 'PO', 'RG', 'RA', 'RC', 'RE', 'RI', 'RN', 'RM', 'RO', 'SA', 'SS', 'SV', 'SI', 'SR', 'SO', 'SU', 'TA', 'TE', 'TR', 'TO', 'TP', 'TN', 'TV', 'TS', 'UD', 'VA', 'VE', 'VB', 'VC', 'VR', 'VV', 'VI', 'VT',
|
||||
];
|
||||
protected static $country = [
|
||||
'Afghanistan', 'Albania', 'Algeria', 'American Samoa', 'Andorra', 'Angola', 'Anguilla', 'Antartide (territori a sud del 60° parallelo)', 'Antigua e Barbuda', 'Argentina', 'Armenia', 'Aruba', 'Australia', 'Austria', 'Azerbaijan',
|
||||
'Bahamas', 'Bahrain', 'Bangladesh', 'Barbados', 'Bielorussia', 'Belgio', 'Belize', 'Benin', 'Bermuda', 'Bhutan', 'Bolivia', 'Bosnia e Herzegovina', 'Botswana', 'Bouvet Island (Bouvetoya)', 'Brasile', 'Territorio dell\'arcipelago indiano', 'Isole Vergini Britanniche', 'Brunei Darussalam', 'Bulgaria', 'Burkina Faso', 'Burundi',
|
||||
'Cambogia', 'Cameroon', 'Canada', 'Capo Verde', 'Isole Cayman', 'Repubblica Centrale Africana', 'Chad', 'Cile', 'Cina', 'Isola di Pasqua', 'Isola di Cocos (Keeling)', 'Colombia', 'Comoros', 'Congo', 'Isole Cook', 'Costa Rica', 'Costa d\'Avorio', 'Croazia', 'Cuba', 'Cipro', 'Repubblica Ceca',
|
||||
'Danimarca', 'Gibuti', 'Repubblica Dominicana',
|
||||
'Equador', 'Egitto', 'El Salvador', 'Guinea Equatoriale', 'Eritrea', 'Estonia', 'Etiopia',
|
||||
'Isole Faroe', 'Isole Falkland (Malvinas)', 'Fiji', 'Finlandia', 'Francia', 'Guyana Francese', 'Polinesia Francese', 'Territori Francesi del sud',
|
||||
'Gabon', 'Gambia', 'Georgia', 'Germania', 'Ghana', 'Gibilterra', 'Grecia', 'Groenlandia', 'Grenada', 'Guadalupa', 'Guam', 'Guatemala', 'Guernsey', 'Guinea', 'Guinea-Bissau', 'Guyana',
|
||||
'Haiti', 'Heard Island and McDonald Islands', 'Città del Vaticano', 'Honduras', 'Hong Kong', 'Ungheria',
|
||||
'Islanda', 'India', 'Indonesia', 'Iran', 'Iraq', 'Irlanda', 'Isola di Man', 'Israele', 'Italia',
|
||||
'Giamaica', 'Giappone', 'Jersey', 'Giordania',
|
||||
'Kazakhstan', 'Kenya', 'Kiribati', 'Korea', 'Kuwait', 'Republicca Kirgiza',
|
||||
'Repubblica del Laos', 'Latvia', 'Libano', 'Lesotho', 'Liberia', 'Libyan Arab Jamahiriya', 'Liechtenstein', 'Lituania', 'Lussemburgo',
|
||||
'Macao', 'Macedonia', 'Madagascar', 'Malawi', 'Malesia', 'Maldive', 'Mali', 'Malta', 'Isole Marshall', 'Martinica', 'Mauritania', 'Mauritius', 'Mayotte', 'Messico', 'Micronesia', 'Moldova', 'Principato di Monaco', 'Mongolia', 'Montenegro', 'Montserrat', 'Marocco', 'Mozambico', 'Myanmar',
|
||||
'Namibia', 'Nauru', 'Nepal', 'Antille Olandesi', 'Olanda', 'Nuova Caledonia', 'Nuova Zelanda', 'Nicaragua', 'Niger', 'Nigeria', 'Niue', 'Isole Norfolk', 'Northern Mariana Islands', 'Norvegia',
|
||||
'Oman',
|
||||
'Pakistan', 'Palau', 'Palestina', 'Panama', 'Papua Nuova Guinea', 'Paraguay', 'Peru', 'Filippine', 'Pitcairn Islands', 'Polonia', 'Portogallo', 'Porto Rico',
|
||||
'Afghanistan', 'Albania', 'Algeria', 'American Samoa', 'Andorra', 'Angola', 'Anguilla', 'Antartide (territori a sud del 60° parallelo)', 'Antigua e Barbuda', 'Antille Olandesi', 'Arabia Saudita', 'Argentina', 'Armenia', 'Aruba', 'Australia', 'Austria', 'Azerbaijan',
|
||||
'Bahamas', 'Bahrain', 'Bangladesh', 'Barbados', 'Bielorussia', 'Belgio', 'Belize', 'Benin', 'Bermuda', 'Bhutan', 'Bolivia', 'Bosnia e Herzegovina', 'Botswana', 'Isola Bouvet', 'Brasile', 'Territorio dell\'arcipelago indiano', 'Isole Vergini Britanniche', 'Brunei', 'Bulgaria', 'Burkina Faso', 'Burundi',
|
||||
'Cambogia', 'Cameroon', 'Canada', 'Capo Verde', 'Isole Cayman', 'Repubblica Centrale Africana', 'Chad', 'Cile', 'Cina', 'Isola di Pasqua', 'Isole Cocos', 'Colombia', 'Comore', 'Congo', 'Isole Cook', 'Costa Rica', 'Costa d\'Avorio', 'Croazia', 'Cuba', 'Cipro', 'Repubblica Ceca',
|
||||
'Danimarca', 'Repubblica Dominicana',
|
||||
'Equador', 'Egitto', 'El Salvador', 'Emirati Arabi Uniti', 'Eritrea', 'Estonia', 'Eswatini', 'Etiopia',
|
||||
'Isole Faroe', 'Isole Falkland', 'Fiji', 'Filippine', 'Finlandia', 'Francia', 'Guyana Francese', 'Polinesia Francese', 'Territori Francesi del Sud',
|
||||
'Gabon', 'Gambia', 'Georgia', 'Georgia del Sud e Isole Sandwich Australi', 'Germania', 'Ghana', 'Giamaica', 'Giappone', 'Gibilterra', 'Gibuti', 'Giordania', 'Grecia', 'Groenlandia', 'Grenada', 'Guadalupa', 'Guam', 'Guatemala', 'Guernsey', 'Guinea', 'Guinea-Bissau', 'Guinea Equatoriale', 'Guyana',
|
||||
'Haiti', 'Isole Heard e McDonald', 'Honduras', 'Hong Kong',
|
||||
'Islanda', 'India', 'Indonesia', 'Iran', 'Iraq', 'Irlanda', 'Israele', 'Italia',
|
||||
'Isola di Jersey',
|
||||
'Kazakhstan', 'Kenya', 'Kirghizistan', 'Kiribati', 'Korea', 'Kuwait',
|
||||
'Repubblica del Laos', 'Latvia', 'Lesotho', 'Libano', 'Liberia', 'Libia', 'Liechtenstein', 'Lituania', 'Lussemburgo',
|
||||
'Macao', 'Macedonia', 'Madagascar', 'Malawi', 'Malesia', 'Maldive', 'Mali', 'Malta', 'Isola di Man', 'Isole Marianne Settentrionali', 'Isole Marshall', 'Martinica', 'Mauritania', 'Mauritius', 'Mayotte', 'Messico', 'Micronesia', 'Isole Minori esterne degli Stati Uniti d\'America', 'Moldova', 'Principato di Monaco', 'Mongolia', 'Montenegro', 'Montserrat', 'Marocco', 'Mozambico', 'Myanmar',
|
||||
'Namibia', 'Nauru', 'Nepal', 'Nuova Caledonia', 'Nuova Zelanda', 'Nicaragua', 'Niger', 'Nigeria', 'Niue', 'Isole Norfolk', 'Norvegia',
|
||||
'Olanda', 'Oman',
|
||||
'Pakistan', 'Palau', 'Palestina', 'Panama', 'Papua Nuova Guinea', 'Paraguay', 'Peru', 'Isole Pitcairn', 'Polonia', 'Portogallo', 'Porto Rico',
|
||||
'Qatar',
|
||||
'Reunion', 'Romania', 'Russia', 'Rwanda',
|
||||
'San Bartolomeo', 'Sant\'Elena', 'Saint Kitts and Nevis', 'Saint Lucia', 'Saint Martin', 'Saint Pierre and Miquelon', 'Saint Vincent and the Grenadines', 'Samoa', 'San Marino', 'Sao Tome and Principe', 'Arabia Saudita', 'Senegal', 'Serbia', 'Seychelles', 'Sierra Leone', 'Singapore', 'Slovenia', 'Isole Solomon', 'Somalia', 'Sud Africa', 'Georgia del sud e South Sandwich Islands', 'Spagna', 'Sri Lanka', 'Sudan', 'Suriname', 'Svalbard & Jan Mayen Islands', 'Swaziland', 'Svezia', 'Svizzera', 'Siria',
|
||||
'Taiwan', 'Tajikistan', 'Tanzania', 'Tailandia', 'Timor-Leste', 'Togo', 'Tokelau', 'Tonga', 'Trinidad e Tobago', 'Tunisia', 'Turchia', 'Turkmenistan', 'Isole di Turks and Caicos', 'Tuvalu',
|
||||
'Uganda', 'Ucraina', 'Emirati Arabi Uniti', 'Regno Unito', 'Stati Uniti d\'America', 'United States Minor Outlying Islands', 'Isole Vergini Statunitensi', 'Uruguay', 'Uzbekistan',
|
||||
'Vanuatu', 'Venezuela', 'Vietnam',
|
||||
'Wallis and Futuna', 'Western Sahara',
|
||||
'Regno Unito', 'Isola della Riunione', 'Romania', 'Russia', 'Rwanda',
|
||||
'Sahara Occidentale', 'San Bartolomeo', 'Sant\'Elena', 'Saint Kitts e Nevis', 'Saint Lucia', 'Saint Martin', 'Saint-Pierre e Miquelon', 'Saint Vincent e Grenadine', 'Samoa', 'San Marino', 'Sao Tome e Principe', 'Senegal', 'Serbia', 'Seychelles', 'Sierra Leone', 'Singapore', 'Slovenia', 'Isole Solomon', 'Somalia', 'Spagna', 'Sri Lanka', 'Stati Uniti d\'America', 'Sud Africa', 'Sudan', 'Suriname', 'Isole Svalbard e Jan Mayen', 'Svezia', 'Svizzera', 'Siria',
|
||||
'Taiwan', 'Tajikistan', 'Tanzania', 'Tailandia', 'Timor Leste', 'Togo', 'Tokelau', 'Tonga', 'Trinidad e Tobago', 'Tunisia', 'Turchia', 'Turkmenistan', 'Isole di Turks e Caicos', 'Tuvalu',
|
||||
'Uganda', 'Ucraina', 'Uruguay', 'Uzbekistan', 'Ungheria',
|
||||
'Vanuatu', 'Vaticano', 'Venezuela', 'Isole Vergini Statunitensi', 'Vietnam',
|
||||
'Wallis e Futuna',
|
||||
'Yemen',
|
||||
'Zambia', 'Zimbabwe',
|
||||
];
|
||||
@@ -64,7 +64,7 @@ class Address extends \Faker\Provider\Address
|
||||
protected static $secondaryAddressFormats = ['Appartamento ##', 'Piano #'];
|
||||
|
||||
/**
|
||||
* @example 'East'
|
||||
* @example 'Borgo'
|
||||
*/
|
||||
public static function cityPrefix()
|
||||
{
|
||||
@@ -72,7 +72,7 @@ class Address extends \Faker\Provider\Address
|
||||
}
|
||||
|
||||
/**
|
||||
* @example 'Appt. 350'
|
||||
* @example 'Appartamento 350'
|
||||
*/
|
||||
public static function secondaryAddress()
|
||||
{
|
||||
@@ -80,7 +80,7 @@ class Address extends \Faker\Provider\Address
|
||||
}
|
||||
|
||||
/**
|
||||
* @example 'California'
|
||||
* @example 'Cagliari'
|
||||
*/
|
||||
public static function state()
|
||||
{
|
||||
|
||||
@@ -23,41 +23,54 @@ class Person extends \Faker\Provider\Person
|
||||
];
|
||||
|
||||
protected static $firstNameMale = [
|
||||
'Aaron', 'Abramo', 'Adriano', 'Akira', 'Alan', 'Alberto', 'Albino', 'Alessandro', 'Alessio', 'Amedeo', 'Amos', 'Anastasio', 'Anselmo',
|
||||
'Antimo', 'Antonino', 'Antonio', 'Ariel', 'Armando', 'Aroldo', 'Arturo', 'Augusto', 'Battista', 'Bernardo', 'Boris', 'Caio',
|
||||
'Carlo', 'Carmelo', 'Ciro', 'Damiano', 'Danny', 'Dante', 'Davide', 'Davis', 'Demis', 'Dimitri', 'Domingo', 'Dylan',
|
||||
'Edilio', 'Egidio', 'Elio', 'Emanuel', 'Emidio', 'Enrico', 'Enzo', 'Ercole', 'Ermes', 'Ethan', 'Ettore', 'Eusebio',
|
||||
'Fabiano', 'Fabio', 'Ferdinando', 'Fernando', 'Fiorenzo', 'Flavio', 'Folco', 'Fulvio', 'Furio', 'Gabriele', 'Gaetano', 'Gastone',
|
||||
'Gavino', 'Gerlando', 'Germano', 'Giacinto', 'Gianantonio', 'Giancarlo', 'Gianmarco', 'Gianmaria', 'Gioacchino', 'Giordano', 'Giorgio', 'Giuliano',
|
||||
'Giulio', 'Graziano', 'Gregorio', 'Guido', 'Harry', 'Hector', 'Iacopo', 'Ian', 'Ilario', 'Italo', 'Ivano', 'Jack',
|
||||
'Jacopo', 'Jari', 'Jarno', 'Joey', 'Joseph', 'Joshua', 'Kai', 'Karim', 'Kris', 'Lamberto', 'Lauro', 'Lazzaro',
|
||||
'Leonardo', 'Liborio', 'Lino', 'Lorenzo', 'Loris', 'Ludovico', 'Luigi', 'Manfredi', 'Manuele', 'Marco', 'Mariano', 'Marino',
|
||||
'Marvin', 'Marzio', 'Matteo', 'Mattia', 'Mauro', 'Max', 'Michael', 'Mirco', 'Mirko', 'Modesto', 'Moreno', 'Nabil',
|
||||
'Nadir', 'Nathan', 'Nazzareno', 'Nick', 'Nico', 'Noah', 'Noel', 'Omar', 'Oreste', 'Osvaldo', 'Pablo', 'Patrizio',
|
||||
'Pietro', 'Priamo', 'Quirino', 'Raoul', 'Renato', 'Renzo', 'Rocco', 'Rodolfo', 'Romeo', 'Romolo', 'Rudy', 'Sabatino',
|
||||
'Sabino', 'Samuel', 'Sandro', 'Santo', 'Sebastian', 'Sesto', 'Silvano', 'Silverio', 'Sirio', 'Siro', 'Timoteo', 'Timothy',
|
||||
'Tommaso', 'Ubaldo', 'Umberto', 'Vinicio', 'Walter', 'Xavier', 'Yago', 'Alighieri', 'Alighiero', 'Amerigo', 'Arcibaldo', 'Arduino',
|
||||
'Artes', 'Audenico', 'Ausonio', 'Bacchisio', 'Baldassarre', 'Bettino', 'Bortolo', 'Caligola', 'Cecco', 'Cirino', 'Cleros',
|
||||
'Costantino', 'Costanzo', 'Danthon', 'Demian', 'Domiziano', 'Edipo', 'Egisto', 'Eliziario', 'Eriberto', 'Erminio',
|
||||
'Eustachio', 'Evangelista', 'Fiorentino', 'Giacobbe', 'Gianleonardo', 'Gianriccardo', 'Giobbe', 'Ippolito',
|
||||
'Isira', 'Joannes', 'Kociss', 'Laerte', 'Maggiore', 'Muzio', 'Nestore', 'Odino', 'Odone', 'Olo', 'Oretta', 'Orfeo',
|
||||
'Osea', 'Pacifico', 'Pericle', 'Piererminio', 'Pierfrancesco', 'Piersilvio', 'Primo', 'Quarto', 'Quasimodo',
|
||||
'Radames', 'Radio', 'Raniero', 'Rosalino', 'Rosolino', 'Rufo', 'Secondo', 'Tancredi', 'Tazio', 'Terzo', 'Teseo',
|
||||
'Tolomeo', 'Trevis', 'Tristano', 'Ulrico', 'Valdo', 'Zaccaria', 'Dindo', 'Serse',
|
||||
'Aaron', 'Abramo', 'Adriano', 'Agostino', 'Akira', 'Alan', 'Alberto', 'Albino', 'Aldo', 'Alessandro', 'Alessio',
|
||||
'Alfonso', 'Alfredo', 'Alighieri', 'Alighiero', 'Amedeo', 'Amerigo', 'Amos', 'Anastasio', 'Andrea', 'Angelo',
|
||||
'Anselmo', 'Antimo', 'Antonino', 'Antonio', 'Arcibaldo', 'Arduino', 'Ariel', 'Armando', 'Aroldo', 'Artes', 'Arturo',
|
||||
'Audenico', 'Augusto', 'Ausonio', 'Bacchisio', 'Baldassarre', 'Battista', 'Bernardo', 'Bettino', 'Boris', 'Bortolo',
|
||||
'Bruno', 'Caio', 'Caligola', 'Carlo', 'Carmelo', 'Carmine', 'Cecco', 'Cesare', 'Cirino', 'Ciro', 'Claudio', 'Cleros',
|
||||
'Corrado', 'Cosimo', 'Costantino', 'Costanzo', 'Damiano', 'Danilo', 'Danny', 'Dante', 'Danthon', 'Dario', 'David',
|
||||
'Davide', 'Davis', 'Demian', 'Demis', 'Dimitri', 'Dindo', 'Dino', 'Domenico', 'Domingo', 'Domiziano', 'Donato', 'Dylan',
|
||||
'Edilio', 'Edipo', 'Egidio', 'Egisto', 'Elio', 'Eliziario', 'Emanuel', 'Emanuele', 'Emidio', 'Emilio', 'Enrico', 'Enzo',
|
||||
'Ercole', 'Eriberto', 'Ermes', 'Erminio', 'Ernesto', 'Ethan', 'Ettore', 'Eugenio', 'Eusebio', 'Eustachio', 'Evangelista',
|
||||
'Fabiano', 'Fabio', 'Fabrizio', 'Fausto', 'Federico', 'Felice', 'Ferdinando', 'Fernando', 'Filippo', 'Fiorentino',
|
||||
'Fiorenzo', 'Flavio', 'Folco', 'Francesco', 'Franco', 'Fulvio', 'Furio', 'Gabriele', 'Gaetano', 'Gastone', 'Gavino',
|
||||
'Gennaro', 'Gerardo', 'Gerlando', 'Germano', 'Giacinto', 'Giacobbe', 'Giacomo', 'Gian', 'Gianantonio', 'Giancarlo',
|
||||
'Gianfranco', 'Gianleonardo', 'Gianluca', 'Gianmarco', 'Gianmaria', 'Gianni', 'Gianriccardo', 'Gino', 'Gioacchino', 'Giobbe',
|
||||
'Giordano', 'Giorgio', 'Giovanni', 'Giuliano', 'Giulio', 'Giuseppe', 'Graziano', 'Gregorio', 'Guido', 'Harry', 'Hector',
|
||||
'Iacopo', 'Ian', 'Ilario', 'Ippolito', 'Isira', 'Italo', 'Ivano', 'Jack', 'Jacopo', 'Jari', 'Jarno', 'Joannes', 'Joey',
|
||||
'Joseph', 'Joshua', 'Kai', 'Karim', 'Kociss', 'Kris', 'Laerte', 'Lamberto', 'Lauro', 'Lazzaro', 'Leonardo', 'Liborio',
|
||||
'Lino', 'Lorenzo', 'Loris', 'Luca', 'Luciano', 'Ludovico', 'Luigi', 'Maggiore', 'Manfredi', 'Manuele', 'Marcello',
|
||||
'Marco', 'Mariano', 'Marino', 'Mario', 'Marvin', 'Marzio', 'Massimiliano', 'Massimo', 'Matteo', 'Mattia', 'Maurizio',
|
||||
'Mauro', 'Max', 'Michael', 'Mirco', 'Mirko', 'Modesto', 'Moreno', 'Muzio', 'Nabil', 'Nadir', 'Nathan', 'Nazzareno',
|
||||
'Nestore', 'Nick', 'Nico', 'Nicola', 'Noah', 'Noel', 'Odino', 'Odone', 'Olo', 'Omar', 'Oreste', 'Oretta', 'Orfeo',
|
||||
'Osea', 'Osvaldo', 'Pablo', 'Pacifico', 'Paolo', 'Pasquale', 'Patrizio', 'Pericle', 'Piererminio', 'Pierfrancesco',
|
||||
'Piero', 'Piersilvio', 'Pietro', 'Priamo', 'Primo', 'Quarto', 'Quasimodo', 'Quirino', 'Radames', 'Radio', 'Raffaele',
|
||||
'Raniero', 'Raoul', 'Renato', 'Renzo', 'Riccardo', 'Roberto', 'Rocco', 'Rodolfo', 'Romano', 'Romeo', 'Romolo',
|
||||
'Rosalino', 'Rosolino', 'Rudy', 'Rufo', 'Sabatino', 'Sabino', 'Salvatore', 'Samuel', 'Sandro', 'Santo', 'Sebastian',
|
||||
'Sebastiano', 'Secondo', 'Sergio', 'Serse', 'Sesto', 'Silvano', 'Silverio', 'Silvio', 'Sirio', 'Siro', 'Stefano',
|
||||
'Tancredi', 'Tazio', 'Terzo', 'Teseo', 'Timoteo', 'Timothy', 'Tolomeo', 'Tommaso', 'Trevis', 'Tristano', 'Ubaldo',
|
||||
'Ugo', 'Ulrico', 'Umberto', 'Valdo', 'Vincenzo', 'Vinicio', 'Vito', 'Vittorio', 'Walter', 'Xavier', 'Yago', 'Zaccaria',
|
||||
];
|
||||
|
||||
protected static $firstNameFemale = [
|
||||
'Assia', 'Benedetta', 'Bibiana', 'Brigitta', 'Carmela', 'Celeste', 'Cira', 'Claudia', 'Concetta', 'Cristyn', 'Deborah', 'Demi', 'Diana',
|
||||
'Donatella', 'Doriana', 'Edvige', 'Elda', 'Elga', 'Elsa', 'Emilia', 'Enrica', 'Erminia', 'Evita', 'Fatima', 'Felicia',
|
||||
'Filomena', 'Fortunata', 'Gilda', 'Giovanna', 'Giulietta', 'Grazia', 'Helga', 'Ileana', 'Ingrid', 'Ione', 'Irene', 'Isabel',
|
||||
'Ivonne', 'Jelena', 'Kayla', 'Kristel', 'Laura', 'Leone', 'Lia', 'Lidia', 'Lisa', 'Loredana', 'Loretta', 'Luce',
|
||||
'Lucia', 'Lucrezia', 'Luna', 'Maika', 'Marcella', 'Maria', 'Marianita', 'Mariapia', 'Marina', 'Maristella', 'Maruska', 'Matilde',
|
||||
'Mercedes', 'Michele', 'Miriam', 'Miriana', 'Monia', 'Morgana', 'Naomi', 'Neri', 'Nicoletta', 'Ninfa', 'Noemi', 'Nunzia',
|
||||
'Olimpia', 'Ortensia', 'Penelope', 'Prisca', 'Rebecca', 'Rita', 'Rosalba', 'Rosaria', 'Rosita', 'Ruth', 'Samira', 'Sarita',
|
||||
'Sasha', 'Shaira', 'Thea', 'Ursula', 'Vania', 'Vera', 'Vienna', 'Artemide', 'Cassiopea', 'Cesidia', 'Clea', 'Cleopatra',
|
||||
'Clodovea', 'Cosetta', 'Damiana', 'Danuta', 'Diamante', 'Eufemia', 'Flaviana', 'Gelsomina', 'Genziana', 'Giacinta', 'Guendalina',
|
||||
'Jole', 'Mariagiulia', 'Marieva', 'Mietta', 'Nayade', 'Piccarda', 'Selvaggia', 'Sibilla', 'Soriana', 'Sue ellen', 'Tosca', 'Violante',
|
||||
'Vitalba', 'Zelida',
|
||||
'Adriana', 'Alessandra', 'Andrea', 'Angela', 'Angelina', 'Anna', 'Annalisa', 'Annamaria', 'Annunziata', 'Antonella',
|
||||
'Antonia', 'Antonietta', 'Antonina', 'Artemide', 'Asia', 'Assia', 'Assunta', 'Barbara', 'Benedetta', 'Bibiana', 'Brigitta',
|
||||
'Bruna', 'Carla', 'Carmela', 'Cassiopea', 'Caterina', 'Celeste', 'Cesidia', 'Chiara', 'Cinzia', 'Cira', 'Clara', 'Claudia',
|
||||
'Clea', 'Cleopatra', 'Clodovea', 'Concetta', 'Cosetta', 'Cristina', 'Cristyn', 'Damiana', 'Daniela', 'Danuta', 'Deborah',
|
||||
'Demi', 'Diamante', 'Diana', 'Domenica', 'Donatella', 'Doriana', 'Edvige', 'Elda', 'Elena', 'Eleonora', 'Elga', 'Elisa',
|
||||
'Elisabetta', 'Elsa', 'Emanuela', 'Emilia', 'Enrica', 'Erminia', 'Eufemia', 'Evita', 'Fatima', 'Federica', 'Felicia',
|
||||
'Filomena', 'Flaviana', 'Fortunata', 'Franca', 'Francesca', 'Gabriella', 'Gelsomina', 'Genziana', 'Giacinta', 'Gilda',
|
||||
'Giovanna', 'Giuliana', 'Giulietta', 'Giuseppa', 'Giuseppina', 'Grazia', 'Graziella', 'Guendalina', 'Helga', 'Ida', 'Ileana',
|
||||
'Ingrid', 'Ione', 'Irene', 'Isabel', 'Isabella', 'Ivana', 'Ivonne', 'Jelena', 'Jole', 'Kayla', 'Kristel', 'Laura', 'Leone',
|
||||
'Lia', 'Lidia', 'Liliana', 'Lina', 'Lisa', 'Loredana', 'Loretta', 'Luce', 'Lucia', 'Luciana', 'Lucrezia', 'Luisa', 'Luna',
|
||||
'Maddalena', 'Maika', 'Manuela', 'Marcella', 'Margherita', 'Maria', 'Mariagiulia', 'Marianita', 'Marianna', 'Mariapia',
|
||||
'Marieva', 'Marina', 'Marisa', 'Maristella', 'Marta', 'Maruska', 'Matilde', 'Mercedes', 'Michela', 'Michele', 'Michelle',
|
||||
'Mietta', 'Mirella', 'Miriam', 'Miriana', 'Monia', 'Monica', 'Morgana', 'Nadia', 'Naomi', 'Nayade', 'Neri', 'Nicoletta',
|
||||
'Ninfa', 'Noemi', 'Nunzia', 'Olimpia', 'Ortensia', 'Paola', 'Patrizia', 'Penelope', 'Piccarda', 'Pierina', 'Prisca',
|
||||
'Raffaella', 'Rebecca', 'Renata', 'Rita', 'Roberta', 'Rosa', 'Rosalba', 'Rosalia', 'Rosanna', 'Rosaria', 'Rosita',
|
||||
'Ruth', 'Sabrina', 'Samira', 'Sandra', 'Sara', 'Sarah', 'Sarita', 'Sasha', 'Selvaggia', 'Shaira', 'Sibilla', 'Silvana',
|
||||
'Silvia', 'Simona', 'Sonia', 'Soriana', 'Stefania', 'Stella', 'Sue ellen', 'Teresa', 'Thea', 'Tiziana', 'Tosca',
|
||||
'Ursula', 'Valentina', 'Vania', 'Vera', 'Veronica', 'Vienna', 'Vincenza', 'Violante', 'Vitalba', 'Vittoria', 'Zelida',
|
||||
];
|
||||
|
||||
protected static $lastName = [
|
||||
@@ -69,7 +82,7 @@ class Person extends \Faker\Provider\Person
|
||||
'Rizzi', 'Monti', 'Cattaneo', 'Morelli', 'Amato', 'Silvestri', 'Mazza', 'Testa', 'Grassi', 'Pellegrino', 'Carbone',
|
||||
'Giuliani', 'Benedetti', 'Barone', 'Rossetti', 'Caputo', 'Montanari', 'Guerra', 'Palmieri', 'Bernardi', 'Martino', 'Fiore',
|
||||
'De rosa', 'Ferretti', 'Bellini', 'Basile', 'Riva', 'Donati', 'Piras', 'Vitali', 'Battaglia', 'Sartori', 'Neri', 'Costantini',
|
||||
'Milani', 'Pagano', 'Ruggiero', 'Sorrentino', 'D\'amico', 'Orlando', 'Damico', 'Negri',
|
||||
'Milani', 'Pagano', 'Ruggiero', 'Sorrentino', 'D\'amico', 'Orlando', 'Damico', 'Negri', 'Verdi',
|
||||
];
|
||||
|
||||
protected static $titleMale = ['Sig.', 'Dott.', 'Dr.', 'Ing.'];
|
||||
|
||||
4016
vendor/fakerphp/faker/src/Faker/Provider/it_IT/Text.php
vendored
4016
vendor/fakerphp/faker/src/Faker/Provider/it_IT/Text.php
vendored
File diff suppressed because it is too large
Load Diff
@@ -628,10 +628,12 @@ EOT;
|
||||
$chars = static::split($text);
|
||||
$last = end($chars);
|
||||
}
|
||||
|
||||
// if the last char is a not-valid-end punctuation, remove it
|
||||
if (in_array($last, static::$notEndPunct, false)) {
|
||||
$text = preg_replace('/.$/u', '', $text);
|
||||
}
|
||||
|
||||
// if the last char is not a valid punctuation, append a default one.
|
||||
return in_array($last, static::$endPunct, false) ? $text : $text . '。';
|
||||
}
|
||||
|
||||
@@ -54,8 +54,6 @@ class Company extends \Faker\Provider\Company
|
||||
*
|
||||
* @see http://egov.kz/wps/portal/Content?contentPath=%2Fegovcontent%2Fbus_business%2Ffor_businessmen%2Farticle%2Fbusiness_identification_number&lang=en
|
||||
*
|
||||
* @param \DateTime $registrationDate
|
||||
*
|
||||
* @return string 12 digits, like 150140000019
|
||||
*/
|
||||
public static function businessIdentificationNumber(\DateTime $registrationDate = null)
|
||||
|
||||
@@ -207,8 +207,7 @@ class Person extends \Faker\Provider\Person
|
||||
* @see http://egov.kz/wps/portal/Content?contentPath=%2Fegovcontent%2Fcitizen_migration%2Fpassport_id_card%2Farticle%2Fiin_info&lang=en
|
||||
* @see https://ru.wikipedia.org/wiki/%D0%98%D0%BD%D0%B4%D0%B8%D0%B2%D0%B8%D0%B4%D1%83%D0%B0%D0%BB%D1%8C%D0%BD%D1%8B%D0%B9_%D0%B8%D0%B4%D0%B5%D0%BD%D1%82%D0%B8%D1%84%D0%B8%D0%BA%D0%B0%D1%86%D0%B8%D0%BE%D0%BD%D0%BD%D1%8B%D0%B9_%D0%BD%D0%BE%D0%BC%D0%B5%D1%80
|
||||
*
|
||||
* @param \DateTime $birthDate
|
||||
* @param int $gender
|
||||
* @param int $gender
|
||||
*
|
||||
* @return string 12 digits, like 780322300455
|
||||
*/
|
||||
|
||||
@@ -238,7 +238,7 @@ class Person extends \Faker\Provider\Person
|
||||
* @see http://www.horoskopai.lt/gaires/populiariausios-pavardes-lietuvoje/
|
||||
*/
|
||||
protected static $lastNameMale = [
|
||||
'Kazlaukas', 'Jankauskas', 'Petrauskas', 'Stankevičius', 'Vasiliauskas', 'Žukauskas', 'Butkus',
|
||||
'Kazlauskas', 'Jankauskas', 'Petrauskas', 'Stankevičius', 'Vasiliauskas', 'Žukauskas', 'Butkus',
|
||||
'Kateiva', 'Paulauskas', 'Urbonas', 'Kavaliauskas', 'Baranauskas', 'Pocius', 'Sakalauskas',
|
||||
];
|
||||
|
||||
@@ -325,9 +325,8 @@ class Person extends \Faker\Provider\Person
|
||||
* @see https://en.wikipedia.org/wiki/National_identification_number#Lithuania
|
||||
* @see https://lt.wikipedia.org/wiki/Asmens_kodas
|
||||
*
|
||||
* @param string $gender [male|female]
|
||||
* @param \DateTime $birthdate
|
||||
* @param string $randomNumber three integers
|
||||
* @param string $gender [male|female]
|
||||
* @param string $randomNumber three integers
|
||||
*
|
||||
* @return string on format XXXXXXXXXXX
|
||||
*/
|
||||
|
||||
@@ -12,7 +12,7 @@ class Address extends \Faker\Provider\Address
|
||||
];
|
||||
|
||||
protected static $buildingNumber = ['%#'];
|
||||
protected static $postcode = ['LV ####'];
|
||||
protected static $postcode = ['LV-####'];
|
||||
|
||||
/**
|
||||
* @see https://lv.wikipedia.org/wiki/Suver%C4%93no_valstu_uzskait%C4%ABjums
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace Faker\Provider\lv_LV;
|
||||
|
||||
use Faker\Calculator\Luhn;
|
||||
use Faker\Provider\DateTime;
|
||||
|
||||
class Person extends \Faker\Provider\Person
|
||||
@@ -135,8 +134,6 @@ class Person extends \Faker\Provider\Person
|
||||
*
|
||||
* @see https://en.wikipedia.org/wiki/National_identification_number#Latvia
|
||||
*
|
||||
* @param \DateTime $birthdate
|
||||
*
|
||||
* @return string on format XXXXXX-XXXXX
|
||||
*/
|
||||
public function personalIdentityNumber(\DateTime $birthdate = null)
|
||||
@@ -145,11 +142,32 @@ class Person extends \Faker\Provider\Person
|
||||
$birthdate = DateTime::dateTimeThisCentury();
|
||||
}
|
||||
|
||||
$year = $birthdate->format('Y');
|
||||
|
||||
if ($year >= 2000 && $year <= 2099) {
|
||||
$century = 2;
|
||||
} elseif ($year >= 1900 && $year <= 1999) {
|
||||
$century = 1;
|
||||
} else {
|
||||
$century = 0;
|
||||
}
|
||||
|
||||
$datePart = $birthdate->format('dmy');
|
||||
$randomDigits = (string) static::numerify('####');
|
||||
$serialNumber = static::numerify('###');
|
||||
|
||||
$checksum = Luhn::computeCheckDigit($datePart . $randomDigits);
|
||||
$partialNumberSplit = str_split($datePart . $century . $serialNumber);
|
||||
|
||||
return $datePart . '-' . $randomDigits . $checksum;
|
||||
$idDigitValidator = [1, 6, 3, 7, 9, 10, 5, 8, 4, 2];
|
||||
$total = 0;
|
||||
|
||||
foreach ($partialNumberSplit as $key => $digit) {
|
||||
if (isset($idDigitValidator[$key])) {
|
||||
$total += $idDigitValidator[$key] * (int) $digit;
|
||||
}
|
||||
}
|
||||
|
||||
$checksumDigit = (1101 - $total) % 11 % 10;
|
||||
|
||||
return $datePart . '-' . $century . $serialNumber . $checksumDigit;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -792,6 +792,7 @@ class Person extends \Faker\Provider\Person
|
||||
|
||||
// gender digit. Odd = MALE, Even = FEMALE
|
||||
$g = self::numberBetween(0, 9);
|
||||
|
||||
//Credit: https://gist.github.com/mauris/3629548
|
||||
if ($gender === static::GENDER_MALE) {
|
||||
$g = $g | 1;
|
||||
|
||||
@@ -134,7 +134,7 @@ class Person extends \Faker\Provider\Person
|
||||
'Abdirahim', 'Abdirahman', 'Abdirashid', 'Abdirizak', 'Abdul', 'Abdulahi', 'Abdulkadir', 'Abdullah',
|
||||
'Abdullahi', 'Abdulqadir', 'Abdurahman', 'Abed', 'Abel', 'Abid', 'Abraham', 'Absalon', 'Abu', 'Abubakar',
|
||||
'Adam', 'Adan', 'Adeel', 'Adelheid', 'Adelsten', 'Adem', 'Aden', 'Adham', 'Adi', 'Adil', 'Adis', 'Adler',
|
||||
'Admir', 'Adnan', 'Adolf', 'Adrian', 'Afanasi', 'Afrim', 'Afshin', 'Agim', 'Agmund', 'Agnar', 'Agvald', 'Ahmad',
|
||||
'Admir', 'Adnan', 'Adrian', 'Afanasi', 'Afrim', 'Afshin', 'Agim', 'Agmund', 'Agnar', 'Agvald', 'Ahmad',
|
||||
'Ahmed', 'Aiden', 'Ailo', 'Aimar', 'Aime', 'Ajdin', 'Ajmal', 'Akam', 'Akbar', 'Akram', 'Aksel', 'Alain', 'Alan',
|
||||
'Alban', 'Albert', 'Alberto', 'Albin', 'Albrecht', 'Alejandro', 'Aleksander', 'Alen', 'Alessandro', 'Alex',
|
||||
'Alexander', 'Alexsander', 'Alf', 'Alfred', 'Algirdas', 'Algot', 'Ali', 'Allan', 'Almar', 'Almas', 'Almaz',
|
||||
@@ -288,8 +288,7 @@ class Person extends \Faker\Provider\Person
|
||||
*
|
||||
* @see https://no.wikipedia.org/wiki/Personnummer
|
||||
*
|
||||
* @param \DateTime $birthdate
|
||||
* @param string $gender Person::GENDER_MALE || Person::GENDER_FEMALE
|
||||
* @param string $gender Person::GENDER_MALE || Person::GENDER_FEMALE
|
||||
*
|
||||
* @return string on format DDMMYY#####
|
||||
*/
|
||||
|
||||
@@ -44,6 +44,6 @@ class Payment extends \Faker\Provider\Payment
|
||||
$checksum = 97 - fmod($firstSeven, 97);
|
||||
|
||||
// '0' + 7 numbers + checksum
|
||||
return sprintf('%s0%s%s', $prefix, $firstSeven, $checksum);
|
||||
return sprintf('%s0%s%02d', $prefix, $firstSeven, $checksum);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,17 +73,17 @@ class Person extends \Faker\Provider\Person
|
||||
];
|
||||
|
||||
/**
|
||||
* Belgian Rijksregister numbers are used to identify each citizen,
|
||||
* it consists of three parts, the person's day of birth, in the
|
||||
* format 'ymd', followed by a number between 1 and 997, odd for
|
||||
* males, even for females. The last part is used to check if it's
|
||||
* a valid number.
|
||||
* Belgian Rijksregister numbers are used to identify each citizen,
|
||||
* it consists of three parts, the person's day of birth, in the
|
||||
* format 'ymd', followed by a number between 1 and 997, odd for
|
||||
* males, even for females. The last part is used to check if it's
|
||||
* a valid number.
|
||||
*
|
||||
* @see https://nl.wikipedia.org/wiki/Rijksregisternummer
|
||||
*
|
||||
* @param string|null $gender 'male', 'female' or null for any
|
||||
* @param string|null $gender 'male', 'female' or null for any
|
||||
*
|
||||
* @return string
|
||||
* @return string
|
||||
*/
|
||||
public static function rrn($gender = null)
|
||||
{
|
||||
|
||||
@@ -99,101 +99,97 @@ class Address extends \Faker\Provider\Address
|
||||
* @see http://www.poczta-polska.pl/
|
||||
*/
|
||||
protected static $street = [
|
||||
'1 Maja', '3 Maja', '11 Listopada', 'Agrestowa', 'Akacjowa', 'Andersa Władysława', 'Armii Krajowej',
|
||||
'Asnyka Adama', 'Astrów', 'Azaliowa', 'Baczyńskiego Krzysztofa Kamila', 'Bałtycka',
|
||||
'Barlickiego Norberta', 'Batalionów Chłopskich', 'Batorego Stefana', 'Bema Józefa',
|
||||
'Bema Józefa', 'Beskidzka', 'Białostocka', 'Bielska', 'Bieszczadzka', 'Błękitna',
|
||||
'Boczna', 'Bogusławskiego Wojciecha', 'Bohaterów Westerplatte', 'Bolesława Chrobrego',
|
||||
'Bolesława Krzywoustego', 'Borowa', 'Botaniczna', 'Bracka', 'Bratków', 'Broniewskiego Władysława',
|
||||
'Brzechwy Jana', 'Brzoskwiniowa', 'Brzozowa', 'Budowlanych', 'Bukowa', 'Bursztynowa',
|
||||
'Bydgoska', 'Bytomska', 'Cedrowa', 'Cegielniana', 'Ceglana', 'Chabrowa', 'Chełmońskiego Józefa',
|
||||
'Chłodna', 'Chłopska', 'Chmielna', 'Chopina Fryderyka', 'Chorzowska', 'Chrobrego Bolesława',
|
||||
'Ciasna', 'Cicha', 'Cieszyńska', 'Cisowa', 'Cmentarna', 'Curie-Skłodowskiej Marii',
|
||||
'Czarnieckiego Stefana', 'Czereśniowa', 'Częstochowska', 'Czwartaków', 'Daleka', 'Daszyńskiego Ignacego',
|
||||
'Dąbrowskiego Jana Henryka', 'Dąbrowskiego Jarosława', 'Dąbrowskiego Jarosława',
|
||||
'Dąbrowskiej Marii', 'Dąbrowszczaków', 'Dąbrówki', 'Dębowa', 'Diamentowa', 'Długa',
|
||||
'Długosza Jana', 'Dmowskiego Romana', 'Dobra', 'Dolna', 'Dożynkowa', 'Drzymały Michała',
|
||||
'Dubois Stanisława', 'Dworcowa', 'Dworska', 'Działkowa', 'Energetyków', 'Fabryczna',
|
||||
'Fałata Juliana', 'Fiołkowa', 'Folwarczna', 'Franciszkańska', 'Francuska', 'Fredry Aleksandra',
|
||||
'Gagarina Jurija', 'Gajowa', 'Gałczyńskiego Konstantego Ildefonsa', 'Gdańska', 'Gdyńska',
|
||||
'Gliwicka', 'Głogowa', 'Głogowska', 'Głowackiego Bartosza', 'Główna', 'Gminna', 'Gnieźnieńska',
|
||||
'Gojawiczyńskiej Poli', 'Gołębia', 'Gościnna', 'Górna', 'Górnicza', 'Górnośląska',
|
||||
'Grabowa', 'Graniczna', 'Granitowa', 'Grochowska', 'Grodzka', 'Grota-Roweckiego Stefana',
|
||||
'Grottgera Artura', 'Grójecka', 'Grunwaldzka', 'Grzybowa', 'Hallera Józefa', 'Handlowa',
|
||||
'Harcerska', 'Hetmańska', 'Hoża', 'Husarska', 'Hutnicza', 'Inżynierska', 'Iwaszkiewicza Jarosława',
|
||||
'Jagiellońska', 'Jagiellońskie Os.', 'Jagiełły Władysława', 'Jagodowa', 'Jałowcowa',
|
||||
'Jana Pawła II', 'Jana Pawła II Al.', 'Jaracza Stefana', 'Jarzębinowa', 'Jaskółcza',
|
||||
'Jasna', 'Jastrzębia', 'Jaśminowa', 'Jaworowa', 'Jerozolimskie Al.', 'Jesienna', 'Jesionowa',
|
||||
'Jeżynowa', 'Jodłowa', 'Kalinowa', 'Kaliska', 'Kamienna', 'Karłowicza Mieczysława',
|
||||
'Karpacka', 'Kartuska', 'Kasprowicza Jana', 'Kasprzaka Marcina', 'Kasztanowa', 'Kaszubska',
|
||||
'Katowicka', 'Kazimierza Wielkiego', 'Kielecka', 'Kilińskiego Jana', 'Kleeberga Franciszka',
|
||||
'Klonowa', 'Kłosowa', 'Kochanowskiego Jana', 'Kolberga Oskara', 'Kolejowa', 'Kolorowa',
|
||||
'Kołłątaja Hugo', 'Kołłątaja Hugona', 'Kołobrzeska', 'Konarskiego Stanisława',
|
||||
'Konopnickiej Marii', 'Konstytucji 3 Maja', 'Konwaliowa', 'Kopalniana', 'Kopernika Mikołaja',
|
||||
'Koralowa', 'Korczaka Janusza', 'Korfantego Wojciecha', 'Kosmonautów', 'Kossaka Juliusza',
|
||||
'Kosynierów', 'Koszalińska', 'Koszykowa', 'Kościelna', 'Kościuszki Tadeusza', 'Kościuszki Tadeusza Pl.',
|
||||
'Kowalska', 'Krakowska', 'Krańcowa', 'Krasickiego Ignacego', 'Krasińskiego Zygmunta',
|
||||
'Kraszewskiego Józefa Ignacego', 'Kresowa', 'Kręta', 'Królewska', 'Królowej Jadwigi',
|
||||
'Krótka', 'Krucza', 'Kruczkowskiego Leona', 'Krzywa', 'Księżycowa', 'Kujawska', 'Kusocińskiego Janusza',
|
||||
'Kwiatkowskiego Eugeniusza', 'Kwiatowa', 'Lawendowa', 'Lazurowa', 'Lechicka', 'Legionów',
|
||||
'Legnicka', 'Lelewela Joachima', 'Leszczynowa', 'Leśmiana Bolesława', 'Leśna', 'Letnia',
|
||||
'Ligonia Juliusza', 'Liliowa', 'Limanowskiego Bolesława', 'Lipowa', 'Lisia', 'Litewska',
|
||||
'Lompy Józefa', 'Lotnicza', 'Lotników', 'Lubelska', 'Ludowa', 'Lwowska', 'Łabędzia',
|
||||
'Łagiewnicka', 'Łanowa', 'Łączna', 'Łąkowa', 'Łokietka Władysława', 'Łomżyńska',
|
||||
'Łowicka', 'Łódzka', 'Łukasiewicza Ignacego', 'Łużycka', 'Maczka Stanisława',
|
||||
'Magazynowa', 'Majowa', 'Makowa', 'Makuszyńskiego Kornela', 'Malczewskiego Jacka', 'Malinowa',
|
||||
'Mała', 'Małachowskiego Stanisława', 'Małopolska', 'Marszałkowska', 'Matejki Jana',
|
||||
'Mazowiecka', 'Mazurska', 'Miarki Karola', 'Mickiewicza Adama', 'Miedziana', 'Mieszka I',
|
||||
'Miła', 'Miodowa', 'Młynarska', 'Młyńska', 'Modlińska', 'Modra', 'Modrzejewskiej Heleny',
|
||||
'Modrzewiowa', 'Mokra', 'Moniuszki Stanisława', 'Morcinka Gustawa', 'Morelowa', 'Morska',
|
||||
'Mostowa', 'Myśliwska', 'Nadbrzeżna', 'Nadrzeczna', 'Nałkowskiej Zofii', 'Narutowicza Gabriela',
|
||||
'Niecała', 'Niedziałkowskiego Mieczysława', 'Niemcewicza Juliana Ursyna', 'Niepodległości',
|
||||
'Niepodległości Al.', 'Niska', 'Norwida Cypriana Kamila', 'Nowa', 'Nowowiejska', 'Nowowiejskiego Feliksa',
|
||||
'1 Maja', '3 Maja', '11 Listopada', 'Agrestowa', 'Akacjowa', 'Andersa', 'Armii Krajowej',
|
||||
'Asnyka', 'Astrów', 'Azaliowa', 'Baczyńskiego', 'Bałtycka', 'Barlickiego', 'Batalionów Chłopskich',
|
||||
'Batorego', 'Bema', 'Beskidzka', 'Białostocka', 'Bielska', 'Bieszczadzka', 'Błękitna',
|
||||
'Boczna', 'Bogusławskiego', 'Bohaterów Westerplatte', 'Bolesława Chrobrego',
|
||||
'Bolesława Krzywoustego', 'Borowa', 'Botaniczna', 'Bracka', 'Bratków', 'Broniewskiego',
|
||||
'Brzechwy', 'Brzoskwiniowa', 'Brzozowa', 'Budowlanych', 'Bukowa', 'Bursztynowa',
|
||||
'Bydgoska', 'Bytomska', 'Cedrowa', 'Cegielniana', 'Ceglana', 'Chabrowa', 'Chełmońskiego',
|
||||
'Chłodna', 'Chłopska', 'Chmielna', 'Chopina Fryderyka', 'Chorzowska',
|
||||
'Ciasna', 'Cicha', 'Cieszyńska', 'Cisowa', 'Cmentarna', 'Curie-Skłodowskiej',
|
||||
'Czarnieckiego', 'Czereśniowa', 'Częstochowska', 'Czwartaków', 'Daleka', 'Daszyńskiego',
|
||||
'Dąbrowskiego', 'Dąbrowskiej', 'Dąbrowszczaków', 'Dąbrówki', 'Dębowa', 'Diamentowa', 'Długa',
|
||||
'Długosza', 'Dmowskiego', 'Dobra', 'Dolna', 'Dożynkowa', 'Drzymały',
|
||||
'Dworcowa', 'Dworska', 'Działkowa', 'Energetyków', 'Fabryczna',
|
||||
'Fałata', 'Fiołkowa', 'Folwarczna', 'Franciszkańska', 'Francuska', 'Fredry',
|
||||
'Gagarina', 'Gajowa', 'Gałczyńskiego', 'Gdańska', 'Gdyńska',
|
||||
'Gliwicka', 'Głogowa', 'Głogowska', 'Głowackiego', 'Główna', 'Gminna', 'Gnieźnieńska',
|
||||
'Gojawiczyńskiej', 'Gołębia', 'Gościnna', 'Górna', 'Górnicza', 'Górnośląska',
|
||||
'Grabowa', 'Graniczna', 'Granitowa', 'Grochowska', 'Grodzka', 'Grota-Roweckiego',
|
||||
'Grottgera', 'Grójecka', 'Grunwaldzka', 'Grzybowa', 'Hallera', 'Handlowa',
|
||||
'Harcerska', 'Hetmańska', 'Hoża', 'Husarska', 'Hutnicza', 'Inżynierska', 'Iwaszkiewicza',
|
||||
'Jagiellońska', 'Os. Jagiellońskie', 'Jagiełły', 'Jagodowa', 'Jałowcowa',
|
||||
'Jana Pawła II', 'Al. Jana Pawła II', 'Jaracza', 'Jarzębinowa', 'Jaskółcza',
|
||||
'Jasna', 'Jastrzębia', 'Jaśminowa', 'Jaworowa', 'Al. Jerozolimskie', 'Jesienna', 'Jesionowa',
|
||||
'Jeżynowa', 'Jodłowa', 'Kalinowa', 'Kaliska', 'Kamienna', 'Karłowicza',
|
||||
'Karpacka', 'Kartuska', 'Kasprowicza', 'Kasprzaka Marcina', 'Kasztanowa', 'Kaszubska',
|
||||
'Katowicka', 'Kazimierza Wielkiego', 'Kielecka', 'Kilińskiego', 'Kleeberga',
|
||||
'Klonowa', 'Kłosowa', 'Kochanowskiego', 'Kolberga', 'Kolejowa', 'Kolorowa',
|
||||
'Kołłątaja', 'Kołobrzeska', 'Konarskiego',
|
||||
'Konopnickiej', 'Konstytucji 3 Maja', 'Konwaliowa', 'Kopalniana', 'Kopernika',
|
||||
'Koralowa', 'Korczaka', 'Korfantego', 'Kosmonautów', 'Kossaka',
|
||||
'Kosynierów', 'Koszalińska', 'Koszykowa', 'Kościelna', 'Kościuszki', 'Pl. Kościuszki',
|
||||
'Kowalska', 'Krakowska', 'Krańcowa', 'Krasickiego', 'Krasińskiego',
|
||||
'Kraszewskiego', 'Kresowa', 'Kręta', 'Królewska', 'Królowej Jadwigi',
|
||||
'Krótka', 'Krucza', 'Kruczkowskiego', 'Krzywa', 'Księżycowa', 'Kujawska', 'Kusocińskiego',
|
||||
'Kwiatkowskiego', 'Kwiatowa', 'Lawendowa', 'Lazurowa', 'Lechicka', 'Legionów',
|
||||
'Legnicka', 'Lelewela', 'Leszczynowa', 'Leśmiana', 'Leśna', 'Letnia',
|
||||
'Ligonia', 'Liliowa', 'Limanowskiego', 'Lipowa', 'Lisia', 'Litewska',
|
||||
'Lompy', 'Lotnicza', 'Lotników', 'Lubelska', 'Ludowa', 'Lwowska', 'Łabędzia',
|
||||
'Łagiewnicka', 'Łanowa', 'Łączna', 'Łąkowa', 'Łokietka', 'Łomżyńska',
|
||||
'Łowicka', 'Łódzka', 'Łukasiewicza', 'Łużycka', 'Maczka',
|
||||
'Magazynowa', 'Majowa', 'Makowa', 'Makuszyńskiego', 'Malczewskiego', 'Malinowa',
|
||||
'Mała', 'Małachowskiego', 'Małopolska', 'Marszałkowska', 'Matejki',
|
||||
'Mazowiecka', 'Mazurska', 'Miarki', 'Mickiewicza', 'Miedziana', 'Mieszka I',
|
||||
'Miła', 'Miodowa', 'Młynarska', 'Młyńska', 'Modlińska', 'Modra', 'Modrzejewskiej',
|
||||
'Modrzewiowa', 'Mokra', 'Moniuszki', 'Morcinka', 'Morelowa', 'Morska',
|
||||
'Mostowa', 'Myśliwska', 'Nadbrzeżna', 'Nadrzeczna', 'Nałkowskiej', 'Narutowicza',
|
||||
'Niecała', 'Niedziałkowskiego', 'Niemcewicza', 'Niepodległości',
|
||||
'Al. Niepodległości', 'Niska', 'Norwida', 'Nowa', 'Nowowiejska', 'Nowowiejskiego',
|
||||
'Nowy Świat', 'Obrońców Westerplatte', 'Odrodzenia', 'Odrzańska', 'Ogrodowa', 'Okopowa',
|
||||
'Okólna', 'Okrężna', 'Okrzei Stefana', 'Okulickiego Leopolda', 'Olchowa', 'Olimpijska',
|
||||
'Olsztyńska', 'Opolska', 'Orkana Władysława', 'Orla', 'Orzechowa', 'Orzeszkowej Elizy',
|
||||
'Osiedlowa', 'Oświęcimska', 'Owocowa', 'Paderewskiego Ignacego', 'Parkowa', 'Partyzantów',
|
||||
'Patriotów', 'Pawia', 'Perłowa', 'Piaskowa', 'Piastowska', 'Piastowskie Os.', 'Piekarska',
|
||||
'Piękna', 'Piłsudskiego Józefa', 'Piłsudskiego Józefa', 'Piłsudskiego Józefa Al.',
|
||||
'Piotrkowska', 'Piwna', 'Plater Emilii', 'Plebiscytowa', 'Płocka', 'Pocztowa', 'Podchorążych',
|
||||
'Okólna', 'Okrężna', 'Okrzei', 'Okulickiego', 'Olchowa', 'Olimpijska',
|
||||
'Olsztyńska', 'Opolska', 'Orkana', 'Orla', 'Orzechowa', 'Orzeszkowej',
|
||||
'Osiedlowa', 'Oświęcimska', 'Owocowa', 'Paderewskiego', 'Parkowa', 'Partyzantów',
|
||||
'Patriotów', 'Pawia', 'Perłowa', 'Piaskowa', 'Piastowska', 'Os. Piastowskie', 'Piekarska',
|
||||
'Piękna', 'Piłsudskiego', 'Al. Piłsudskiego',
|
||||
'Piotrkowska', 'Piwna', 'Emilii Plater', 'Plebiscytowa', 'Płocka', 'Pocztowa', 'Podchorążych',
|
||||
'Podgórna', 'Podhalańska', 'Podleśna', 'Podmiejska', 'Podwale', 'Pogodna', 'Pokoju',
|
||||
'Pola Wincentego', 'Polna', 'Południowa', 'Pomorska', 'Poniatowskiego Józefa', 'Poniatowskiego Józefa',
|
||||
'Popiełuszki Jerzego', 'Poprzeczna', 'Portowa', 'Porzeczkowa', 'Powstańców', 'Powstańców Śląskich',
|
||||
'Wincentego Pola', 'Polna', 'Południowa', 'Pomorska', 'Poniatowskiego',
|
||||
'Popiełuszki', 'Poprzeczna', 'Portowa', 'Porzeczkowa', 'Powstańców', 'Powstańców Śląskich',
|
||||
'Powstańców Wielkopolskich', 'Poziomkowa', 'Poznańska', 'Północna', 'Promienna',
|
||||
'Prosta', 'Prusa Bolesława', 'Przechodnia', 'Przemysłowa', 'Przybyszewskiego Stanisława',
|
||||
'Przyjaźni', 'Pszenna', 'Ptasia', 'Pułaskiego Kazimierza', 'Pułaskiego Kazimierza',
|
||||
'Puławska', 'Puszkina Aleksandra', 'Racławicka', 'Radomska', 'Radosna', 'Rataja Macieja',
|
||||
'Reja Mikołaja', 'Rejtana Tadeusza', 'Reymonta Władysława', 'Reymonta Władysława Stanisława',
|
||||
'Prosta', 'Bolesława Prusa', 'Przechodnia', 'Przemysłowa', 'Przybyszewskiego',
|
||||
'Przyjaźni', 'Pszenna', 'Ptasia', 'Pułaskiego', 'Puławska', 'Puszkina', 'Racławicka',
|
||||
'Radomska', 'Radosna', 'Rataja', 'Reja', 'Rejtana', 'Reymonta',
|
||||
'Robotnicza', 'Rodzinna', 'Rolna', 'Rolnicza', 'Równa', 'Różana', 'Rubinowa', 'Rumiankowa',
|
||||
'Rybacka', 'Rybna', 'Rybnicka', 'Rycerska', 'Rynek', 'Rynek Rynek', 'Rzeczna', 'Rzemieślnicza',
|
||||
'Sadowa', 'Sandomierska', 'Saperów', 'Sawickiej Hanki', 'Sądowa', 'Sąsiedzka', 'Senatorska',
|
||||
'Siemiradzkiego Henryka', 'Sienkiewicza Henryka', 'Sienna', 'Siewna', 'Sikorskiego Władysława',
|
||||
'Sikorskiego Władysława', 'Skargi Piotra', 'Skargi Piotra', 'Składowa', 'Skłodowskiej-Curie Marii',
|
||||
'Skośna', 'Skrajna', 'Słoneczna', 'Słonecznikowa', 'Słowackiego Juliusza', 'Słowiańska',
|
||||
'Słowicza', 'Sobieskiego Jana', 'Sobieskiego Jana III', 'Sokola', 'Solidarności Al.',
|
||||
'Solna', 'Solskiego Ludwika', 'Sosnowa', 'Sowia', 'Sowińskiego Józefa', 'Spacerowa',
|
||||
'Spokojna', 'Sportowa', 'Spółdzielcza', 'Srebrna', 'Staffa Leopolda', 'Stalowa', 'Staromiejska',
|
||||
'Starowiejska', 'Staszica Stanisława', 'Stawowa', 'Stolarska', 'Strażacka', 'Stroma',
|
||||
'Struga Andrzeja', 'Strumykowa', 'Strzelecka', 'Studzienna', 'Stwosza Wita', 'Sucha',
|
||||
'Sucharskiego Henryka', 'Szafirowa', 'Szarych Szeregów', 'Szczecińska', 'Szczęśliwa',
|
||||
'Szeroka', 'Szewska', 'Szkolna', 'Szmaragdowa', 'Szpitalna', 'Szymanowskiego Karola',
|
||||
'Ściegiennego Piotra', 'Śląska', 'Średnia', 'Środkowa', 'Świdnicka', 'Świerkowa',
|
||||
'Rybacka', 'Rybna', 'Rybnicka', 'Rycerska', 'Rynek', 'Rzeczna', 'Rzemieślnicza',
|
||||
'Sadowa', 'Sandomierska', 'Saperów', 'Sawickiej', 'Sądowa', 'Sąsiedzka', 'Senatorska',
|
||||
'Siemiradzkiego', 'Sienkiewicza', 'Sienna', 'Siewna',
|
||||
'Sikorskiego', 'Piotra Skargi', 'Składowa', 'Skłodowskiej-Curie',
|
||||
'Skośna', 'Skrajna', 'Słoneczna', 'Słonecznikowa', 'Słowackiego', 'Słowiańska',
|
||||
'Słowicza', 'Sobieskiego', 'Jana III Sobieskiego', 'Sokola', 'Al. Solidarności',
|
||||
'Solna', 'Solskiego', 'Sosnowa', 'Sowia', 'Sowińskiego', 'Spacerowa',
|
||||
'Spokojna', 'Sportowa', 'Spółdzielcza', 'Srebrna', 'Staffa ', 'Stalowa', 'Staromiejska',
|
||||
'Starowiejska', 'Staszica', 'Stawowa', 'Stolarska', 'Strażacka', 'Stroma',
|
||||
'Struga', 'Strumykowa', 'Strzelecka', 'Studzienna', 'Wita Stwosza', 'Sucha',
|
||||
'Sucharskiego', 'Szafirowa', 'Szarych Szeregów', 'Szczecińska', 'Szczęśliwa',
|
||||
'Szeroka', 'Szewska', 'Szkolna', 'Szmaragdowa', 'Szpitalna', 'Szymanowskiego',
|
||||
'Ściegiennego', 'Śląska', 'Średnia', 'Środkowa', 'Świdnicka', 'Świerkowa',
|
||||
'Świętojańska', 'Świętokrzyska', 'Targowa', 'Tatrzańska', 'Tęczowa', 'Topolowa',
|
||||
'Torowa', 'Toruńska', 'Towarowa', 'Traugutta Romualda', 'Truskawkowa', 'Tulipanowa',
|
||||
'Tulipanów', 'Turkusowa', 'Turystyczna', 'Tuwima Juliana', 'Tylna', 'Tysiąclecia', 'Ułańska',
|
||||
'Urocza', 'Wałowa', 'Wandy', 'Wańkowicza Melchiora', 'Wapienna', 'Warmińska', 'Warszawska',
|
||||
'Waryńskiego Ludwika', 'Wąska', 'Wczasowa', 'Wesoła', 'Węglowa', 'Widok', 'Wiejska',
|
||||
'Wielkopolska', 'Wieniawskiego Henryka', 'Wierzbowa', 'Wilcza', 'Wileńska', 'Willowa',
|
||||
'Wiosenna', 'Wiśniowa', 'Witosa Wincentego', 'Władysława IV', 'Wodna', 'Wojska Polskiego',
|
||||
'Wojska Polskiego Al.', 'Wolności', 'Wolności Pl.', 'Wolska', 'Wołodyjowskiego Michała',
|
||||
'Wrocławska', 'Wronia', 'Wróblewskiego Walerego', 'Wrzosowa', 'Wschodnia', 'Wspólna',
|
||||
'Wybickiego Józefa', 'Wysoka', 'Wyspiańskiego Stanisława', 'Wyszyńskiego Stefana',
|
||||
'Wyzwolenia', 'Wyzwolenia Al.', 'Zachodnia', 'Zacisze', 'Zajęcza', 'Zakątek', 'Zakopiańska',
|
||||
'Zamenhofa Ludwika', 'Zamkowa', 'Zapolskiej Gabrieli', 'Zbożowa', 'Zdrojowa', 'Zgierska',
|
||||
'Torowa', 'Toruńska', 'Towarowa', 'Traugutta', 'Truskawkowa', 'Tulipanowa',
|
||||
'Tulipanów', 'Turkusowa', 'Turystyczna', 'Tuwima', 'Tylna', 'Tysiąclecia', 'Ułańska',
|
||||
'Urocza', 'Wałowa', 'Wandy', 'Wańkowicza', 'Wapienna', 'Warmińska', 'Warszawska',
|
||||
'Waryńskiego', 'Wąska', 'Wczasowa', 'Wesoła', 'Węglowa', 'Widok', 'Wiejska',
|
||||
'Wielkopolska', 'Wieniawskiego', 'Wierzbowa', 'Wilcza', 'Wileńska', 'Willowa',
|
||||
'Wiosenna', 'Wiśniowa', 'Witosa', 'Władysława IV', 'Wodna', 'Wojska Polskiego',
|
||||
'Al. Wojska Polskiego', 'Wolności', 'Pl. Wolności', 'Wolska', 'Wołodyjowskiego',
|
||||
'Wrocławska', 'Wronia', 'Wróblewskiego', 'Wrzosowa', 'Wschodnia', 'Wspólna',
|
||||
'Wybickiego', 'Wysoka', 'Wyspiańskiego', 'Wyszyńskiego',
|
||||
'Wyzwolenia', 'Al. Wyzwolenia', 'Zachodnia', 'Zacisze', 'Zajęcza', 'Zakątek', 'Zakopiańska',
|
||||
'Zamenhofa', 'Zamkowa', 'Zapolskiej', 'Zbożowa', 'Zdrojowa', 'Zgierska',
|
||||
'Zielna', 'Zielona', 'Złota', 'Zwierzyniecka', 'Zwycięstwa', 'Źródlana', 'Żabia',
|
||||
'Żeglarska', 'Żelazna', 'Żeromskiego Stefana', 'Żniwna', 'Żołnierska', 'Żółkiewskiego Stanisława',
|
||||
'Żurawia', 'Żwirki Franciszka i Wigury Stanisława', 'Żwirki i Wigury', 'Żwirowa',
|
||||
'Żytnia',
|
||||
'Żeglarska', 'Żelazna', 'Żeromskiego', 'Żniwna', 'Żołnierska', 'Żółkiewskiego',
|
||||
'Żurawia', 'Żwirki i Wigury', 'Żwirowa', 'Żytnia',
|
||||
];
|
||||
|
||||
public function city()
|
||||
|
||||
@@ -5,5 +5,5 @@ namespace Faker\Provider\pl_PL;
|
||||
class Internet extends \Faker\Provider\Internet
|
||||
{
|
||||
protected static $freeEmailDomain = ['gmail.com', 'yahoo.com', 'wp.pl', 'onet.pl', 'interia.pl', 'gazeta.pl'];
|
||||
protected static $tld = ['pl', 'pl', 'pl', 'pl', 'pl', 'pl', 'com', 'info', 'net', 'org', 'com.pl', 'com.pl'];
|
||||
protected static $tld = ['pl', 'pl', 'pl', 'pl', 'pl', 'pl', 'com', 'info', 'net', 'org', 'com.pl', 'com.pl', 'co.pl', 'net.pl', 'org.pl'];
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ use Faker\Provider\Base;
|
||||
|
||||
/**
|
||||
* Generator of Polish vehicle registration numbers.
|
||||
* {@link} http://prawo.sejm.gov.pl/isap.nsf/DocDetails.xsp?id=WDU20170002355
|
||||
* {@link} https://isap.sejm.gov.pl/isap.nsf/DocDetails.xsp?id=WDU20220001847
|
||||
* {@link} https://pl.wikipedia.org/wiki/Tablice_rejestracyjne_w_Polsce#Tablice_standardowe
|
||||
*/
|
||||
class LicensePlate extends Base
|
||||
@@ -15,37 +15,37 @@ class LicensePlate extends Base
|
||||
* @var array list of Polish voivodeships and respective vehicle registration number prefixes.
|
||||
*/
|
||||
protected static $voivodeships = [
|
||||
'dolnośląskie' => 'D',
|
||||
'kujawsko-pomorskie' => 'C',
|
||||
'lubelskie' => 'L',
|
||||
'lubuskie' => 'F',
|
||||
'łódzkie' => 'E',
|
||||
'małopolskie' => 'K',
|
||||
'mazowieckie' => 'W',
|
||||
'opolskie' => 'O',
|
||||
'podkarpackie' => 'R',
|
||||
'podlaskie' => 'B',
|
||||
'pomorskie' => 'G',
|
||||
'śląskie' => 'S',
|
||||
'świętokrzyskie' => 'T',
|
||||
'warmińsko-mazurskie' => 'N',
|
||||
'wielkopolskie' => 'P',
|
||||
'zachodniopomorskie' => 'Z',
|
||||
'dolnośląskie' => ['D', 'V'],
|
||||
'kujawsko-pomorskie' => ['C'],
|
||||
'lubelskie' => ['L'],
|
||||
'lubuskie' => ['F'],
|
||||
'łódzkie' => ['E'],
|
||||
'małopolskie' => ['K', 'J'],
|
||||
'mazowieckie' => ['W', 'A'],
|
||||
'opolskie' => ['O'],
|
||||
'podkarpackie' => ['R', 'Y'],
|
||||
'podlaskie' => ['B'],
|
||||
'pomorskie' => ['G', 'X'],
|
||||
'śląskie' => ['S', 'I'],
|
||||
'świętokrzyskie' => ['T'],
|
||||
'warmińsko-mazurskie' => ['N'],
|
||||
'wielkopolskie' => ['P', 'M'],
|
||||
'zachodniopomorskie' => ['Z'],
|
||||
];
|
||||
|
||||
/**
|
||||
* @var array list of special vehicle registration number prefixes.
|
||||
*/
|
||||
protected static $specials = [
|
||||
'army' => 'U',
|
||||
'services' => 'H',
|
||||
'army' => ['U'],
|
||||
'services' => ['H'],
|
||||
];
|
||||
|
||||
/**
|
||||
* @var array list of Polish counties and respective vehicle registration number prefixes.
|
||||
*/
|
||||
protected static $counties = [
|
||||
'D' => [
|
||||
'dolnośląskie' => [
|
||||
'Jelenia Góra' => ['J'],
|
||||
'Legnica' => ['L'],
|
||||
'Wałbrzych' => ['B'],
|
||||
@@ -77,7 +77,7 @@ class LicensePlate extends Base
|
||||
'zgorzelecki' => ['ZG'],
|
||||
'złotoryjski' => ['ZL'],
|
||||
],
|
||||
'C' => [
|
||||
'kujawsko-pomorskie' => [
|
||||
'Bydgoszcz' => ['B'],
|
||||
'Grudziądz' => ['G'],
|
||||
'Toruń' => ['T'],
|
||||
@@ -102,7 +102,7 @@ class LicensePlate extends Base
|
||||
'włocławski' => ['WL'],
|
||||
'żniński' => ['ZN'],
|
||||
],
|
||||
'L' => [
|
||||
'lubelskie' => [
|
||||
'Biała Podlaska' => ['B'],
|
||||
'Chełm' => ['C'],
|
||||
'Lublin' => ['U'],
|
||||
@@ -128,7 +128,7 @@ class LicensePlate extends Base
|
||||
'włodawski' => ['WL'],
|
||||
'zamojski' => ['ZA'],
|
||||
],
|
||||
'F' => [
|
||||
'lubuskie' => [
|
||||
'Gorzów Wielkopolski' => ['G'],
|
||||
'Zielona Góra' => ['Z'],
|
||||
'gorzowski' => ['GW'],
|
||||
@@ -144,8 +144,8 @@ class LicensePlate extends Base
|
||||
'żagański' => ['ZG'],
|
||||
'żarski' => ['ZA'],
|
||||
],
|
||||
'E' => [
|
||||
'Łódź' => ['L'],
|
||||
'łódzkie' => [
|
||||
'Łódź' => ['L', 'D'],
|
||||
'Piotrków Trybunalski' => ['P'],
|
||||
'Skierniewice' => ['S'],
|
||||
'brzeziński' => ['BR'],
|
||||
@@ -170,8 +170,8 @@ class LicensePlate extends Base
|
||||
'zduńskowolski' => ['ZD'],
|
||||
'zgierski' => ['ZG'],
|
||||
],
|
||||
'K' => [
|
||||
'Kraków' => ['R'],
|
||||
'małopolskie' => [
|
||||
'Kraków' => ['R', 'K'],
|
||||
'Nowy Sącz' => ['N'],
|
||||
'Tarnów' => ['T'],
|
||||
'bocheński' => ['BA', 'BC'],
|
||||
@@ -179,7 +179,7 @@ class LicensePlate extends Base
|
||||
'chrzanowski' => ['CH'],
|
||||
'dąbrowski' => ['DA'],
|
||||
'gorlicki' => ['GR'],
|
||||
'krakowski' => ['RA'],
|
||||
'krakowski' => ['RA', 'RK'],
|
||||
'limanowski' => ['LI'],
|
||||
'miechowski' => ['MI'],
|
||||
'myślenicki' => ['MY'],
|
||||
@@ -194,7 +194,7 @@ class LicensePlate extends Base
|
||||
'wadowicki' => ['WA'],
|
||||
'wielicki' => ['WI'],
|
||||
],
|
||||
'W' => [
|
||||
'mazowieckie' => [
|
||||
'Ostrołęka' => ['O'],
|
||||
'Płock' => ['P'],
|
||||
'Radom' => ['R'],
|
||||
@@ -216,7 +216,7 @@ class LicensePlate extends Base
|
||||
'ostrołęcki' => ['OS'],
|
||||
'ostrowski' => ['OR'],
|
||||
'otwocki' => ['OT'],
|
||||
'piaseczyński' => ['PA', 'PI'],
|
||||
'piaseczyński' => ['PA', 'PI', 'PW', 'PX'],
|
||||
'płocki' => ['PL'],
|
||||
'płoński' => ['PN'],
|
||||
'pruszkowski' => ['PP', 'PR', 'PS'],
|
||||
@@ -238,7 +238,7 @@ class LicensePlate extends Base
|
||||
'żuromiński' => ['ZU'],
|
||||
'żyrardowski' => ['ZY'],
|
||||
],
|
||||
'O' => [
|
||||
'opolskie' => [
|
||||
'Opole' => ['P'],
|
||||
'brzeski' => ['B'],
|
||||
'głubczycki' => ['GL'],
|
||||
@@ -252,7 +252,7 @@ class LicensePlate extends Base
|
||||
'prudnicki' => ['PR'],
|
||||
'strzelecki' => ['ST'],
|
||||
],
|
||||
'R' => [
|
||||
'podkarpackie' => [
|
||||
'Krosno' => ['K'],
|
||||
'Przemyśl' => ['P'],
|
||||
'Rzeszów' => ['Z'],
|
||||
@@ -273,18 +273,18 @@ class LicensePlate extends Base
|
||||
'przemyski' => ['PR'],
|
||||
'przeworski' => ['PZ'],
|
||||
'ropczycko-sędziszowski' => ['RS'],
|
||||
'rzeszowski' => ['ZE'],
|
||||
'rzeszowski' => ['ZE', 'ZR', 'ZZ'],
|
||||
'sanocki' => ['SA'],
|
||||
'stalowowolski' => ['ST'],
|
||||
'strzyżowski' => ['SR'],
|
||||
'tarnobrzeski' => ['TA'],
|
||||
],
|
||||
'B' => [
|
||||
'podlaskie' => [
|
||||
'Białystok' => ['I'],
|
||||
'Łomża' => ['L'],
|
||||
'Suwałki' => ['S'],
|
||||
'augustowski' => ['AU'],
|
||||
'białostocki' => ['IA'],
|
||||
'białostocki' => ['IA', 'IB'],
|
||||
'bielski' => ['BI'],
|
||||
'grajewski' => ['GR'],
|
||||
'hajnowski' => ['HA'],
|
||||
@@ -298,7 +298,7 @@ class LicensePlate extends Base
|
||||
'wysokomazowiecki' => ['WM'],
|
||||
'zambrowski' => ['ZA'],
|
||||
],
|
||||
'G' => [
|
||||
'pomorskie' => [
|
||||
'Gdańsk' => ['D'],
|
||||
'Gdynia' => ['A'],
|
||||
'Słupsk' => ['S'],
|
||||
@@ -307,7 +307,7 @@ class LicensePlate extends Base
|
||||
'chojnicki' => ['CH'],
|
||||
'człuchowski' => ['CZ'],
|
||||
'gdański' => ['DA'],
|
||||
'kartuski' => ['KY', 'KA'],
|
||||
'kartuski' => ['KA', 'KY', 'KZ'],
|
||||
'kościerski' => ['KS'],
|
||||
'kwidzyński' => ['KW'],
|
||||
'lęborski' => ['LE'],
|
||||
@@ -320,7 +320,7 @@ class LicensePlate extends Base
|
||||
'tczewski' => ['TC'],
|
||||
'wejherowski' => ['WE', 'WO'],
|
||||
],
|
||||
'S' => [
|
||||
'śląskie' => [
|
||||
'Bielsko-Biała' => ['B'],
|
||||
'Bytom' => ['Y'],
|
||||
'Chorzów' => ['H'],
|
||||
@@ -340,9 +340,9 @@ class LicensePlate extends Base
|
||||
'Tychy' => ['T'],
|
||||
'Zabrze' => ['Z'],
|
||||
'Żory' => ['ZO'],
|
||||
'będziński' => ['BE'],
|
||||
'będziński' => ['BE', 'BN', 'E'],
|
||||
'bielski' => ['BI'],
|
||||
'cieszyński' => ['CN', 'CI'],
|
||||
'cieszyński' => ['CI', 'CN'],
|
||||
'częstochowski' => ['CZ'],
|
||||
'gliwicki' => ['GL'],
|
||||
'kłobucki' => ['KL'],
|
||||
@@ -358,7 +358,7 @@ class LicensePlate extends Base
|
||||
'zawierciański' => ['ZA'],
|
||||
'żywiecki' => ['ZY'],
|
||||
],
|
||||
'T' => [
|
||||
'świętokrzyskie' => [
|
||||
'Kielce' => ['K'],
|
||||
'buski' => ['BU'],
|
||||
'jędrzejowski' => ['JE'],
|
||||
@@ -374,7 +374,7 @@ class LicensePlate extends Base
|
||||
'staszowski' => ['SZ'],
|
||||
'włoszczowski' => ['LW'],
|
||||
],
|
||||
'N' => [
|
||||
'warmińsko-mazurskie' => [
|
||||
'Elbląg' => ['E'],
|
||||
'Olsztyn' => ['O'],
|
||||
'bartoszycki' => ['BA'],
|
||||
@@ -397,7 +397,7 @@ class LicensePlate extends Base
|
||||
'szczycieński' => ['SZ'],
|
||||
'węgorzewski' => ['WE'],
|
||||
],
|
||||
'P' => [
|
||||
'wielkopolskie' => [
|
||||
'Kalisz' => ['A', 'K'],
|
||||
'Konin' => ['KO', 'N'],
|
||||
'Leszno' => ['L'],
|
||||
@@ -434,7 +434,7 @@ class LicensePlate extends Base
|
||||
'wrzesiński' => ['WR'],
|
||||
'złotowski' => ['ZL'],
|
||||
],
|
||||
'Z' => [
|
||||
'zachodniopomorskie' => [
|
||||
'Koszalin' => ['K'],
|
||||
'Szczecin' => ['S', 'Z'],
|
||||
'Świnoujście' => ['SW'],
|
||||
@@ -457,10 +457,10 @@ class LicensePlate extends Base
|
||||
'świdwiński' => ['SD'],
|
||||
'wałecki' => ['WA'],
|
||||
],
|
||||
'U' => [
|
||||
'army' => [
|
||||
'Siły Zbrojne Rzeczypospolitej Polskiej' => ['A', 'B', 'C', 'D', 'E', 'G', 'I', 'J', 'K', 'L'],
|
||||
],
|
||||
'H' => [
|
||||
'services' => [
|
||||
'Centralne Biuro Antykorupcyjne' => ['A'],
|
||||
'Służba Ochrony Państwa' => ['BA', 'BB', 'BE', 'BF', 'BG'],
|
||||
'Służba Celno-Skarbowa' => ['CA', 'CB', 'CC', 'CD', 'CE', 'CF', 'CG', 'CH', 'CJ', 'CK', 'CL', 'CM', 'CN', 'CO', 'CP', 'CR'],
|
||||
@@ -514,12 +514,13 @@ class LicensePlate extends Base
|
||||
?array $counties = null
|
||||
): string {
|
||||
$voivodeshipsAvailable = static::$voivodeships + ($special ? static::$specials : []);
|
||||
$voivodeshipCode = static::selectRandomArea($voivodeshipsAvailable, $voivodeships);
|
||||
$voivodeshipSelected = static::selectRandomArea($voivodeshipsAvailable, $voivodeships);
|
||||
$voivodeshipCode = static::randomElement($voivodeshipsAvailable[$voivodeshipSelected]);
|
||||
|
||||
$countiesAvailable = static::$counties[$voivodeshipCode];
|
||||
$countiesAvailable = static::$counties[$voivodeshipSelected];
|
||||
$countySelected = self::selectRandomArea($countiesAvailable, $counties);
|
||||
|
||||
$countyCode = static::randomElement($countySelected);
|
||||
$countyCode = static::randomElement(static::$counties[$voivodeshipSelected][$countySelected]);
|
||||
|
||||
$suffix = static::regexify(static::randomElement(strlen($countyCode) === 1 ? static::$plateSuffixesGroup1 : static::$plateSuffixesGroup2));
|
||||
|
||||
@@ -528,6 +529,8 @@ class LicensePlate extends Base
|
||||
|
||||
/**
|
||||
* Selects random area from the list of available and requested.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
protected static function selectRandomArea(array $available, ?array $requested)
|
||||
{
|
||||
@@ -537,6 +540,6 @@ class LicensePlate extends Base
|
||||
$requested = array_keys($available);
|
||||
}
|
||||
|
||||
return $available[static::randomElement($requested)];
|
||||
return static::randomElement($requested);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ class PhoneNumber extends \Faker\Provider\PhoneNumber
|
||||
['landline', null],
|
||||
]);
|
||||
|
||||
return call_user_func("static::{$options[0]}", $formatted, $options[1]);
|
||||
return call_user_func([static::class, $options[0]], $formatted, $options[1]);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -135,7 +135,7 @@ class PhoneNumber extends \Faker\Provider\PhoneNumber
|
||||
{
|
||||
$method = static::randomElement(['cellphoneNumber', 'landlineNumber']);
|
||||
|
||||
return call_user_func("static::$method", true);
|
||||
return call_user_func([static::class, $method], true);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -145,6 +145,6 @@ class PhoneNumber extends \Faker\Provider\PhoneNumber
|
||||
{
|
||||
$method = static::randomElement(['cellphoneNumber', 'landlineNumber']);
|
||||
|
||||
return call_user_func("static::$method", false);
|
||||
return call_user_func([static::class, $method], false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,52 +5,52 @@ namespace Faker\Provider\pt_BR;
|
||||
class Text extends \Faker\Provider\Text
|
||||
{
|
||||
/**
|
||||
* The Project Gutenberg EBook of Dom Casmurro, by Machado de Assis
|
||||
* The Project Gutenberg EBook of Dom Casmurro, by Machado de Assis
|
||||
*
|
||||
* This eBook is for the use of anyone anywhere in the United States and most
|
||||
* other parts of the world at no cost and with almost no restrictions
|
||||
* whatsoever. You may copy it, give it away or re-use it under the terms of
|
||||
* the Project Gutenberg License included with this eBook or online at
|
||||
* www.gutenberg.org. If you are not located in the United States, you'll have
|
||||
* to check the laws of the country where you are located before using this ebook.
|
||||
* This eBook is for the use of anyone anywhere in the United States and most
|
||||
* other parts of the world at no cost and with almost no restrictions
|
||||
* whatsoever. You may copy it, give it away or re-use it under the terms of
|
||||
* the Project Gutenberg License included with this eBook or online at
|
||||
* www.gutenberg.org. If you are not located in the United States, you'll have
|
||||
* to check the laws of the country where you are located before using this ebook.
|
||||
*
|
||||
* Title: Dom Casmurro
|
||||
* Title: Dom Casmurro
|
||||
*
|
||||
* Author: Machado de Assis
|
||||
* Author: Machado de Assis
|
||||
*
|
||||
* Release Date: October 15, 2017 [EBook #55752]
|
||||
* Release Date: October 15, 2017 [EBook #55752]
|
||||
*
|
||||
* Language: Portuguese
|
||||
* Language: Portuguese
|
||||
*
|
||||
* *** START OF THIS PROJECT GUTENBERG EBOOK DOM CASMURRO ***
|
||||
* *** START OF THIS PROJECT GUTENBERG EBOOK DOM CASMURRO ***
|
||||
*
|
||||
* Produced by Laura Natal Rodriguez & Marc D'Hooghe at Free
|
||||
* Literature (online soon in an extended version,also linking
|
||||
* to free sources for education worldwide ... MOOC's,
|
||||
* educational materials,...) (Images generously made available
|
||||
* by the Bibliotheca Nacional Digital Brasil.)
|
||||
* Produced by Laura Natal Rodriguez & Marc D'Hooghe at Free
|
||||
* Literature (online soon in an extended version,also linking
|
||||
* to free sources for education worldwide ... MOOC's,
|
||||
* educational materials,...) (Images generously made available
|
||||
* by the Bibliotheca Nacional Digital Brasil.)
|
||||
*
|
||||
* DOM CASMURRO
|
||||
* DOM CASMURRO
|
||||
*
|
||||
* POR
|
||||
* POR
|
||||
*
|
||||
* MACHADO DE ASSIS
|
||||
* MACHADO DE ASSIS
|
||||
*
|
||||
* DA ACADEMIA BRAZILEIRA
|
||||
* DA ACADEMIA BRAZILEIRA
|
||||
*
|
||||
* H. GARNIER, LIVREIRO-EDITOR
|
||||
* H. GARNIER, LIVREIRO-EDITOR
|
||||
*
|
||||
* RUA MOREIRA CEZAR, 71
|
||||
* RUA MOREIRA CEZAR, 71
|
||||
*
|
||||
* RIO DE JANEIRO
|
||||
* RIO DE JANEIRO
|
||||
*
|
||||
* 6, RUE DES SAINTS-PÈRES, 6
|
||||
* 6, RUE DES SAINTS-PÈRES, 6
|
||||
*
|
||||
* PARIZ
|
||||
* PARIZ
|
||||
*
|
||||
* @see https://www.gutenberg.org/cache/epub/55752/pg55752.txt
|
||||
* @see https://www.gutenberg.org/cache/epub/55752/pg55752.txt
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
*/
|
||||
protected static $baseText = <<<'EOT'
|
||||
I
|
||||
|
||||
@@ -163,12 +163,12 @@ class Person extends \Faker\Provider\Person
|
||||
switch (count($dateOfBirthParts)) {
|
||||
case 1:
|
||||
$dateOfBirthParts[] = $baseDate->format('m');
|
||||
//don't break, we need the day also
|
||||
// no break
|
||||
//don't break, we need the day also
|
||||
// no break
|
||||
case 2:
|
||||
$dateOfBirthParts[] = $baseDate->format('d');
|
||||
//don't break, next line will
|
||||
// no break
|
||||
//don't break, next line will
|
||||
// no break
|
||||
case 3:
|
||||
break;
|
||||
|
||||
@@ -182,6 +182,7 @@ class Person extends \Faker\Provider\Person
|
||||
|
||||
$dateOfBirthFinal = implode('-', $dateOfBirthParts);
|
||||
$date = \DateTime::createFromFormat('Y-m-d', $dateOfBirthFinal);
|
||||
|
||||
//a full (invalid) date might have been supplied, check if it converts
|
||||
if ($date->format('Y-m-d') !== $dateOfBirthFinal) {
|
||||
throw new \InvalidArgumentException("Invalid date of birth - '{$date->format('Y-m-d')}' generated based on '{$dateOfBirth}' received");
|
||||
|
||||
@@ -44,6 +44,7 @@ class Company extends \Faker\Provider\Company
|
||||
|
||||
/**
|
||||
* @see https://ru.wikipedia.org/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%9F%D1%80%D0%BE%D1%84%D0%B5%D1%81%D1%81%D0%B8%D0%B8
|
||||
*
|
||||
* @note Randomly took from this list - some jobs titles for each letter
|
||||
*/
|
||||
protected static $jobTitleFormat = [
|
||||
|
||||
@@ -5,8 +5,8 @@ namespace Faker\Provider\ru_RU;
|
||||
class Person extends \Faker\Provider\Person
|
||||
{
|
||||
protected static $maleNameFormats = [
|
||||
'{{firstNameMale}} {{middleNameMale}} {{lastName}}',
|
||||
'{{lastName}} {{firstNameMale}} {{middleNameMale}}',
|
||||
'{{firstNameMale}} {{middleNameMale}} {{lastNameMale}}',
|
||||
'{{lastNameMale}} {{firstNameMale}} {{middleNameMale}}',
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -14,8 +14,8 @@ class Person extends \Faker\Provider\Person
|
||||
* That list of MALE last names could be safely extended to FEMALE list just by adding 'a' letter at the end
|
||||
*/
|
||||
protected static $femaleNameFormats = [
|
||||
'{{firstNameFemale}} {{middleNameFemale}} {{lastName}}а',
|
||||
'{{lastName}}а {{firstNameFemale}} {{middleNameFemale}}',
|
||||
'{{firstNameFemale}} {{middleNameFemale}} {{lastNameFemale}}',
|
||||
'{{lastNameFemale}} {{firstNameFemale}} {{middleNameFemale}}',
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -165,16 +165,24 @@ class Person extends \Faker\Provider\Person
|
||||
*/
|
||||
public function lastName($gender = null)
|
||||
{
|
||||
$lastName = static::randomElement(static::$lastName);
|
||||
|
||||
if (static::GENDER_FEMALE === $gender) {
|
||||
return $lastName . 'а';
|
||||
return $this->lastNameFemale();
|
||||
}
|
||||
|
||||
if (static::GENDER_MALE === $gender) {
|
||||
return $lastName;
|
||||
return $this->lastNameMale();
|
||||
}
|
||||
|
||||
return $lastName . static::randomElement(static::$lastNameSuffix);
|
||||
return static::randomElement(static::$lastName) . static::randomElement(static::$lastNameSuffix);
|
||||
}
|
||||
|
||||
public function lastNameMale(): string
|
||||
{
|
||||
return static::randomElement(static::$lastName);
|
||||
}
|
||||
|
||||
public function lastNameFemale(): string
|
||||
{
|
||||
return static::randomElement(static::$lastName) . 'а';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ class Person extends \Faker\Provider\Person
|
||||
'Vlastimil', 'Boleslav', 'Eduard', 'Jozef', 'Víťazoslav', 'Blahoslav', 'Beňadik', 'Adrián', 'Gabriel', 'Marián', 'Emanuel', 'Miroslav',
|
||||
'Benjamín', 'Hugo', 'Richard', 'Izidor', 'Zoltán', 'Albert', 'Igor', 'Július', 'Aleš', 'Fedor', 'Rudolf', 'Valér', 'Marcel', 'Ervín',
|
||||
'Slavomír', 'Vojtech', 'Juraj', 'Marek', 'Jaroslav', 'Žigmund', 'Florián', 'Roland', 'Pankrác', 'Servác', 'Bonifác', 'Svetozár', 'Bernard',
|
||||
'Júlia', 'Urban', 'Dušan', 'Viliam', 'Ferdinand', 'Norbert', 'Róbert', 'Medard', 'Zlatko', 'Anton', 'Vasil', 'Vít', 'Adolf', 'Vratislav',
|
||||
'Júlia', 'Urban', 'Dušan', 'Viliam', 'Ferdinand', 'Norbert', 'Róbert', 'Medard', 'Zlatko', 'Anton', 'Vasil', 'Vít', 'Vratislav',
|
||||
'Alfréd', 'Alojz', 'Ján', 'Tadeáš', 'Ladislav', 'Peter', 'Pavol', 'Miloslav', 'Prokop', 'Cyril', 'Metod', 'Patrik', 'Oliver', 'Ivan',
|
||||
'Kamil', 'Henrich', 'Drahomír', 'Bohuslav', 'Iľja', 'Daniel', 'Vladimír', 'Jakub', 'Krištof', 'Ignác', 'Gustáv', 'Jerguš', 'Dominik',
|
||||
'Oskar', 'Vavrinec', 'Ľubomír', 'Mojmír', 'Leonard', 'Tichomír', 'Filip', 'Bartolomej', 'Ľudovít', 'Samuel', 'Augustín', 'Belo', 'Oleg',
|
||||
|
||||
@@ -25,7 +25,7 @@ class Person extends \Faker\Provider\Person
|
||||
* @see http://www.stat.si/doc/vsebina/05/imena/TOPIMENA_SI.xlsx
|
||||
*/
|
||||
protected static $firstNameMale = [
|
||||
'Adam', 'Adolf', 'Albert', 'Albin', 'Aleks', 'Aleksandar', 'Aleksander', 'Aleksej', 'Alen',
|
||||
'Adam', 'Albert', 'Albin', 'Aleks', 'Aleksandar', 'Aleksander', 'Aleksej', 'Alen',
|
||||
'Alex', 'Aleš', 'Aljaž', 'Aljoša', 'Alojz', 'Alojzij', 'Andraž', 'Andrej', 'Anej', 'Anton',
|
||||
'Anže', 'Avgust', 'Ažbe', 'Benjamin', 'Bernard', 'Bine', 'Blaž', 'Bogdan', 'Bogomir',
|
||||
'Bojan', 'Bor', 'Boris', 'Borut', 'Boštjan', 'Božidar', 'Branko', 'Brin', 'Bruno', 'Ciril',
|
||||
|
||||
@@ -59,7 +59,7 @@ class Person extends \Faker\Provider\Person
|
||||
* @see http://spraakbanken.gu.se/statistik/lbfnamnalf.phtml
|
||||
*/
|
||||
protected static $firstNameMale = [
|
||||
'Abraham', 'Adam', 'Adolf', 'Adrian', 'Agaton', 'Agne', 'Albert', 'Albin', 'Aldor', 'Alex', 'Alexander', 'Alexis', 'Alexius', 'Alf', 'Alfons', 'Alfred', 'Algot', 'Allan', 'Alrik', 'Alvar', 'Alve', 'Amandus', 'Anders', 'André', 'Andreas', 'Anselm', 'Anshelm', 'Antero', 'Anton', 'Antonius', 'Arne', 'Arnold', 'Aron', 'Arthur', 'Artur', 'Arvid', 'Assar', 'Astor', 'August', 'Augustin', 'Axel',
|
||||
'Abraham', 'Adam', 'Adrian', 'Agaton', 'Agne', 'Albert', 'Albin', 'Aldor', 'Alex', 'Alexander', 'Alexis', 'Alexius', 'Alf', 'Alfons', 'Alfred', 'Algot', 'Allan', 'Alrik', 'Alvar', 'Alve', 'Amandus', 'Anders', 'André', 'Andreas', 'Anselm', 'Anshelm', 'Antero', 'Anton', 'Antonius', 'Arne', 'Arnold', 'Aron', 'Arthur', 'Artur', 'Arvid', 'Assar', 'Astor', 'August', 'Augustin', 'Axel',
|
||||
'Bengt', 'Bengt-Göran', 'Bengt-Olof', 'Bengt-Åke', 'Benny', 'Berndt', 'Berne', 'Bernhard', 'Bernt', 'Bert', 'Berth', 'Berthold', 'Bertil', 'Bill', 'Billy', 'Birger', 'Bjarne', 'Björn', 'Bo', 'Boris', 'Bror', 'Bruno', 'Brynolf', 'Börje',
|
||||
'Carl', 'Carl-Axel', 'Carl-Erik', 'Carl-Gustaf', 'Carl-Gustav', 'Carl-Johan', 'Charles', 'Christer', 'Christian', 'Claes', 'Claes-Göran', 'Clarence', 'Clas', 'Conny', 'Crister', 'Curt',
|
||||
'Dag', 'Dan', 'Daniel', 'David', 'Dennis', 'Dick', 'Donald', 'Douglas',
|
||||
@@ -121,8 +121,7 @@ class Person extends \Faker\Provider\Person
|
||||
*
|
||||
* @see http://en.wikipedia.org/wiki/Personal_identity_number_(Sweden)
|
||||
*
|
||||
* @param \DateTime $birthdate
|
||||
* @param string $gender Person::GENDER_MALE || Person::GENDER_FEMALE
|
||||
* @param string $gender Person::GENDER_MALE || Person::GENDER_FEMALE
|
||||
*
|
||||
* @return string on format XXXXXX-XXXX
|
||||
*/
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
|
||||
namespace Faker\Provider\sv_SE;
|
||||
|
||||
/**
|
||||
* @see https://www.pts.se/sv/bransch/telefoni/nummer-och-adressering/telefoninummerplanen/telefonnummers-struktur/
|
||||
*/
|
||||
class PhoneNumber extends \Faker\Provider\PhoneNumber
|
||||
{
|
||||
/**
|
||||
@@ -34,4 +37,28 @@ class PhoneNumber extends \Faker\Provider\PhoneNumber
|
||||
'+46(0)%######',
|
||||
'+46%######',
|
||||
];
|
||||
|
||||
/**
|
||||
* @var array<int, string> Swedish mobile number formats
|
||||
*/
|
||||
protected static array $mobileFormats = [
|
||||
'+467########',
|
||||
'+46(0)7########',
|
||||
'+46 (0)7## ## ## ##',
|
||||
'+46 (0)7## ### ###',
|
||||
'07## ## ## ##',
|
||||
'07## ### ###',
|
||||
'07##-## ## ##',
|
||||
'07##-### ###',
|
||||
'07# ### ## ##',
|
||||
'07#-### ## ##',
|
||||
'07#-#######',
|
||||
];
|
||||
|
||||
public function mobileNumber(): string
|
||||
{
|
||||
$format = static::randomElement(static::$mobileFormats);
|
||||
|
||||
return self::numerify($this->generator->parse($format));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,6 +31,7 @@ class Company extends \Faker\Provider\Company
|
||||
|
||||
/**
|
||||
* @see https://tr.wikipedia.org/wiki/Meslekler_listesi
|
||||
*
|
||||
* @note Randomly took 300 from this list
|
||||
*/
|
||||
protected static $jobTitleFormat = [
|
||||
|
||||
@@ -4,30 +4,183 @@ namespace Faker\Provider\tr_TR;
|
||||
|
||||
class PhoneNumber extends \Faker\Provider\PhoneNumber
|
||||
{
|
||||
/**
|
||||
* Mixed landline and mobile phone numbers valid for Turkey
|
||||
*
|
||||
* @see https://en.wikipedia.org/wiki/Telephone_numbers_in_Turkey
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $formats = [
|
||||
'0212#######',
|
||||
'0216#######',
|
||||
'0222#######',
|
||||
'0224#######',
|
||||
'050########',
|
||||
'053########',
|
||||
'054########',
|
||||
'055########',
|
||||
'0 212 ### ## ##',
|
||||
'0 216 ### ## ##',
|
||||
'0 222 ### ## ##',
|
||||
'0 224 ### ## ##',
|
||||
'0 50# ### ## ##',
|
||||
'0 53# ### ## ##',
|
||||
'0 54# ### ## ##',
|
||||
'0 55# ### ## ##',
|
||||
'0 (212) ### ## ##',
|
||||
'0 (216) ### ## ##',
|
||||
'0 (222) ### ## ##',
|
||||
'0 (224) ### ## ##',
|
||||
'0 (50#) ### ## ##',
|
||||
'0 (53#) ### ## ##',
|
||||
'0 (54#) ### ## ##',
|
||||
'0 (55#) ### ## ##',
|
||||
'+90212#######',
|
||||
'+90216#######',
|
||||
'+90222#######',
|
||||
'+90224#######',
|
||||
'+9050########',
|
||||
'+9053########',
|
||||
'+9054########',
|
||||
'+9055########',
|
||||
'+90 212 ### ## ##',
|
||||
'+90 216 ### ## ##',
|
||||
'+90 222 ### ## ##',
|
||||
'+90 224 ### ## ##',
|
||||
'+90 50# ### ## ##',
|
||||
'+90 53# ### ## ##',
|
||||
'+90 54# ### ## ##',
|
||||
'+90 55# ### ## ##',
|
||||
'+90 (212) ### ## ##',
|
||||
'+90 (216) ### ## ##',
|
||||
'+90 (222) ### ## ##',
|
||||
'+90 (224) ### ## ##',
|
||||
'+90 (50#) ### ## ##',
|
||||
'+90 (53#) ### ## ##',
|
||||
'+90 (54#) ### ## ##',
|
||||
'+90 (55#) ### ## ##',
|
||||
];
|
||||
|
||||
/**
|
||||
* Mixed landline and mobile phone numbers in E164 format valid for Turkey
|
||||
*
|
||||
* @see https://en.wikipedia.org/wiki/Telephone_numbers_in_Turkey
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $e164Formats = [
|
||||
'+90212#######',
|
||||
'+90216#######',
|
||||
'+90222#######',
|
||||
'+90224#######',
|
||||
'+90226#######',
|
||||
'+90228#######',
|
||||
'+90232#######',
|
||||
'+90236#######',
|
||||
'+90242#######',
|
||||
'+90246#######',
|
||||
'+90248#######',
|
||||
'+90252#######',
|
||||
'+90256#######',
|
||||
'+90258#######',
|
||||
'+90262#######',
|
||||
'+90264#######',
|
||||
'+90266#######',
|
||||
'+90272#######',
|
||||
'+90274#######',
|
||||
'+90276#######',
|
||||
'+90282#######',
|
||||
'+90284#######',
|
||||
'+90286#######',
|
||||
'+90288#######',
|
||||
'+90312#######',
|
||||
'+90318#######',
|
||||
'+90322#######',
|
||||
'+90324#######',
|
||||
'+90326#######',
|
||||
'+90328#######',
|
||||
'+90332#######',
|
||||
'+90338#######',
|
||||
'+90342#######',
|
||||
'+90344#######',
|
||||
'+90346#######',
|
||||
'+90348#######',
|
||||
'+90352#######',
|
||||
'+90354#######',
|
||||
'+90356#######',
|
||||
'+90358#######',
|
||||
'+90362#######',
|
||||
'+90364#######',
|
||||
'+90366#######',
|
||||
'+90368#######',
|
||||
'+90370#######',
|
||||
'+90372#######',
|
||||
'+90374#######',
|
||||
'+90376#######',
|
||||
'+90378#######',
|
||||
'+90380#######',
|
||||
'+90382#######',
|
||||
'+90384#######',
|
||||
'+90386#######',
|
||||
'+90388#######',
|
||||
'+90412#######',
|
||||
'+90414#######',
|
||||
'+90416#######',
|
||||
'+90422#######',
|
||||
'+90424#######',
|
||||
'+90426#######',
|
||||
'+90428#######',
|
||||
'+90432#######',
|
||||
'+90434#######',
|
||||
'+90436#######',
|
||||
'+90438#######',
|
||||
'+90442#######',
|
||||
'+90446#######',
|
||||
'+90452#######',
|
||||
'+90454#######',
|
||||
'+90456#######',
|
||||
'+90458#######',
|
||||
'+90462#######',
|
||||
'+90464#######',
|
||||
'+90466#######',
|
||||
'+90472#######',
|
||||
'+90474#######',
|
||||
'+90476#######',
|
||||
'+90478#######',
|
||||
'+90482#######',
|
||||
'+90484#######',
|
||||
'+90486#######',
|
||||
'+90488#######',
|
||||
'+90501#######',
|
||||
'+90502#######',
|
||||
'+90503#######',
|
||||
'+90504#######',
|
||||
'+90505#######',
|
||||
'+90506#######',
|
||||
'+90507#######',
|
||||
'+90530#######',
|
||||
'+90531#######',
|
||||
'+90532#######',
|
||||
'+90533#######',
|
||||
'+90534#######',
|
||||
'+90535#######',
|
||||
'+90536#######',
|
||||
'+90537#######',
|
||||
'+90538#######',
|
||||
'+90539#######',
|
||||
'+90541#######',
|
||||
'+90542#######',
|
||||
'+90543#######',
|
||||
'+90544#######',
|
||||
'+90545#######',
|
||||
'+90546#######',
|
||||
'+90549#######',
|
||||
'+90551#######',
|
||||
'+90552#######',
|
||||
'+90553#######',
|
||||
'+90554#######',
|
||||
'+90555#######',
|
||||
'+90556#######',
|
||||
];
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ class Address extends \Faker\Provider\Address
|
||||
'斯威士兰', '瑞典', '瑞士', '叙利亚', '塔吉克斯坦', '坦桑尼亚',
|
||||
'泰国', '阿拉伯联合酋长国', '多哥', '托克劳群岛', '汤加',
|
||||
'特立尼达和多巴哥', '突尼斯', '土耳其', '土库曼斯坦',
|
||||
'特克斯和凯科斯群岛(', '图瓦卢', '美国', '乌干达', '乌克兰',
|
||||
'特克斯和凯科斯群岛', '图瓦卢', '美国', '乌干达', '乌克兰',
|
||||
'英国', '乌拉圭', '乌兹别克斯坦', '瓦努阿图', '梵蒂冈',
|
||||
'委内瑞拉', '越南', '维尔京群岛', '维尔京群岛和圣罗克伊',
|
||||
'威克岛', '瓦里斯和富士那群岛', '西撒哈拉', '也门', '南斯拉夫',
|
||||
|
||||
Reference in New Issue
Block a user