Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Formatting Bug]: Chaining method issue #877

Open
dicktornfeldt opened this issue Sep 30, 2024 · 2 comments
Open

[Formatting Bug]: Chaining method issue #877

dicktornfeldt opened this issue Sep 30, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@dicktornfeldt
Copy link

Platform

MacOS

Template before formatting

<flux:tab :data-selected="request()->routeIs('meals*')" href="{{ route('meals.index') }}">

Template after formatting

<flux:tab :data-selected="request() - > routeIs('meals*')" href="{{ route('meals.index') }}">

Expected Behaviour

The arrow between request() and routeIs() should not get expanded

Relevant log output

No response

@dicktornfeldt dicktornfeldt added the bug Something isn't working label Sep 30, 2024
@dicktornfeldt
Copy link
Author

I understand that it's because im using Flux components instead of basic Laravel components after reading: #506

@ferremek
Copy link

@dicktornfeldt I have the same issue with Flux components, did you find a fix for this? Because I would like to use VS Code (actually Cursor) instead of PhpStorm but I have issues with the formatting of Blade files.

Because for example I would like to use the following:

<flux:button size="sm" icon="chevron-up" :disabled="$item->user_id === auth()->id()">
    {{ $upvoteCount }}
</flux:button>

But after saving it formats like this

<flux:button size="sm" icon="chevron-up" :disabled="$item - > user_id === auth() - > id()">
    {{ $upvoteCount }}
</flux:button>

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants