Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Component/s: Coding style
-
Labels:None
Description
I believe that it is the standard that braces '{}' are on the same line as statements, i.e.
if (true) {
// Always do this.
} else {
// Never do this.
}
rather than:
if (true)
{
// Always do this.
}
else
{
// Never do this.
}
but this is not documented on: https://docs.moodle.org/dev/Coding_style.
Raising issue because the 'Talk' page above states to.