Skip to content
This repository was archived by the owner on Oct 20, 2024. It is now read-only.
This repository was archived by the owner on Oct 20, 2024. It is now read-only.

Incorrect indentation for multiple open parentheses on the same line #1

@scribu

Description

@scribu
register_post_type( 'movie', array(
    'label' => 'Movies',
    'public' => true
) );

is transformed into:

register_post_type( 'movie', array(
        'label' => 'Movies',
        'public' => true
    ) );

If I add another pair of parentheses, the effect will be even more pronounced. This:

register_post_type( 'movie', ( array(
    'label' => 'Movies',
    'supports' => array( 'foo', 'bar' )
) ) );

will become:

register_post_type( 'movie', ( array(
            'label' => 'Movies',
            'supports' => array( 'foo', 'bar' )
        ) ) );

and so on.

The problem is that the two '(' on the register_post_type line are counted as two indentation levels, even if they're on the same line.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions