kokororin / vscode-phpfmt

Integrates phpfmt into VS Code
https://marketplace.visualstudio.com/items?itemName=kokororin.vscode-phpfmt
BSD 3-Clause "New" or "Revised" License
129 stars 30 forks source link

Missing new line with closing brace #74

Closed NasH5169 closed 1 year ago

NasH5169 commented 5 years ago

Hi,

This extension is great but I think, there is an issue with this very simple sample:

<?php
    function foo($param)
    {        
        if($param)
        {var_dump($param);}
    }

becomes this after formatting:

<?php
function foo($param)
{
    if ($param)
    {
        var_dump($param);}
}

The closing brace after var_dump line is not on a new line..?

I've searched among the options to find something related to this but nothing.

An idea guys?

Thx !