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

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -