[Php Code Style] Keep left bracket and the closing php tag on the same line.

Hi!

Does PhpStorm has an option in Code Style to keep the php closing tag on the same line with the left bracket like this?

<?php
global $xxx;
if ( $xxx >= 2 ) { ?>
     <div>some html here</div>
<?php }


Instead of :

<?php global $xxx; if ( $xxx >= 2 ) {      ?>      <div>some html here</div> <?php }

2 comments
Comment actions Permalink

Left bracket placement: Settings (Preferences for Mac OS) | Code style | Php | Wrapping and braces | Braces placement -> "End of line".
There is no such option for closing tag, fee free to file a feature request: http://youtrack.jetbrains.com/issues/WI#newissue=yes .

0
Comment actions Permalink

Thank you! I'll give it a try!

0

Please sign in to leave a comment.