Checkout Config
filter:
paths: [src/*]
excluded_paths: [tests/*]
checks:
php:
code_rating: true
remove_extra_empty_lines: true
remove_php_closing_tag: true
remove_trailing_whitespace: true
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: false
order_alphabetically: true
fix_php_opening_tag: true
fix_linefeed: true
fix_line_ending: true
fix_doc_comments: true
non_commented_empty_catch_block: false
encourage_single_quotes: true
unused_parameters: false
tools:
external_code_coverage:
timeout: 600
runs: 3
Repository Config
filter:
excluded_paths:
- 'tests/*'
checks:
php:
uppercase_constants: true
return_doc_comments: true
simplify_boolean_return: true
remove_extra_empty_lines: true
properties_in_camelcaps: true
prefer_while_loop_over_for_loop: true
phpunit_assertions: true
parameter_doc_comments: true
optional_parameters_at_the_end: true
newline_at_end_of_file: true
more_specific_types_in_doc_comments: false
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: false
order_alphabetically: true
classes_in_camel_caps: true
avoid_unnecessary_concatenation: true
avoid_perl_style_comments: true
avoid_multiple_statements_on_same_line: true
unused_parameters: false
psr2_switch_declaration: true
psr2_class_declaration: true
encourage_single_quotes: true
non_commented_empty_catch_block: false
coding_style:
php:
braces:
classes_functions:
class: new-line
function: new-line
closure: new-line
if:
opening: end-of-line
for:
opening: end-of-line
while:
opening: end-of-line
switch:
opening: end-of-line
try:
opening: end-of-line
upper_lower_casing:
keywords:
general: lower
constants:
true_false_null: lower