Rules that follow PSR-12 standard.
- @PSR2
- blank_line_after_opening_tag
- blank_line_between_import_groups
- braces
config:
['allow_single_line_anonymous_class_with_empty_body' => true]
- class_definition
config:
['inline_constructor_arguments' => false, 'space_before_parenthesis' => true]
- compact_nullable_typehint
- declare_equal_normalize
- lowercase_cast
- lowercase_static_reference
- new_with_braces
- no_blank_lines_after_class_opening
- no_leading_import_slash
- no_whitespace_in_blank_line
- ordered_class_elements
config:
['order' => ['use_trait']]
- ordered_imports
config:
['imports_order' => ['class', 'function', 'const'], 'sort_algorithm' => 'none']
- return_type_declaration
- short_scalar_cast
- single_blank_line_before_namespace
- single_import_per_statement
config:
['group_to_single_imports' => false]
- single_trait_insert_per_statement
- ternary_operator_spaces
- visibility_required