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

Validators in seperate classes #11

Merged
merged 2 commits into from
Jul 1, 2015
Merged

Conversation

krzaczek
Copy link
Collaborator

Hi @DragonBe,

I did not like the way it was done ... 800 lines of code in one file (Validator.php) .... so ...

Every country is in a seperate class ValidatorXX. I've added information about the algo used to calculate the checksum at the top of every class. All test pass, all files have 100% code coverage.

The work is done based on http://85.81.229.78/systems/DKVIES/-%20Arkiv/Algoritme%E6ndringer/VIES-VAT%20Validation%20Routines-v15.0.doc

There is still work to do ... I was not able to find a valid French new style VAT number ... so the algo is not done yet.

Please review the code and let me know what You think of it.

Pawel

@krzaczek
Copy link
Collaborator Author

@DragonBe could You enable codeclimate PR intergration .. so I can fix problems before You merge it ?

@krzaczek
Copy link
Collaborator Author

Don't know why .. but lately more and more test fail because of composer issues .. 👎

@krzaczek krzaczek mentioned this pull request Jun 28, 2015
@krzaczek krzaczek changed the title [WIP] - Validators in seperate classes Validators in seperate classes Jun 28, 2015
@krzaczek
Copy link
Collaborator Author

@DragonBe All is done ... :)

@DragonBe DragonBe merged commit 8a6e4bd into DragonBe:master Jul 1, 2015
@DragonBe
Copy link
Owner

DragonBe commented Jul 1, 2015

Woot! We're now top quality with SensioLabsInsights, CodeShip, CodeClimate and Travis-CI.

Thanks a bunch!

@krzaczek krzaczek deleted the f/validator branch July 2, 2015 07:10
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.

None yet

2 participants