By larowlan on
Change record status:
Published (View all published change records)
Project:
Issue links:
Description:
Function declarations
function funstuff_system(
string $foo,
string $bar,
int $baz,
) {
// body
}
Argument lists may be split across multiple lines, where each subsequent line is indented once.
When the argument list is split across multiple lines
- The first item in the list must be on the next line.
- There must be only one argument per line.
- The last argument in the list must use a trailing comma.
- The closing parenthesis and opening brace must be placed together on their own line with one space between them.
Impacts:
Module developers