file cleanup
This commit is contained in:
22
vendor/fzaninotto/faker/.travis/xdebug.sh
vendored
Normal file
22
vendor/fzaninotto/faker/.travis/xdebug.sh
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# The problem is that we do not want to remove the configuration file, just disable it for a few tasks, then enable it
|
||||
#
|
||||
# For reference, see
|
||||
#
|
||||
# - https://docs.travis-ci.com/user/languages/php#Disabling-preinstalled-PHP-extensions
|
||||
# - https://docs.travis-ci.com/user/languages/php#Custom-PHP-configuration
|
||||
|
||||
config="/home/travis/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini"
|
||||
|
||||
function xdebug-disable() {
|
||||
if [[ -f $config ]]; then
|
||||
mv $config "$config.bak"
|
||||
fi
|
||||
}
|
||||
|
||||
function xdebug-enable() {
|
||||
if [[ -f "$config.bak" ]]; then
|
||||
mv "$config.bak" $config
|
||||
fi
|
||||
}
|
||||
10
vendor/fzaninotto/faker/CHANGELOG.md
vendored
10
vendor/fzaninotto/faker/CHANGELOG.md
vendored
@@ -1,5 +1,15 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 2019-12-03, v1.9.1
|
||||
|
||||
- Add link to PHPStan extension to readme [\#1834](https://github.com/fzaninotto/Faker/pull/1834) ([finwe](https://github.com/finwe))
|
||||
- Enhancement: Collect code coverage [\#1824](https://github.com/fzaninotto/Faker/pull/1824) ([localheinz](https://github.com/localheinz))
|
||||
- Enhancement: Use all columns when running tests [\#1823](https://github.com/fzaninotto/Faker/pull/1823) ([localheinz](https://github.com/localheinz))
|
||||
- Enhancement: Configure verbose output via phpunit.xml.dist [\#1822](https://github.com/fzaninotto/Faker/pull/1822) ([localheinz](https://github.com/localheinz))
|
||||
- Curly braces for arrays is deprecated in PHP 7.4 [\#1843](https://github.com/fzaninotto/Faker/pull/1843) ([wimg](https://github.com/wimg))
|
||||
- Fix: Reduce visibility of setUp\(\) and tearDown\(\) [\#1821](https://github.com/fzaninotto/Faker/pull/1821) ([localheinz](https://github.com/localheinz))
|
||||
- Fix: Mark test classes as final [\#1820](https://github.com/fzaninotto/Faker/pull/1820) ([localheinz](https://github.com/localheinz))
|
||||
- Fix: Remove unnecessary class-level DocBlocks [\#1819](https://github.com/fzaninotto/Faker/pull/1819) ([localheinz](https://github.com/localheinz))
|
||||
|
||||
## 2019-11-10, v1.9.0
|
||||
|
||||
|
||||
2
vendor/fzaninotto/faker/composer.json
vendored
2
vendor/fzaninotto/faker/composer.json
vendored
@@ -33,7 +33,7 @@
|
||||
},
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.9"
|
||||
"dev-master": "1.9-dev"
|
||||
}
|
||||
},
|
||||
"config": {
|
||||
|
||||
5
vendor/fzaninotto/faker/readme.md
vendored
5
vendor/fzaninotto/faker/readme.md
vendored
@@ -1,5 +1,7 @@
|
||||
# Faker
|
||||
|
||||
[](https://codecov.io/gh/fzaninotto/Faker)
|
||||
|
||||
Faker is a PHP library that generates fake data for you. Whether you need to bootstrap your database, create good-looking XML documents, fill-in your persistence to stress test it, or anonymize data taken from a production service, Faker is for you.
|
||||
|
||||
Faker is heavily inspired by Perl's [Data::Faker](http://search.cpan.org/~jasonk/Data-Faker-0.07/), and by ruby's [Faker](https://rubygems.org/gems/faker).
|
||||
@@ -53,7 +55,7 @@ composer require fzaninotto/faker
|
||||
|
||||
### Autoloading
|
||||
|
||||
Faker supports both `PSR-0` as `PSR-4` autoloaders.
|
||||
Faker supports both `PSR-0` as `PSR-4` autoloaders.
|
||||
```php
|
||||
<?php
|
||||
# When installed via composer
|
||||
@@ -1789,6 +1791,7 @@ echo $faker->VAT; //23456789
|
||||
* [`drupol/belgian-national-number-faker`](https://github.com/drupol/belgian-national-number-faker): Generate fake Belgian national numbers
|
||||
* [`elgentos/masquerade`](https://github.com/elgentos/masquerade): Configuration-based, platform-agnostic, locale-compatible data faker tool (out-of-the-box support for Magento 2)
|
||||
* [`ottaviano/faker-gravatar`](https://github.com/ottaviano/faker-gravatar): Generate avatars using [Gravatar](https://en.gravatar.com/site/implement/images/)
|
||||
* [`finwe/phpstan-faker`](https://github.com/finwe/phpstan-faker): PHPStan extension for Faker methods
|
||||
|
||||
## License
|
||||
|
||||
|
||||
@@ -24,10 +24,10 @@ class Luhn
|
||||
$length = strlen($number);
|
||||
$sum = 0;
|
||||
for ($i = $length - 1; $i >= 0; $i -= 2) {
|
||||
$sum += $number{$i};
|
||||
$sum += $number[$i];
|
||||
}
|
||||
for ($i = $length - 2; $i >= 0; $i -= 2) {
|
||||
$sum += array_sum(str_split($number{$i} * 2));
|
||||
$sum += array_sum(str_split($number[$i] * 2));
|
||||
}
|
||||
|
||||
return $sum % 10;
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
// data source
|
||||
|
||||
namespace Faker\Provider\en_NG;
|
||||
|
||||
class Person extends \Faker\Provider\Person
|
||||
|
||||
Reference in New Issue
Block a user