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]: Incorrect indent arrays #879

Open
phederal opened this issue Oct 19, 2024 · 1 comment
Open

[Formatting Bug]: Incorrect indent arrays #879

phederal opened this issue Oct 19, 2024 · 1 comment
Assignees
Labels
bug Something isn't working Stale Stale label

Comments

@phederal
Copy link

Platform

Windows

Template before formatting

<!DOCTYPE html>
<html lang="en">
    <head>
        <!-- ... -->
        @include( 'layouts.meta', [
            'title'       => 'My Blade App',
            'description' => 'Long description for blade app',
            'keywords'    => 'App, Blade, Php, VScode',
            'preview'     => isset( $hash )
                ? 'https://.../' . $hash
                : 'https://.../...jpg',
        ] )
        <!-- ... -->
    </head>
    <body>
    </body>
</html>

Template after formatting

<!DOCTYPE html>
<html lang="en">
    <head>
        <!-- ... -->
        @include( 'layouts.meta', [
    'title'       => 'My Blade App',
    'description' => 'Long description for blade app',
    'keywords'    => 'App, Blade, Php, VScode',
    'preview'     => isset( $hash )
        ? 'https://.../' . $hash
        : 'https://.../...jpg',
] )
        <!-- ... -->
    </head>
    <body>
    </body>
</html>

Expected Behaviour

Obviously there is a problem with indentation and this occurs in all situations where array line breaks are used.

Relevant log output

No response

@phederal phederal added the bug Something isn't working label Oct 19, 2024
Copy link
Contributor

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 github-actions bot added the Stale Stale label label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Stale Stale label
Projects
None yet
Development

No branches or pull requests

2 participants