Fork me on GitHub
a Sensio Labs Product

Folding Bike (v3.88.2) edition

Rule set @PER-CS2x0

Rules that follow PER Coding Style 2.0.

Rules

  • @PER-CS1x0

  • array_indentation

  • array_syntax

  • cast_spaces

  • concat_space with config:

    ['spacing' => 'one']

  • function_declaration with config:

    ['closure_fn_spacing' => 'none']

  • method_argument_space with config:

    ['after_heredoc' => false]

  • new_with_parentheses with config:

    ['anonymous_class' => false]

  • single_line_empty_body

  • single_space_around_construct with config:

    ['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 with config:

    ['after_heredoc' => true, 'elements' => ['arguments', 'array_destructuring', 'arrays', 'match', 'parameters']]