coding-standards
coding-standards copied to clipboard
Joomla Coding Standards Definition

Change PHP document to reflect switch to PER Coding Style Revamped some of the examples Removed sections covered by recommendation.
Unintended tags can be seen in https://developer.joomla.org/coding-standards/docblocks.html (hyperlinks on every \@x parameter)
https://developer.joomla.org/coding-standards.html Link not working 😔
The rules used in Joomla are located in `build\.stylelintrc.json` and this states "indentation": 2, _also corrected the examples__
See title and code changes.
After some performance testing and consideration for readability, I think that patterns like [0-9] or [[:digit:]] is better than \d as the meaning is more clear. Since there seems to...
@mbabker raised a question [in this PR](https://github.com/joomla/jissues/pull/680) About Ternery operators and allowing or disallowing multi-line use. I think multi-line ternary operators could have a benefit, if they improve the readability...
### Table names In the Joomla database all the table names are in `snake_case` and by the looks of this is how it will always be, However this is not...
https://github.com/joomla/coding-standards/blob/master/manual/html.md#adding-line-breaks afaik, it looks not necessary to use `` as this is rather for xhtml. `` should be OK. Ref: https://www.tutorialspoint.com/What-is-the-correct-way-of-using-br-br-or-br-in-HTML So the question is: 1. Shall we keep ``...