You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In general, I'd suggest to update our CS-Fixer rules to the PER-2 set (which seems to be the current recommended common ground for PHP projects) including the risky rules and drop our custom rules. This way, we'll be consistent with other projects while reducing the maintenance effort for our own configuration.
A single-line function/method declaration has the code-block opening brace on the next line:
function a() {
Multiline declarations have this on the same line as the closing parenthesis for the arguments:
This works for readability, because the
) {
don't interfere with the first line of the function.But consider a function with a type-hinted return value:
For readability, it seems like it would be better if the code block opening brance (
{
) were on a new line.However, the current PHP CS Fixer rules we have in place forbid that. Ref: #1236 (comment)
The text was updated successfully, but these errors were encountered: