-
Notifications
You must be signed in to change notification settings - Fork 356
cleanup, refactoring, splitted validators, tweaks #3
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
Conversation
*/ | ||
public function isValid() | ||
{ | ||
return !!!$this->getErrors(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about:
return !$this->getErrors();
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yap, fixed
It's a bit confusing to have |
yeah i didnt found a better name, what about |
renamed it to |
👍 |
Thanks @digitalkaoz - these changes look great |
cleanup, refactoring, splitted validators, tweaks
You guys are fast! Great stuff! :) Now we can add JSON-schema validation to composer! |
hey justin,
i refactored the whole library so its done in a cleaner way.
the main refactoring was the split of validators into separate smaller classes
they all use a common interface
all tests are still passing