If we are conforming to PSR-2 standards, going off their description for multi-line arguments:
Argument lists MAY be split across multiple lines, where each subsequent line is indented once. When doing so, the first item in the list MUST be on the next line, and there MUST be only one argument per line.
When the argument list is split across multiple lines, the closing parenthesis and opening brace MUST be placed together on their own line with one space between them.
Does that mean arguments should be formatted as the following:
return JsonResponse(
Request::STATUS_OK,
[
'success' => true,
'message' => 'Example Message Here.'
]
)
Or is the following format also valid when strictly following their standards?
return JsonResponse(
Request::STATUS_OK, [
'success' => true,
'message' => 'Example Message Here.'
]
)