Woketo follows most parts of the coding style of PSR & Symfony except these points:
return
clause must be explicit. That means that when you return null, you should precisereturn null;
- Comments in docblock should be aligned
- We put spaces around the
.
of concatenation and the=
of default parameter in functions - Functions are prefixed by
\
to call them from global namespace explicitly
This code-style is a recommendation but can be pointed out in a pull-request code review.
Every patch or new behavior must have its own unit test (phpunit), even if the functional test exists via AutobahnTestsuite.
This is a good-enough motivation to not merge a pull-request.
Each time you can relate a method to a part of the RFC. Please add the most precise link to the concerned part of the RFC.
Do not squash or amend your commits when a PR is reviewed. This breaks the diff on github and makes it painful to review. Prefer addition of new commit on the branch.
We can squash on merge.
Notice that this does not imply PR that is not review ATM.