0

Help of reformatting code

1. move "elseif" to new line (can be done by Preferences -> Code Style -> PHP -> Wrapping and Braces -> "if" statement -> 'else' on new line)
2. move comment after "elseif" to top of "elseif" (What should I do?)


example
======================

original code:

if( $a === TRUE ){
    $b = $c + $d;
}elseif{ //comment
    $b = $c + $e;
}


===============> expect code

if( $a === TRUE ){
    $b = $c + $d;
}
//comment
elseif{
    $b = $c + $e;
}

0 comments

Please sign in to leave a comment.