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

[pt_BR][Person] Adding brazillian RG and CPF #551

Closed
wants to merge 4 commits into from

Conversation

hussani
Copy link

@hussani hussani commented Mar 31, 2015

  • RG is a brazilian ID card number
  • CPF is like a registry of contributors' identification

This PR is a quick fix of #488, initialized by @ianrodrigues.
All credits belong to him.

@igorsantos07
Copy link
Contributor

Is the code working? The samples doesn't seems to reflect the code behaviour - furthermore, that behaviour of passing a string into a provider's method is uncommon across the library.

Finally, considering there's an year-old PR (#545) about brazilian documents and other improvements, maybe we should add the RG to it instead of having two PR on the same matter?

@hussani
Copy link
Author

hussani commented Mar 31, 2015

@igorsantos07 I just needed a RG and CPF provider and I saw the open PRs, found one and fix.
You're right, the code isn't the same of description. I fix it now.

Your solution is larger, have some details inexistent on this PR (like CNPJ and others) and the code is more organized.
Personally, prefer your solution than this. I would be glad if your code was merged instead that. 👍

@igorsantos07
Copy link
Contributor

You can make a PR to igorsantos07:improved-pt-cherry-picked and I'll merge it. That will include your commit into #545 :)

igorsantos07 added a commit to igorsantos07/Faker that referenced this pull request Apr 1, 2015
- Brazilian RG generator was included, as originally request by
  @hussani and @ianrodrigues at fzaninotto#488 and fzaninotto#551
- Check digit PHPDoc was included, moving in validation links from
  CPF and CNPJ generators
igorsantos07 added a commit to igorsantos07/Faker that referenced this pull request Apr 1, 2015
- Brazilian RG generator was included, as originally request by
  @hussani and @ianrodrigues at fzaninotto#488 and fzaninotto#551
- Check digit PHPDoc was included, moving in validation links from
  CPF and CNPJ generators
@fzaninotto
Copy link
Owner

Superseded by #545. Please collaborate with @igorsantos07

@fzaninotto fzaninotto closed this Apr 27, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants