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

Improving pt_BR Providers #335

Closed
wants to merge 4 commits into from
Closed

Conversation

igorsantos07
Copy link
Contributor

  • In overall, code extensibility was improved;
  • Added some Brazilian documents to the Person provider;
  • Phone generation was greatly improved, being able to differentiate between landline and cellphones + additional local rules for valid numbers.

Also, I've added samples to the repository README :)

Code extensibility was improved by changing private property to protected;
Additional methods to generate some Brazilian documents were included
PhoneNumber was rewritten to enable different phone rules in Brazil.
Now it generated area codes, landline and cellphone numbers, obeying
the rules for the new digit that was added in the last years (and
will still be added in the future). The formats are now local-only,
like the original PhoneNumber class.
```php
<?php

// Now the names generators may include double first or double last names, plus title and suffix
Copy link
Owner

Choose a reason for hiding this comment

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

You can omit the "now".

Also, typo in "names" generator.

@fzaninotto
Copy link
Owner

No news for more than 6 months, closing.

@fzaninotto fzaninotto closed this Jan 2, 2015
@igorsantos07
Copy link
Contributor Author

I was never notified of those comments! I only discovered about this when a friend was looking for those improvements and couldn't find.
I've reapplied those changes on top of the current master state and fixed those issues. Gonna create a new PR :)

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.

2 participants