Rule set as used by the PHP-CS-Fixer development team, highly opinionated.
- @Symfony
- align_multiline_comment
- array_indentation
- blank_line_before_statement
config:
['statements' => ['break', 'case', 'continue', 'declare', 'default', 'exit', 'goto', 'include', 'include_once', 'require', 'require_once', 'return', 'switch', 'throw', 'try']]
- combine_consecutive_issets
- combine_consecutive_unsets
- escape_implicit_backslashes
- explicit_indirect_variable
- explicit_string_variable
- heredoc_to_nowdoc
- method_argument_space
config:
['on_multiline' => 'ensure_fully_multiline']
- method_chaining_indentation
- multiline_comment_opening_closing
- multiline_whitespace_before_semicolons
config:
['strategy' => 'new_line_for_chained_calls']
- no_extra_blank_lines
config:
['tokens' => ['break', 'case', 'continue', 'curly_brace_block', 'default', 'extra', 'parenthesis_brace_block', 'return', 'square_brace_block', 'switch', 'throw', 'use', 'use_trait']]
- no_null_property_initialization
- no_superfluous_elseif
- no_useless_else
- no_useless_return
- operator_linebreak
config:
['only_booleans' => true]
- ordered_class_elements
- php_unit_internal_class
- php_unit_test_class_requires_covers
- phpdoc_add_missing_param_annotation
- phpdoc_no_empty_return
- phpdoc_order
- phpdoc_order_by_value
- phpdoc_types_order
- phpdoc_var_annotation_correct_order
- return_assignment
- simple_to_complex_string_variable
- single_line_comment_style
- single_line_throw