Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building numbers can not be 0, 00, 000 #107

Merged
merged 30 commits into from
Dec 4, 2020
Merged

Building numbers can not be 0, 00, 000 #107

merged 30 commits into from
Dec 4, 2020

Conversation

krsriq
Copy link

@krsriq krsriq commented Dec 4, 2020

What is the reason for this PR?

In fzaninotto/Faker the issue that buildingNumber may be 0, 00 or 000 was brought up and fixed for en_US.

  • A new feature
  • Fixed an issue

Author's checklist

Summary of changes

This PR changes the buildingNumber format of all locales so that none of them can generate 0, 00 or 000 (or even 0000).

Review checklist

  • All checks have passed
  • Changes are approved by maintainer

Daniel Schmelz and others added 30 commits November 28, 2020 09:25
Signed-off-by: Daniel Schmelz <q2CIa2U7>

Co-authored-by: Daniel Schmelz <q2CIa2U7>
* Move AT payment provider logic to de_AT

* Apply fixes from StyleCI

* add ssn to AT Person

* fix verification number generation

* Apply fixes from StyleCI

* Update src/Faker/Provider/de_AT/Person.php

Co-authored-by: Bram Ceulemans <bramceulemans@me.com>

* change formatting

* Apply fixes from StyleCI

* change string formatting to sprintf

Signed-off-by: Daniel Schmelz <q2CIa2U7>

Co-authored-by: Daniel Schmelz <q2CIa2U7>
Co-authored-by: Daniel Schmelz <krsriq@users.noreply.github.com>
Co-authored-by: Bram Ceulemans <bramceulemans@me.com>
* Fix typo in country names

* Fix typo in abbreviated state names

* Fix babel state name

* Remove guesswork comment

The list should be accurate now. DKI and DIY are arguable, but it's ok.

* Add link to abbreviated state names

* Fix wrong abbreviation from Kalut to Kaltara

Co-authored-by: Asis Pattisahusiwa <pattisahusiwa@users.noreply.github.com>
* add get providers test

Signed-off-by: Daniel Schmelz <daniel@schmelz.org>

* renamed test function

Signed-off-by: Daniel Schmelz <daniel@schmelz.org>
* add valid austrian postcodes

Signed-off-by: Daniel Schmelz <daniel@schmelz.org>

* change wording

Signed-off-by: Daniel Schmelz <daniel@schmelz.org>
* add internet provider slug tests

Signed-off-by: Daniel Schmelz <daniel@schmelz.org>

* fix spacing

Signed-off-by: Daniel Schmelz <daniel@schmelz.org>
* improve austrian social security number generation

Signed-off-by: Daniel Schmelz <daniel@schmelz.org>

* improve austrian social security number generation, add test

Signed-off-by: Daniel Schmelz <daniel@schmelz.org>

* change verification number test

Signed-off-by: Daniel Schmelz <daniel@schmelz.org>
* move us phone numbers with extension to own method

Signed-off-by: Daniel Schmelz <daniel@schmelz.org>

* cleanup

Signed-off-by: Daniel Schmelz <daniel@schmelz.org>

* remove return type

Signed-off-by: Daniel Schmelz <daniel@schmelz.org>
Signed-off-by: Daniel Schmelz <daniel@schmelz.org>
* Move AT payment provider logic to de_AT

* Apply fixes from StyleCI

* improved test consistency

Co-authored-by: Daniel Schmelz <q2CIa2U7>
Co-authored-by: Daniel Schmelz <krsriq@users.noreply.github.com>
* Run StyleCI on the entire codebase

* Apply fixes from StyleCI

* Enabled a bunch of phpunit fixers
* Clean up issue and PR templates

* Fixed link to documentation
* add uk national insurance number

Signed-off-by: Daniel Schmelz <daniel@schmelz.org>

* change reference

Signed-off-by: Daniel Schmelz <daniel@schmelz.org>
* Fixed en_GB national insurance number test

* Lowered chance of national insurance number generation looping again
* Refactor of CONTRIBUTING.md

* Remove unnecessary full path to LICENSE

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

Co-authored-by: Graham Campbell <GrahamCampbell@users.noreply.github.com>
* avoid mt_rand usage

* avoid mt_rand usage in Guessers

* use int literal

* use PHP_INT_MAX for big numbers

* use self::numberBetween() instead
* simplify tests

* use assert methods instead of comparisons
Signed-off-by: Daniel Schmelz <daniel@schmelz.org>
Copy link
Member

@bram-pkg bram-pkg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks!

@bram-pkg bram-pkg merged commit 2e1bc4c into FakerPHP:main Dec 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants