Rules that follow PSR-12 standard.
- @PSR2
binary_operator_spaces with config:
['default' => 'at_least_single_space']
- blank_line_after_opening_tag
- blank_line_between_import_groups
- blank_lines_before_namespace
braces_position with config:
['allow_single_line_empty_anonymous_classes' => true]
class_definition with config:
['inline_constructor_arguments' => false, 'space_before_parenthesis' => true]
- compact_nullable_type_declaration
- declare_equal_normalize
- lowercase_cast
- lowercase_static_reference
- new_with_parentheses
- no_blank_lines_after_class_opening
- no_leading_import_slash
- no_whitespace_in_blank_line
ordered_class_elements with config:
['order' => ['use_trait']]
ordered_imports with config:
['imports_order' => ['class', 'function', 'const'], 'sort_algorithm' => 'none']
- return_type_declaration
- short_scalar_cast
single_import_per_statement with config:
['group_to_single_imports' => false]
- single_trait_insert_per_statement
- ternary_operator_spaces
unary_operator_spaces with config:
['only_dec_inc' => true]
- visibility_required