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