
@PhpCsFixer
¶Rule set as used by the PHP-CS-Fixer development team, highly opinionated.
blank_line_before_statement
config:
['statements' => ['break', 'case', 'continue', 'declare', 'default', 'exit', 'goto', 'include', 'include_once', 'phpdoc', 'require', 'require_once', 'return', 'switch', 'throw', 'try', 'yield', 'yield_from']]
method_argument_space
config:
['on_multiline' => 'ensure_fully_multiline']
multiline_whitespace_before_semicolons
config:
['strategy' => 'new_line_for_chained_calls']
no_extra_blank_lines
config:
['tokens' => ['attribute', 'break', 'case', 'continue', 'curly_brace_block', 'default', 'extra', 'parenthesis_brace_block', 'return', 'square_brace_block', 'switch', 'throw', 'use']]
no_unneeded_control_parentheses
config:
['statements' => ['break', 'clone', 'continue', 'echo_print', 'negative_instanceof', 'others', 'return', 'switch_case', 'yield', 'yield_from']]
operator_linebreak
config:
['only_booleans' => true]
whitespace_after_comma_in_array
config:
['ensure_single_space' => true]