1234567891011121314151617181920212223242526272829303132333435 |
- =======================
- Rule set ``@PER-CS2.0``
- =======================
- Rules `///per//>`_.
- Rules
- -----
- - `@PER-CS1.0 <./`
- - `array_indentation /..//whitespace/`
- - `array_syntax /..//array_notation/`
- - `cast_spaces /..//cast_notation/`
- - `concat_space /..//operator/`
- ``['spacing' => 'one']``
- - `function_declaration /..//function_notation/`
- ``['closure_fn_spacing' => 'none']``
- - `method_argument_space /..//function_notation/`
- - `new_with_parentheses /..//operator/`
- ``['anonymous_class' => false]``
- - `single_line_empty_body /..//basic/`
- - `single_space_around_construct /..//language_construct/`
- ``['constructs_followed_by_a_single_space' => ['abstract', 'as', 'case', 'catch', 'class', 'const', 'const_import', 'do', 'else', 'elseif', 'enum', 'final', 'finally', 'for', 'foreach', 'function', 'function_import', 'if', 'insteadof', 'interface', 'match', 'named_argument', 'namespace', 'new', 'private', 'protected', 'public', 'readonly', 'static', 'switch', 'trait', 'try', 'type_colon', 'use', 'use_lambda', 'while'], 'constructs_preceded_by_a_single_space' => ['as', 'else', 'elseif', 'use_lambda']]``
- - `trailing_comma_in_multiline /..//control_structure/`
- ``['after_heredoc' => true, 'elements' => ['arguments', 'array_destructuring', 'arrays', 'match', 'parameters']]``
|