Skip to content

fix: switch statement bracketing #54

@dacgray

Description

@dacgray

The rule:

ERROR | [x] Newline required after closing brace

Forces this switch statement to:

 switch ($categoryKey) {
            case 'scarfs':
                return static::get('scarfs');
            case 'Piercing Tools':
                return static::get('tools');
            case 'Tattoos':
            case 'Liptattoos':
            case 'Stickers':
                return static::get('stickers');
            case 'mobile_phone_cases':
                return static::get('plastic');
            case 'care':
                return static::get('care');
        }
        ; // linting does this

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