Rule set @PSR2
¶
Rules that follow PSR-2 standard.
Rules¶
method_argument_space with config:
['attribute_placement' => 'ignore', 'on_multiline' => 'ensure_fully_multiline']
single_class_element_per_statement with config:
['elements' => ['property']]
single_space_around_construct with config:
['constructs_followed_by_a_single_space' => ['abstract', 'as', 'case', 'catch', 'class', 'do', 'else', 'elseif', 'final', 'for', 'foreach', 'function', 'if', 'interface', 'namespace', 'private', 'protected', 'public', 'static', 'switch', 'trait', 'try', 'use_lambda', 'while'], 'constructs_preceded_by_a_single_space' => ['as', 'else', 'elseif', 'use_lambda']]
visibility_required with config:
['elements' => ['method', 'property']]