Rules that follow PSR-2 standard.
- @PSR1
- blank_line_after_namespace
- braces
- class_definition
- constant_case
- elseif
- function_declaration
- indentation_type
- line_ending
- lowercase_keywords
- method_argument_space
config:
['on_multiline' => 'ensure_fully_multiline']
- no_break_comment
- no_closing_tag
- no_space_around_double_colon
- no_spaces_after_function_name
- no_spaces_inside_parenthesis
- no_trailing_whitespace
- no_trailing_whitespace_in_comment
- single_blank_line_at_eof
- single_class_element_per_statement
config:
['elements' => ['property']]
- single_import_per_statement
- single_line_after_imports
- switch_case_semicolon_to_colon
- switch_case_space
- visibility_required
config:
['elements' => ['method', 'property']]