php - Refactor ternary to if-block programatically -



php - Refactor ternary to if-block programatically -

is there way through context menus refactor ternary assignment 1 done if-else block?

so, illustration you'd have this:

$a = ($b > -32)? "up" : "down";

you'd apply transformation, , phpstorm magically alter into:

if ($b > -32) { $a = "up"; } else { $a = "down"; }

seems mutual , automated operation, must automated somewhere in labyrinth of menus.

phpstorm 8 can alt-enter shortcut. set cursor @ ? operator , key in alt+enter.

php phpstorm

Comments

Popular posts from this blog

java Multi query from Mysql using netbeans -

c# - DotNetZip fails with "stream does not support seek operations" -

c++ - StartServiceCtrlDispatcher don't can access 1063 error -