shufo / blade-formatter

An opinionated blade template formatter for Laravel that respects readability
https://www.npmjs.com/package/blade-formatter
MIT License
441 stars 24 forks source link

[Formatting Bug]: @props breaks array formatting #888

Open legecha opened 10 months ago

legecha commented 10 months ago

Version

1.32.9

Template before formatting

@props('one', 'two', [
  'three',
  'four',
  'five',
])

Template after formatting

@props('one', 'two', ['three', 'four', 'five'])

Expected Behaviour

It would be nice to keep the array formatting when passing to @props. This is particularly prevalent when passing multidimensional arrays and/or lots of values in.

Not sure if also making the following possible is a good idea?

@props(
  'one',
  'two',
  'three',
  'four',
)

Cheers for the great package :)

Relevant log output

No response

github-actions[bot] commented 8 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