Rule set as used by the PHP-CS-Fixer development team, highly opinionated.
- @PER-CS
- @Symfony
blank_line_before_statement with config:
['statements' => ['break', 'case', 'continue', 'declare', 'default', 'exit', 'goto', 'include', 'include_once', 'phpdoc', 'require', 'require_once', 'return', 'switch', 'throw', 'try', 'yield', 'yield_from']]
- combine_consecutive_issets
- combine_consecutive_unsets
- empty_loop_body
- explicit_indirect_variable
- explicit_string_variable
fully_qualified_strict_types with config:
['import_symbols' => true]
- heredoc_to_nowdoc
method_argument_space with config:
['on_multiline' => 'ensure_fully_multiline']
- method_chaining_indentation
- multiline_comment_opening_closing
multiline_whitespace_before_semicolons with config:
['strategy' => 'new_line_for_chained_calls']
no_extra_blank_lines with config:
['tokens' => ['attribute', 'break', 'case', 'continue', 'curly_brace_block', 'default', 'extra', 'parenthesis_brace_block', 'return', 'square_brace_block', 'switch', 'throw', 'use']]
- no_superfluous_elseif
no_superfluous_phpdoc_tags with config:
['allow_mixed' => true, 'remove_inheritdoc' => true]
no_unneeded_control_parentheses with config:
['statements' => ['break', 'clone', 'continue', 'echo_print', 'negative_instanceof', 'others', 'return', 'switch_case', 'yield', 'yield_from']]
- no_useless_else
- no_useless_return
no_whitespace_before_comma_in_array with config:
['after_heredoc' => true]
- ordered_class_elements
- ordered_types
- php_unit_internal_class
- php_unit_test_class_requires_covers
- phpdoc_add_missing_param_annotation
- phpdoc_no_empty_return
- phpdoc_order_by_value
- phpdoc_types_order
- phpdoc_var_annotation_correct_order
- protected_to_private
- return_assignment
- self_static_accessor
- single_line_comment_style
- single_line_empty_body
string_implicit_backslashes with config:
['single_quoted' => 'ignore']
whitespace_after_comma_in_array with config:
['ensure_single_space' => true]