Skip to content

Hanging indent for multiple line line array entry #623

Closed
@scottgrayson

Description

@scottgrayson

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions