format/classes/definition
In the format-laravel and format-psr12 presets. Safe fix.
What it does
Whitespace around the keywords of a class, trait, enum or interfaces definition should be one space.
Configuration
[format.rules]
"classes/definition" = true
To skip it in some files, add a @pun-ignore-file comment.
Options
| Name | Type | Allowed values | Default | Upstream name |
|---|---|---|---|---|
inline-constructor-arguments |
bool |
Any | true |
inline_constructor_arguments |
multi-line-extends-each-single-line |
bool |
Any | false |
multi_line_extends_each_single_line |
single-item-single-line |
bool |
Any | false |
single_item_single_line |
single-line |
bool |
Any | false |
single_line |
space-before-parenthesis |
bool |
Any | false |
space_before_parenthesis |
Replaces
class_definition(php-cs-fixer)