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

Hanging indent for multiple line line array entry #623

Closed
scottgrayson opened this issue Apr 26, 2020 · 2 comments · Fixed by #624
Closed

Hanging indent for multiple line line array entry #623

scottgrayson opened this issue Apr 26, 2020 · 2 comments · Fixed by #624

Comments

@scottgrayson
Copy link

scottgrayson commented Apr 26, 2020

Indented

$arr = [
    $this->something()
    ->something(),
];

$this->something()
    ->something();

expected

$arr = [
    $this->something()
        ->something(),
];

$this->something()
    ->something();

config

  (use-package php-mode
    :ensure t
    :config
    (setq c-basic-offset 4)
    (add-hook 'php-mode-hook 'php-enable-psr2-coding-style)
    )

If the the result shown in expected cannot become the default, how can I customize this with config?

Another example of this https://nova.laravel.com/docs/3.0/resources/fields.html#keyvalue-field

@zonuexe
Copy link
Member

zonuexe commented May 3, 2020

@scottgrayson Thank you for reporting. Probably solved in #624.

@scottgrayson
Copy link
Author

that solved it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants