crazyfactory/php-sniffs

fix: switch statement bracketing

Opened this issue · 0 comments

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