-
Notifications
You must be signed in to change notification settings - Fork 114
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
Mostly PSR-2 compliant #27
Conversation
There is one fail related to extending a CakePHP core method that is not yet PSR-2 compliant as it begins with an underscore
The whitespace diff looks good. Did you use phpcs-fixer for this? Also the underscore methods can be suppressed by turning off warnings and only looking at errors if I remember correctly. |
I manually fixed the files since there were so few. |
@josegonzalez could you indent the doc blocks correctly? |
Is that incorrect? I ran phpcs against it with psr2 standard... |
@josegonzalez the standard actually excludes doc blocks - but it's an artefact of our existing code standard that I don't think anyone else follows. |
K, I'll indent. |
There are code sniffer rules to do that automatically, e.g. mine. If you run it isolated, it should work. |
CakePHP core code generally does not have comments inside of methods - this indicates that the method should be refactored - and these methods certainly do not need comments.
I indented everything, waiting on tests to pass and then I'll merge. |
The underscored version can be removed when the CakePHP core becomes PSR-2 compliant
This file uses both a require and a define, which is a no-no for phpcs.
There is one fail related to extending a CakePHP core method that is not yet PSR-2 compliant as it begins with an underscore.
Will merge after #24