
@Symfony
¶Rules that follow the official Symfony Coding Standards.
blank_line_before_statement
config:
['statements' => ['return']]
braces
config:
['allow_single_line_anonymous_class_with_empty_body' => true, 'allow_single_line_closure' => true]
class_attributes_separation
config:
['elements' => ['method' => 'one']]
class_definition
config:
['single_line' => true]
empty_loop_body
config:
['style' => 'braces']
general_phpdoc_tag_rename
config:
['replacements' => ['inheritDocs' => 'inheritDoc']]
method_argument_space
config:
['on_multiline' => 'ignore']
no_extra_blank_lines
config:
['tokens' => ['case', 'continue', 'curly_brace_block', 'default', 'extra', 'parenthesis_brace_block', 'square_brace_block', 'switch', 'throw', 'use']]
no_superfluous_phpdoc_tags
config:
['allow_mixed' => true, 'allow_unused_params' => true]
no_unneeded_control_parentheses
config:
['statements' => ['break', 'clone', 'continue', 'echo_print', 'return', 'switch_case', 'yield', 'yield_from']]
no_unneeded_curly_braces
config:
['namespaces' => true]
phpdoc_tag_type
config:
['tags' => ['inheritDoc' => 'inline']]
phpdoc_types_order
config:
['null_adjustment' => 'always_last', 'sort_algorithm' => 'none']
single_line_comment_style
config:
['comment_types' => ['hash']]
space_after_semicolon
config:
['remove_in_empty_for_expressions' => true]