🔧
This commit is contained in:
10
vendor/fakerphp/faker/CHANGELOG.md
vendored
10
vendor/fakerphp/faker/CHANGELOG.md
vendored
@@ -1,6 +1,14 @@
|
||||
# CHANGELOG
|
||||
|
||||
## [Unreleased](https://github.com/FakerPHP/Faker/compare/v1.23.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)
|
||||
|
||||
|
||||
5
vendor/fakerphp/faker/composer.json
vendored
5
vendor/fakerphp/faker/composer.json
vendored
@@ -52,10 +52,5 @@
|
||||
"composer/package-versions-deprecated": true
|
||||
},
|
||||
"sort-packages": true
|
||||
},
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-main": "v1.21-dev"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
227
vendor/fakerphp/faker/psalm.baseline.xml
vendored
227
vendor/fakerphp/faker/psalm.baseline.xml
vendored
@@ -1,227 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<files psalm-version="5.11.0@c9b192ab8400fdaf04b2b13d110575adc879aa90">
|
||||
<file src="src/Faker/Calculator/Luhn.php">
|
||||
<InvalidReturnStatement>
|
||||
<code>0</code>
|
||||
</InvalidReturnStatement>
|
||||
<InvalidReturnType>
|
||||
<code>string</code>
|
||||
</InvalidReturnType>
|
||||
</file>
|
||||
<file src="src/Faker/Generator.php">
|
||||
<InvalidReturnStatement>
|
||||
<code><![CDATA[$this->uniqueGenerator]]></code>
|
||||
<code>new ChanceGenerator($this, $weight, $default)</code>
|
||||
<code>new ValidGenerator($this, $validator, $maxRetries)</code>
|
||||
</InvalidReturnStatement>
|
||||
<InvalidReturnType>
|
||||
<code>self</code>
|
||||
<code>self</code>
|
||||
<code>self</code>
|
||||
</InvalidReturnType>
|
||||
</file>
|
||||
<file src="src/Faker/ORM/CakePHP/EntityPopulator.php">
|
||||
<UndefinedClass>
|
||||
<code>TableRegistry</code>
|
||||
</UndefinedClass>
|
||||
</file>
|
||||
<file src="src/Faker/ORM/Doctrine/EntityPopulator.php">
|
||||
<UndefinedClass>
|
||||
<code><![CDATA[$this->class]]></code>
|
||||
<code><![CDATA[$this->class->associationMappings]]></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>
|
||||
<code>createQueryBuilder</code>
|
||||
<code>getAssociationMappings</code>
|
||||
<code>newInstance</code>
|
||||
</UndefinedInterfaceMethod>
|
||||
</file>
|
||||
<file src="src/Faker/ORM/Mandango/EntityPopulator.php">
|
||||
<UndefinedClass>
|
||||
<code>Mandango</code>
|
||||
<code>Mandango</code>
|
||||
</UndefinedClass>
|
||||
</file>
|
||||
<file src="src/Faker/ORM/Mandango/Populator.php">
|
||||
<UndefinedClass>
|
||||
<code><![CDATA[$this->mandango]]></code>
|
||||
<code>Mandango</code>
|
||||
</UndefinedClass>
|
||||
</file>
|
||||
<file src="src/Faker/ORM/Propel/ColumnTypeGuesser.php">
|
||||
<UndefinedClass>
|
||||
<code>\ColumnMap</code>
|
||||
</UndefinedClass>
|
||||
</file>
|
||||
<file src="src/Faker/ORM/Propel/EntityPopulator.php">
|
||||
<UndefinedClass>
|
||||
<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>
|
||||
<code>\Propel</code>
|
||||
</UndefinedClass>
|
||||
<UndefinedDocblockClass>
|
||||
<code>PropelPDO</code>
|
||||
</UndefinedDocblockClass>
|
||||
</file>
|
||||
<file src="src/Faker/ORM/Propel2/ColumnTypeGuesser.php">
|
||||
<UndefinedClass>
|
||||
<code>ColumnMap</code>
|
||||
</UndefinedClass>
|
||||
</file>
|
||||
<file src="src/Faker/ORM/Propel2/EntityPopulator.php">
|
||||
<UndefinedClass>
|
||||
<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>
|
||||
<code>Propel</code>
|
||||
</UndefinedClass>
|
||||
<UndefinedDocblockClass>
|
||||
<code>PropelPDO</code>
|
||||
</UndefinedDocblockClass>
|
||||
</file>
|
||||
<file src="src/Faker/ORM/Spot/EntityPopulator.php">
|
||||
<InvalidReturnStatement>
|
||||
<code><![CDATA[$this->mapper]]></code>
|
||||
</InvalidReturnStatement>
|
||||
<InvalidReturnType>
|
||||
<code>string</code>
|
||||
</InvalidReturnType>
|
||||
<UndefinedClass>
|
||||
<code>$relation</code>
|
||||
<code>$relation</code>
|
||||
<code>BelongsTo</code>
|
||||
<code>Locator</code>
|
||||
<code>Mapper</code>
|
||||
</UndefinedClass>
|
||||
<UndefinedDocblockClass>
|
||||
<code>$locator</code>
|
||||
<code><![CDATA[$this->mapper]]></code>
|
||||
<code><![CDATA[$this->mapper]]></code>
|
||||
<code><![CDATA[$this->mapper]]></code>
|
||||
<code><![CDATA[$this->mapper]]></code>
|
||||
<code><![CDATA[$this->mapper]]></code>
|
||||
<code>Locator</code>
|
||||
<code>Mapper</code>
|
||||
</UndefinedDocblockClass>
|
||||
</file>
|
||||
<file src="src/Faker/ORM/Spot/Populator.php">
|
||||
<UndefinedClass>
|
||||
<code><![CDATA[$this->locator]]></code>
|
||||
<code>Locator</code>
|
||||
</UndefinedClass>
|
||||
<UndefinedDocblockClass>
|
||||
<code>Locator</code>
|
||||
</UndefinedDocblockClass>
|
||||
</file>
|
||||
<file src="src/Faker/Provider/Base.php">
|
||||
<InvalidArgument>
|
||||
<code>[static::class, 'randomDigit']</code>
|
||||
</InvalidArgument>
|
||||
<UndefinedClass>
|
||||
<code>\UnitEnum</code>
|
||||
<code>\UnitEnum</code>
|
||||
</UndefinedClass>
|
||||
<UndefinedDocblockClass>
|
||||
<code>Closure</code>
|
||||
</UndefinedDocblockClass>
|
||||
<UndefinedFunction>
|
||||
<code>enum_exists($array)</code>
|
||||
<code>enum_exists($array)</code>
|
||||
</UndefinedFunction>
|
||||
</file>
|
||||
<file src="src/Faker/Provider/Biased.php">
|
||||
<InvalidParamDefault>
|
||||
<code>callable</code>
|
||||
</InvalidParamDefault>
|
||||
</file>
|
||||
<file src="src/Faker/Provider/File.php">
|
||||
<FalsableReturnStatement>
|
||||
<code>false</code>
|
||||
</FalsableReturnStatement>
|
||||
</file>
|
||||
<file src="src/Faker/Provider/PhoneNumber.php">
|
||||
<InvalidReturnStatement>
|
||||
<code>$imei</code>
|
||||
</InvalidReturnStatement>
|
||||
<InvalidReturnType>
|
||||
<code>int</code>
|
||||
</InvalidReturnType>
|
||||
</file>
|
||||
<file src="src/Faker/Provider/ar_SA/Address.php">
|
||||
<UndefinedPropertyFetch>
|
||||
<code>static::$cityPrefix</code>
|
||||
</UndefinedPropertyFetch>
|
||||
</file>
|
||||
<file src="src/Faker/Provider/cs_CZ/Person.php">
|
||||
<NonStaticSelfCall>
|
||||
<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>
|
||||
<code>$weights[$i]</code>
|
||||
</InvalidArrayOffset>
|
||||
</file>
|
||||
<file src="src/Faker/Provider/is_IS/Person.php">
|
||||
<InvalidArrayOffset>
|
||||
<code>$ref[$i]</code>
|
||||
</InvalidArrayOffset>
|
||||
</file>
|
||||
<file src="src/Faker/Provider/ja_JP/Text.php">
|
||||
<UndefinedMethod>
|
||||
<code>static::split($text)</code>
|
||||
</UndefinedMethod>
|
||||
</file>
|
||||
<file src="src/Faker/Provider/pl_PL/Company.php">
|
||||
<InvalidArrayOffset>
|
||||
<code>$weights[$i]</code>
|
||||
<code>$weights[$i]</code>
|
||||
</InvalidArrayOffset>
|
||||
</file>
|
||||
<file src="src/Faker/Provider/pl_PL/Person.php">
|
||||
<InvalidArrayOffset>
|
||||
<code>$high[$i]</code>
|
||||
<code>$low[$i]</code>
|
||||
<code>$result[$i]</code>
|
||||
<code>$weights[$i + 3]</code>
|
||||
<code>$weights[$i]</code>
|
||||
<code>$weights[$i]</code>
|
||||
</InvalidArrayOffset>
|
||||
<UndefinedDocblockClass>
|
||||
<code>DateTime</code>
|
||||
</UndefinedDocblockClass>
|
||||
</file>
|
||||
<file src="src/Faker/Provider/sl_SI/Person.php">
|
||||
<NonStaticSelfCall>
|
||||
<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,11 +7,9 @@ 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';
|
||||
@@ -34,11 +32,9 @@ class Iban
|
||||
/**
|
||||
* Converts letter to number
|
||||
*
|
||||
* @param string $char
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public static function alphaToNumber($char)
|
||||
public static function alphaToNumber(string $char)
|
||||
{
|
||||
return ord($char) - 55;
|
||||
}
|
||||
@@ -50,7 +46,7 @@ class Iban
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public static function mod97($number)
|
||||
public static function mod97(string $number)
|
||||
{
|
||||
$checksum = (int) $number[0];
|
||||
|
||||
@@ -64,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);
|
||||
}
|
||||
|
||||
@@ -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.');
|
||||
|
||||
@@ -16,9 +16,9 @@ final class Container implements ContainerInterface
|
||||
/**
|
||||
* @var array<string, callable|object|string>
|
||||
*/
|
||||
private $definitions;
|
||||
private array $definitions;
|
||||
|
||||
private $services = [];
|
||||
private array $services = [];
|
||||
|
||||
/**
|
||||
* Create a container object with a set of definitions. The array value MUST
|
||||
@@ -63,7 +63,7 @@ final class Container implements ContainerInterface
|
||||
|
||||
$definition = $this->definitions[$id];
|
||||
|
||||
$service = $this->services[$id] = $this->getService($id, $definition);
|
||||
$service = $this->getService($id, $definition);
|
||||
|
||||
if (!$service instanceof Extension) {
|
||||
throw new \RuntimeException(sprintf(
|
||||
@@ -73,6 +73,8 @@ final class Container implements ContainerInterface
|
||||
));
|
||||
}
|
||||
|
||||
$this->services[$id] = $service;
|
||||
|
||||
return $service;
|
||||
}
|
||||
|
||||
@@ -81,7 +83,7 @@ final class Container implements ContainerInterface
|
||||
*
|
||||
* @param callable|object|string $definition
|
||||
*/
|
||||
private function getService($id, $definition)
|
||||
private function getService(string $id, $definition)
|
||||
{
|
||||
if (is_callable($definition)) {
|
||||
try {
|
||||
@@ -134,12 +136,4 @@ final class Container implements ContainerInterface
|
||||
|
||||
return array_key_exists($id, $this->definitions);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the bindings between Extension interfaces and implementations.
|
||||
*/
|
||||
public function getDefinitions(): array
|
||||
{
|
||||
return $this->definitions;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,14 +5,7 @@ declare(strict_types=1);
|
||||
namespace Faker\Container;
|
||||
|
||||
use Faker\Core;
|
||||
use Faker\Extension\BarcodeExtension;
|
||||
use Faker\Extension\BloodExtension;
|
||||
use Faker\Extension\ColorExtension;
|
||||
use Faker\Extension\DateTimeExtension;
|
||||
use Faker\Extension\FileExtension;
|
||||
use Faker\Extension\NumberExtension;
|
||||
use Faker\Extension\UuidExtension;
|
||||
use Faker\Extension\VersionExtension;
|
||||
use Faker\Extension;
|
||||
|
||||
/**
|
||||
* @experimental This class is experimental and does not fall under our BC promise
|
||||
@@ -22,36 +15,23 @@ final class ContainerBuilder
|
||||
/**
|
||||
* @var array<string, callable|object|string>
|
||||
*/
|
||||
private $definitions = [];
|
||||
private array $definitions = [];
|
||||
|
||||
/**
|
||||
* @param callable|object|string $value
|
||||
* @param callable|object|string $definition
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
*/
|
||||
public function add($value, string $name = null): self
|
||||
public function add(string $id, $definition): self
|
||||
{
|
||||
if (!is_string($value) && !is_callable($value) && !is_object($value)) {
|
||||
if (!is_string($definition) && !is_callable($definition) && !is_object($definition)) {
|
||||
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;
|
||||
$this->definitions[$id] = $definition;
|
||||
|
||||
return $this;
|
||||
}
|
||||
@@ -61,32 +41,28 @@ final class ContainerBuilder
|
||||
return new Container($this->definitions);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get an array with extension that represent the default English
|
||||
* functionality.
|
||||
*/
|
||||
public static function defaultExtensions(): array
|
||||
private static function defaultExtensions(): array
|
||||
{
|
||||
return [
|
||||
BarcodeExtension::class => Core\Barcode::class,
|
||||
BloodExtension::class => Core\Blood::class,
|
||||
ColorExtension::class => Core\Color::class,
|
||||
DateTimeExtension::class => Core\DateTime::class,
|
||||
FileExtension::class => Core\File::class,
|
||||
NumberExtension::class => Core\Number::class,
|
||||
VersionExtension::class => Core\Version::class,
|
||||
UuidExtension::class => Core\Uuid::class,
|
||||
Extension\BarcodeExtension::class => Core\Barcode::class,
|
||||
Extension\BloodExtension::class => Core\Blood::class,
|
||||
Extension\ColorExtension::class => Core\Color::class,
|
||||
Extension\DateTimeExtension::class => Core\DateTime::class,
|
||||
Extension\FileExtension::class => Core\File::class,
|
||||
Extension\NumberExtension::class => Core\Number::class,
|
||||
Extension\UuidExtension::class => Core\Uuid::class,
|
||||
Extension\VersionExtension::class => Core\Version::class,
|
||||
];
|
||||
}
|
||||
|
||||
public static function getDefault(): ContainerInterface
|
||||
public static function withDefaultExtensions(): self
|
||||
{
|
||||
$instance = new self();
|
||||
|
||||
foreach (self::defaultExtensions() as $id => $definition) {
|
||||
$instance->add($definition, $id);
|
||||
$instance->add($id, $definition);
|
||||
}
|
||||
|
||||
return $instance->build();
|
||||
return $instance;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,8 +6,4 @@ use Psr\Container\ContainerInterface as BaseContainerInterface;
|
||||
|
||||
interface ContainerInterface extends BaseContainerInterface
|
||||
{
|
||||
/**
|
||||
* Get the bindings between Extension interfaces and implementations.
|
||||
*/
|
||||
public function getDefinitions(): array;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
51
vendor/fakerphp/faker/src/Faker/Core/Color.php
vendored
51
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',
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ use Faker\Extension\GeneratorAwareExtensionTrait;
|
||||
use Faker\Extension\Helper;
|
||||
|
||||
/**
|
||||
* @experimental
|
||||
* @experimental This class is experimental and does not fall under our BC promise
|
||||
*
|
||||
* @since 1.20.0
|
||||
*/
|
||||
@@ -19,12 +19,9 @@ final class DateTime implements DateTimeExtension, GeneratorAwareExtension
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
private $centuries = ['I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X', 'XI', 'XII', 'XIII', 'XIV', 'XV', 'XVI', 'XVII', 'XVIII', 'XIX', 'XX', 'XXI'];
|
||||
private array $centuries = ['I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X', 'XI', 'XII', 'XIII', 'XIV', 'XV', 'XVI', 'XVII', 'XVIII', 'XIX', 'XX', 'XXI'];
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $defaultTimezone = null;
|
||||
private ?string $defaultTimezone = null;
|
||||
|
||||
/**
|
||||
* Get the POSIX-timestamp of a DateTime, int or string.
|
||||
@@ -33,7 +30,7 @@ final class DateTime implements DateTimeExtension, GeneratorAwareExtension
|
||||
*
|
||||
* @return false|int
|
||||
*/
|
||||
protected function getTimestamp($until = 'now')
|
||||
private function getTimestamp($until = 'now')
|
||||
{
|
||||
if (is_numeric($until)) {
|
||||
return (int) $until;
|
||||
@@ -51,22 +48,12 @@ final class DateTime implements DateTimeExtension, GeneratorAwareExtension
|
||||
*
|
||||
* @param int $timestamp the UNIX / POSIX-compatible timestamp
|
||||
*/
|
||||
protected function getTimestampDateTime(int $timestamp): \DateTime
|
||||
private function getTimestampDateTime(int $timestamp): \DateTime
|
||||
{
|
||||
return new \DateTime('@' . $timestamp);
|
||||
}
|
||||
|
||||
protected function setDefaultTimezone(string $timezone = null): void
|
||||
{
|
||||
$this->defaultTimezone = $timezone;
|
||||
}
|
||||
|
||||
protected function getDefaultTimezone(): ?string
|
||||
{
|
||||
return $this->defaultTimezone;
|
||||
}
|
||||
|
||||
protected function resolveTimezone(?string $timezone): string
|
||||
private function resolveTimezone(?string $timezone): string
|
||||
{
|
||||
if ($timezone !== null) {
|
||||
return $timezone;
|
||||
@@ -78,7 +65,7 @@ final class DateTime implements DateTimeExtension, GeneratorAwareExtension
|
||||
/**
|
||||
* Internal method to set the timezone on a DateTime object.
|
||||
*/
|
||||
protected function setTimezone(\DateTime $dateTime, ?string $timezone): \DateTime
|
||||
private function setTimezone(\DateTime $dateTime, ?string $timezone): \DateTime
|
||||
{
|
||||
$timezone = $this->resolveTimezone($timezone);
|
||||
|
||||
|
||||
@@ -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',
|
||||
|
||||
12
vendor/fakerphp/faker/src/Faker/Core/Number.php
vendored
12
vendor/fakerphp/faker/src/Faker/Core/Number.php
vendored
@@ -21,12 +21,12 @@ final class Number implements Extension\NumberExtension
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
19
vendor/fakerphp/faker/src/Faker/Core/Uuid.php
vendored
19
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);
|
||||
|
||||
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
|
||||
|
||||
@@ -83,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
|
||||
|
||||
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;
|
||||
|
||||
20
vendor/fakerphp/faker/src/Faker/Generator.php
vendored
20
vendor/fakerphp/faker/src/Faker/Generator.php
vendored
@@ -279,7 +279,7 @@ use Faker\Container\ContainerInterface;
|
||||
*
|
||||
* @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 Faker\Container\ContainerInterface;
|
||||
*
|
||||
* @property string $lastName
|
||||
*
|
||||
* @method string lastName()
|
||||
* @method string lastName($gender = null)
|
||||
*
|
||||
* @property string $title
|
||||
*
|
||||
@@ -567,7 +567,7 @@ class Generator
|
||||
|
||||
public function __construct(ContainerInterface $container = null)
|
||||
{
|
||||
$this->container = $container ?: Container\ContainerBuilder::getDefault();
|
||||
$this->container = $container ?: Container\ContainerBuilder::withDefaultExtensions()->build();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -687,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);
|
||||
|
||||
@@ -491,7 +491,7 @@ class Base
|
||||
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));
|
||||
@@ -576,6 +576,7 @@ 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);
|
||||
|
||||
@@ -123,6 +123,7 @@ class Image extends Base
|
||||
);
|
||||
|
||||
$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));
|
||||
|
||||
@@ -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áš',
|
||||
@@ -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;
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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.'];
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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#####
|
||||
*/
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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) . 'а';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
@@ -101,7 +101,7 @@ class Address extends \Faker\Provider\Address
|
||||
'斯威士兰', '瑞典', '瑞士', '叙利亚', '塔吉克斯坦', '坦桑尼亚',
|
||||
'泰国', '阿拉伯联合酋长国', '多哥', '托克劳群岛', '汤加',
|
||||
'特立尼达和多巴哥', '突尼斯', '土耳其', '土库曼斯坦',
|
||||
'特克斯和凯科斯群岛(', '图瓦卢', '美国', '乌干达', '乌克兰',
|
||||
'特克斯和凯科斯群岛', '图瓦卢', '美国', '乌干达', '乌克兰',
|
||||
'英国', '乌拉圭', '乌兹别克斯坦', '瓦努阿图', '梵蒂冈',
|
||||
'委内瑞拉', '越南', '维尔京群岛', '维尔京群岛和圣罗克伊',
|
||||
'威克岛', '瓦里斯和富士那群岛', '西撒哈拉', '也门', '南斯拉夫',
|
||||
|
||||
Reference in New Issue
Block a user