Open
Description
As discussed in #1108 (comment), currently, there is no established coding style for code examples in the sniff XML documentation files. This has led to inconsistencies in how code examples are formatted across different XML docs.
I'm not sure what the best approach is, but I do think we should have one.
Some options for consideration:
- As @jrfnl mentioned in Squiz/SelfMemberReference: update XML doc #1108, it could be based on the standard the sniff belongs to, but then what coding standard to use for the
Generic
sniffs? - Use the PHPCS coding style.
- Anything else?