Affects Version/s: 3.3.4, 3.4.1, 3.5
Fix Version/s: None
Affected Branches:MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE
We are beginning to use interfaces more in our code and hitting places where the line length for the class definitions exceeds the max length rules.
We should discuss how to handle this.
With the Moodle 8-char indent.
In this case we often break another code guideline of only using the use keyword if the class is used multiple times. Most interfaces are used only once.
This is a pretty common style and is very clear.
It has the added benefit of allowing for comments before each interface is listed.
Example with comments:
This is a variation upon the Moodle style, but with the opening brace on a new line
Other options are of course available.