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

adding JCB card #2058

Open
wants to merge 59 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
3e3a67d
Updates the Danish addresses
Dec 3, 2019
bd6ef22
adding JCB card
mihaileu Sep 28, 2020
b07d15b
Release 1.9.1
GrahamCampbell Oct 27, 2020
ebaf4f8
Remove persian rude words. (#1879)
amir9480 Mar 12, 2020
4e92404
Fix (bug #1862): Do not clear entity manager for doctrine orm populat…
jlekowski May 11, 2020
33a4575
Fix Job title typo (#2040)
ottaviano Oct 23, 2020
14dc32f
Fix typos in greek first names (#1973)
sebdesign Oct 23, 2020
4b57fff
Fix IBAN generation for CR (Costa Rica) (#1984)
lowerends Oct 23, 2020
5e628f6
Added missing properties in doc-block (#1985)
Oct 23, 2020
95551b5
Fix typo in de_DE jobTitleFormat (#1990)
tobias-grasse Oct 23, 2020
d84730c
randomElement accepts an array (#1993)
reed-jones Oct 23, 2020
78a851e
Fix dateTimeThisYear method (#2039)
macaron Oct 23, 2020
ccf7a08
[fix] complies with psr-2 (#2006)
Oct 23, 2020
be3b04b
Fix typo in de_DE Company Provider (#2029)
lukstei Oct 23, 2020
ea4c2c2
fix names, should start at new line (#2044)
jai-o Oct 23, 2020
a50d81b
Update Person.php
sanmon1985 Aug 17, 2020
d63a360
Conflict with all versions
GrahamCampbell Oct 27, 2020
6deed27
Corrections for the new repo path
GrahamCampbell Oct 27, 2020
f2d9622
Switched to PSR-12 and drop PHP < 7.1 (#3)
GrahamCampbell Oct 27, 2020
0ee2cb2
Update .gitattributes
GrahamCampbell Oct 27, 2020
c137172
Support PHP 8.0 (#4)
GrahamCampbell Oct 27, 2020
7ef0c9f
Release 1.10.0
GrahamCampbell Oct 27, 2020
1971ce5
Merge pull request #5 from tomasnorre/dk-locales
localheinz Oct 27, 2020
33d37fb
Fix: Remove conflict with ergebnis/faker
localheinz Oct 27, 2020
01a6d1b
Fix: Case
localheinz Oct 27, 2020
902ef88
Merge pull request #8 from localheinz/fix/remove
localheinz Oct 27, 2020
0302f61
Fix: Move CONTRIBUTING.md into .github/
localheinz Oct 27, 2020
be4ae17
Update Company.php
SjorsO Oct 27, 2020
9a266c1
Add some editorconfig to help with style
Nyholm Oct 27, 2020
1a10879
Add to gitattributes
Nyholm Oct 27, 2020
dcd7a66
Make sure the Makefile has tab syntax
Nyholm Oct 28, 2020
6929a20
Clarify changelog
Nyholm Oct 28, 2020
a23a83b
Standin replacement for LoremPixel to Placeholder.com (#11)
pimjansen Oct 28, 2020
f47b7d8
Update readme for image (#25)
Nyholm Oct 28, 2020
f1bcbc5
Added 1.10.1 changelog
pimjansen Oct 28, 2020
27d5690
Limit workflow builds to main branch and PRs
sanmai Oct 28, 2020
21ad6b7
Update continuous-integration.yml
sanmai Oct 28, 2020
8bd7e33
Brush up CI, add Windows build
sanmai Oct 28, 2020
24dd6d3
Merge pull request #24 from FakerPHP/release/1.10.1
localheinz Oct 28, 2020
f2713a5
Merge pull request #26 from sanmai/patch-1
localheinz Oct 28, 2020
73af4f1
Add PULL_REQUEST_TEMPLATE.md
sanmai Oct 28, 2020
ef19f26
Update branches for badges (#29)
Nyholm Oct 28, 2020
77fe323
Add: Swedish (sv_SE) municipality (#30)
Nyholm Oct 28, 2020
2d8ea90
Adding BC check (#14)
Nyholm Oct 28, 2020
5ff8573
Adding PHPStan and Psalm
Nyholm Oct 27, 2020
9e9ff13
Update branch rules
Nyholm Oct 28, 2020
96a0e48
Update .github/workflows/static-analysis.yml
Nyholm Oct 28, 2020
43ecb3c
Update .github/workflows/static-analysis.yml
Nyholm Oct 28, 2020
137cbba
Update .github/workflows/static-analysis.yml
Nyholm Oct 28, 2020
d8f47d6
Apply suggestions from code review
sanmai Oct 28, 2020
24f1a70
Merge pull request #27 from sanmai/pr/2020-10/windows
localheinz Oct 28, 2020
e7a09a9
Merge pull request #28 from sanmai/pr/2020-10/PULL_REQUEST_TEMPLATE.md
localheinz Oct 28, 2020
a46bcf9
Merge pull request #9 from Nyholm/static
localheinz Oct 28, 2020
4c7579f
Revert "Remove persian rude words. (#1879)"
mihaileu Oct 28, 2020
3220a84
Revert "Fix (bug #1862): Do not clear entity manager for doctrine orm…
mihaileu Oct 28, 2020
ca51981
apply style ci changes
mihaileu Oct 28, 2020
17f3d3e
Merge branch 'main' into adding_JCB_credit_card
mihaileu Oct 28, 2020
87e36bc
apply style ci changes
mihaileu Oct 28, 2020
3e975f4
Merge branch 'adding_JCB_credit_card' of https://github.com/mihaileu/…
mihaileu Oct 28, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[Makefile]
indent_style = tab
19 changes: 13 additions & 6 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
/test/ export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/CONTRIBUTING.md export-ignore
/Makefile export-ignore
/phpunit.xml.dist export-ignore
/.github/ export-ignore
/test/ export-ignore
/.editorconfig export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.styleci.yml export-ignore
/Makefile export-ignore
/phpstan.neon.dist export-ignore
/phpstan-baseline.neon export-ignore
/phpunit.xml.dist export-ignore
/psalm-baseline.xml export-ignore
/psalm.xml export-ignore
/roave-bc-check.yaml export-ignore
8 changes: 4 additions & 4 deletions CONTRIBUTING.md → .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ If you've written a new formatter, adapted Faker to a new locale, or fixed a bug

Before proposing a pull request, check the following:

* Your code should follow the [PSR-2 coding standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md). Run `make sniff` to check that the coding standards are followed, and run `make fix` to fix inconsistencies.
* Your code should follow the [PSR-12 coding standard](https://www.php-fig.org/psr/psr-12/). [StyleCI](https://styleci.io/) will handle compliance automatically.
* Unit tests should still pass after your patch. Run the tests on your dev server (with `make test`) or check the continuous integration status for your pull request.
* As much as possible, add unit tests for your code
* Never use `rand()` in your providers. Faker uses the Mersenne Twister Randomizer, so use `mt_rand()` or any of the base generators (`randomNumber`, `randomElement`, etc.) instead.
* If you add new providers (or new locales) and that they embed a lot of data for random generation (e.g. first names in a new language), please add a `@link` to the reference you used for this list (example [in the ru_RU locale](https://github.com/fzaninotto/Faker/blob/master/src/Faker/Provider/ru_RU/Person.php#L13)). This will ease future updates of the list and debates about the most relevant data for this provider.
* If you add new providers (or new locales) and that they embed a lot of data for random generation (e.g. first names in a new language), please add a `@link` to the reference you used for this list (example [in the ru_RU locale](https://github.com/FakerPHP/Faker/blob/1.10/src/Faker/Provider/ru_RU/Person.php#L13)). This will ease future updates of the list and debates about the most relevant data for this provider.
* If you add long list of random data, please split the list into several lines. This makes diffs easier to read, and facilitates core review.
* If you add new formatters, please include documentation for it in the README. Don't forget to add a line about new formatters in the `@property` or `@method` phpDoc entries in [Generator.php](https://github.com/fzaninotto/Faker/blob/master/src/Faker/Generator.php#L6-L118) to help IDEs auto-complete your formatters.
* If your new formatters are specific to a certain locale, document them in the [Language-specific formatters](https://github.com/fzaninotto/Faker#language-specific-formatters) list instead.
* If you add new formatters, please include documentation for it in the README. Don't forget to add a line about new formatters in the `@property` or `@method` phpDoc entries in [Generator.php](https://github.com/FakerPHP/Faker/blob/1.10/src/Faker/Generator.php#L6-L118) to help IDEs auto-complete your formatters.
* If your new formatters are specific to a certain locale, document them in the [Language-specific formatters](https://github.com/FakerPHP/Faker#language-specific-formatters) list instead.
* Avoid changing existing sets of data. Some developers use Faker with seeding for unit tests ; changing the data makes their tests fail.
* Speed is important in all Faker usages. Make sure your code is optimized to generate thousands of fake items in no time, without consuming too much memory or CPU.
* If you commit a new feature, be prepared to help maintaining it. Watch the project on GitHub, and please comment on issues or PRs regarding the feature you contributed.
Expand Down
10 changes: 5 additions & 5 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ assignees: ''

### Versions

<!-- Please provide the versions of PHP as well as `fzaninotto/faker` on which the issue has been observed -->
<!-- Please provide the versions of PHP as well as `fakerphp/faker` on which the issue has been observed -->

| | Version |
|:--------------------|:--------|
| PHP | x.y.z |
| `fzaninotto/faker` | x.y.z |
| | Version |
|:---------------|:--------|
| PHP | x.y.z |
| `fakerphp/faker` | x.y.z |

### Self-enclosed code snippet for reproduction

Expand Down
5 changes: 5 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This PR:

- [ ] Adds a new feature ...
- [ ] Covered by tests
- [ ] Fixes #nnnn
2 changes: 2 additions & 0 deletions .github/workflows/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[*.yml]
indent_size = 2
21 changes: 21 additions & 0 deletions .github/workflows/bc-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

on:
pull_request:
push:
branches:
- "main"
- "[0-9].*"

name: BC Check

jobs:
roave-bc-check:
name: Roave BC Check
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Roave BC Check
uses: docker://nyholm/roave-bc-check-ga
166 changes: 42 additions & 124 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,141 +4,59 @@ on:
pull_request:
push:
branches:
- "master"
tags:
- "**"
- "main"
- "[0-9].*"

name: "Continuous Integration"
name: Continuous Integration

jobs:
coding-standards:
name: "Coding Standards"

runs-on: "ubuntu-latest"

strategy:
matrix:
php-version:
- "5.3"

steps:
- name: "Checkout"
uses: "actions/checkout@v2"

- name: "Install PHP with extensions"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
extensions: "intl"
php-version: "${{ matrix.php-version }}"

- name: "Determine composer cache directory"
id: "determine-composer-cache-directory"
run: "echo \"::set-output name=directory::$(composer config cache-dir)\""

- name: "Cache dependencies installed with composer"
uses: "actions/cache@v1"
with:
path: "${{ steps.determine-composer-cache-directory.outputs.directory }}"
key: "php-${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}"
restore-keys: "php-${{ matrix.php-version }}-composer-"

- name: "Install dependencies with composer"
run: "composer install --no-interaction --no-progress --no-suggest"

- name: "Run squizlabs/php_codesniffer"
run: "vendor/bin/phpcs --standard=PSR2 src -n"

tests:
name: "Tests"

runs-on: "ubuntu-latest"
name: CI on ${{ matrix.operating-system }} with PHP ${{ matrix.php-version }}

strategy:
matrix:
php-version:
- "5.3"
- "5.4"
- "5.5"
- "5.6"
- "7.0"
- "7.1"
- "7.2"
- "7.3"
- "7.4"
operating-system:
- 'ubuntu-latest'
php-version:
- '7.1'
- '7.2'
- '7.3'
- '7.4'
- '8.0'
include:
- operating-system: 'windows-latest'
php-version: '7.1'

runs-on: ${{ matrix.operating-system }}

steps:
- name: "Checkout"
uses: "actions/checkout@v2"
- name: Checkout code
uses: actions/checkout@v2

- name: "Install PHP with extensions"
uses: "shivammathur/setup-php@v2"
- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
with:
coverage: "none"
extensions: "intl"
ini-values: "memory_limit=-1"
php-version: "${{ matrix.php-version }}"
extensions: intl
php-version: ${{ matrix.php-version }}

- name: "Determine composer cache directory"
id: "determine-composer-cache-directory"
run: "echo \"::set-output name=directory::$(composer config cache-dir)\""
- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: "Cache dependencies installed with composer"
uses: "actions/cache@v1"
- name: Cache dependencies
uses: actions/cache@v2
with:
path: "${{ steps.determine-composer-cache-directory.outputs.directory }}"
key: "php-${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}"
restore-keys: "php-${{ matrix.php-version }}-composer-"

- name: "Install dependencies with composer"
run: "composer install --no-interaction --no-progress --no-suggest"

- name: "Run tests with phpunit/phpunit"
run: "vendor/bin/phpunit"

code-coverage:
name: "Code Coverage"

runs-on: "ubuntu-latest"

strategy:
matrix:
php-version:
- "7.4"

steps:
- name: "Checkout"
uses: "actions/checkout@v2"

- name: "Install PHP with extensions"
uses: "shivammathur/setup-php@v2"
with:
coverage: "xdebug"
extensions: "intl"
ini-values: "memory_limit=-1"
php-version: "${{ matrix.php-version }}"

- name: "Determine composer cache directory"
id: "determine-composer-cache-directory"
run: "echo \"::set-output name=directory::$(composer config cache-dir)\""

- name: "Cache dependencies installed with composer"
uses: "actions/cache@v1"
with:
path: "${{ steps.determine-composer-cache-directory.outputs.directory }}"
key: "php-${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}"
restore-keys: "php-${{ matrix.php-version }}-composer-"

- name: "Install dependencies with composer"
run: "composer install --no-interaction --no-progress --no-suggest"

- name: "Create build directory"
run: "mkdir -p .build/logs"

- name: "Collect code coverage with Xdebug and phpunit/phpunit"
run: "vendor/bin/phpunit --coverage-clover=.build/logs/clover.xml"

- name: "Send code coverage report to Codecov.io"
env:
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}"
run: "bash <(curl -s https://codecov.io/bash)"
path: ${{ steps.composer-cache.outputs.dir }}
key: composer-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('composer.*') }}
restore-keys: |
composer-${{ runner.os }}-${{ matrix.php-version }}-
composer-${{ runner.os }}-
composer-

- name: Install dependencies with Composer
run: |
composer update --no-interaction --no-progress

- name: Run tests with PHPUnit
run: |
vendor/bin/phpunit
93 changes: 93 additions & 0 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@

on:
pull_request: ~
push:
branches:
- "main"
- "[0-9].*"

name: Static analysis

jobs:
phpstan:
name: PHPStan
runs-on: ubuntu-latest

strategy:
matrix:
php-version: [7.4]

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
coverage: none
extensions: intl
php-version: ${{ matrix.php-version }}

- name: Determine composer cache directory
id: composer-cache
run: echo "::set-output name=directory::$(composer config cache-dir)"

- name: Cache dependencies installed with composer
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.directory }}
key: composer-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('composer.*') }}
restore-keys: |
composer-${{ runner.os }}-${{ matrix.php-version }}-
composer-${{ runner.os }}-
composer-

- name: Download dependencies
run: composer update --no-interaction --prefer-dist --optimize-autoloader

- name: PHPStan
uses: docker://oskarstark/phpstan-ga:0.12.49
with:
entrypoint: /composer/vendor/bin/phpstan
args: analyze --no-progress

psalm:
name: Psalm
runs-on: ubuntu-latest

strategy:
matrix:
php-version: [7.4]

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
with:
coverage: none
extensions: intl
php-version: ${{ matrix.php-version }}

- name: Determine composer cache directory
id: composer-cache
run: echo "::set-output name=directory::$(composer config cache-dir)"

- name: Cache dependencies installed with composer
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.directory }}
key: composer-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('composer.*') }}
restore-keys: |
composer-${{ runner.os }}-${{ matrix.php-version }}-
composer-${{ runner.os }}-
composer-

- name: Install dependencies with composer
run: |
composer require --dev psalm/phar:3.18.2 --no-update
composer update --no-interaction --no-progress --no-suggest

- name: Run vimeo/psalm
run: ./vendor/bin/psalm.phar --config=psalm.xml --shepherd --show-info=false --stats
5 changes: 5 additions & 0 deletions .styleci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
preset: psr12

finder:
path:
- src
Loading