Skip to content

Wrong indentation for multiline instance method calls #29

@kq-li

Description

@kq-li

When spanning multiple lines, instance method calls don't have the expected indentation. For example:

Expected:

$node->query()
  ->selectByLambda($node ==>
    checkValid($node),
  )
  ->whereLambda(
    $node ==> condition($node),
  );

Actual:

$node->query()
  ->selectByLambda($node ==>
                   checkValid($node),
                   )
  ->whereLambda(
  $node ==> condition($node),
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions