Rule set @PhpCsFixer
¶
Rule set as used by the PHP-CS-Fixer development team, highly opinionated.
Rules¶
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']]
fully_qualified_strict_types with config:
['import_symbols' => true]
method_argument_space with config:
['on_multiline' => 'ensure_fully_multiline']
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_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_whitespace_before_comma_in_array with config:
['after_heredoc' => true]
trailing_comma_in_multiline with config:
['after_heredoc' => true, 'elements' => ['array_destructuring', 'arrays']]
whitespace_after_comma_in_array with config:
['ensure_single_space' => true]