shufo / prettier-plugin-blade

Format your blade template using Prettier
https://www.npmjs.com/package/@shufo/prettier-plugin-blade
MIT License
318 stars 8 forks source link

[Formatting Bug]: Bad formatting in @php tags #238

Closed calebdw closed 5 months ago

calebdw commented 9 months ago

Version

1.11.1

Template before formatting

@php
    use Eagle\Utilities\Dates\TimeZone;
    $timezone_options = ['' => ''] + TimeZone::create()
        ->format('tz-label')
        ->countryCodePriority('US')
        ->get();
@endphp

Template after formatting

@php
    use Eagle\Utilities\Dates\TimeZone;
    $timezone_options = 
        ['' => ''] +
        TimeZone::create()
            ->format('tz-label')
            ->countryCodePriority('US')
            ->get();
@endphp

Expected Behaviour

It should remain unchanged

Relevant log output

No response

github-actions[bot] commented 7 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

github-actions[bot] commented 5 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days