coding style - Stop PhpStorm from adding a new line after function declaration when arguments split across multiple lines -
in phpstorm 8.0.3 code style, have set add new line after function declaration, works fine.
problem i'm in new project follows psr-2 standards, opening brace of function must placed in same line closing parenthesis of function arguments when these split across multiple lines, can see here.
i want when arguments split across multiple lines...
public function mymethod( myclass $arg1, $arg2 = null, ) { // method body }
...and when in same line...
public function mymethod(myclass $arg1, $arg2 = null) { // method body }
i trying search option couldn't find - know can decide whether want add new line all functions, need in these particular occasions.
in file -> settings
dialogue, under editor -> code style -> php
select wrapping , braces
tab on right hand side.
find function declaration parameters
block , check main control, here have bunch of options regarding wrapping parameters , few other options in block control braces placement. @ braces placement
block above.
Comments
Post a Comment