Rule set @PSR12
¶
Rules that follow PSR-12 standard.
Rules¶
binary_operator_spaces with config:
['default' => 'at_least_single_space']
braces_position with config:
['allow_single_line_empty_anonymous_classes' => true]
class_definition with config:
['inline_constructor_arguments' => false, 'space_before_parenthesis' => true]
no_extra_blank_lines with config:
['tokens' => ['use']]
ordered_class_elements with config:
['order' => ['use_trait']]
ordered_imports with config:
['imports_order' => ['class', 'function', 'const'], 'sort_algorithm' => 'none']
single_import_per_statement with config:
['group_to_single_imports' => false]
single_space_around_construct with config:
['constructs_followed_by_a_single_space' => ['abstract', 'as', 'case', 'catch', 'class', 'const_import', 'do', 'else', 'elseif', 'final', 'finally', 'for', 'foreach', 'function', 'function_import', 'if', 'insteadof', 'interface', 'namespace', 'new', 'private', 'protected', 'public', 'static', 'switch', 'trait', 'try', 'use', 'use_lambda', 'while'], 'constructs_preceded_by_a_single_space' => ['as', 'else', 'elseif', 'use_lambda']]
unary_operator_spaces with config:
['only_dec_inc' => true]