Repository navigation
Generic/PHP/Syntax: add XML documentation - #175
Conversation
8d08d41 to
93e5c44
Compare
jrfnl
left a comment
There was a problem hiding this comment.
@rodrigoprimo Thanks for this PR. Looking good.
I'm unsure about what to use in the
titleattribute. I followed the convention and used the sniff name, but justSyntaxis not very clear. Happy to leave it as is if that is ok. An alternative that I considered using isPHP Syntax.
I 100% agree with you. PHP Syntax would be better.
93e5c44 to
2245a6b
Compare
|
Thanks for the review, @jrfnl. I updated the I amended the original commit instead of creating new ones per your comment in a previous PR: #163 (review). Please let me know if, in this case, you would have preferred new commits. This PR is ready for another review. |
jrfnl
left a comment
There was a problem hiding this comment.
Thanks for making those changes @rodrigoprimo ! LGTM.
I amended the original commit instead of creating new ones per your comment in a previous PR: #163 (review). Please let me know if, in this case, you would have preferred new commits.
As a general rule of thumb:
- For very small punctuation/doc fixes, amending is fine to keep the history clean.
- For more significant/functional changes, a separate commit is preferred as that allows for a reviewer to see more easily what has been changed in the update.
When in doubt, use an extra commit (and I can then decide whether to squash the commits on merge or leave it as-is).
Description
This PR adds documentation for the Generic.PHP.Syntax sniff.
I'm unsure about what to use in the
titleattribute. I followed the convention and used the sniff name, but justSyntaxis not very clear. Happy to leave it as is if that is ok. An alternative that I considered using isPHP Syntax.Suggested changelog entry
Add documentation for the Generic.PHP.Syntax sniff
Related issues/external references
Part of #148
Types of changes
PR checklist