coding-standards icon indicating copy to clipboard operation
coding-standards copied to clipboard

Joomla Coding Standards Definition

Results 41 coding-standards issues
Sort by recently updated
recently updated
newest added

![Screenshot from 2022-07-18 15-52-09](https://user-images.githubusercontent.com/56091044/179501754-e92616d9-81c3-4b78-92ea-d1431b8868cd.png)

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__

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 ``...