Repository Config
checks:
php:
use_self_instead_of_fqcn: true
uppercase_constants: true
simplify_boolean_return: true
return_doc_comments: true
return_doc_comment_if_not_inferrable: true
phpunit_assertions: true
parameter_doc_comments: true
param_doc_comment_if_not_inferrable: true
optional_parameters_at_the_end: true
no_goto: true
newline_at_end_of_file: true
more_specific_types_in_doc_comments: true
encourage_single_quotes: true
encourage_postdec_operator: true
avoid_multiple_statements_on_same_line: true
filter:
excluded_paths:
- migrations/*
- tests/*
- travis/*
coding_style:
php:
indentation:
general:
use_tabs: true
spaces:
around_operators:
concatenation: true
braces:
classes_functions:
class: new-line
function: new-line
closure: new-line
if:
opening: new-line
else_on_new_line: true
for:
opening: new-line
while:
opening: new-line
do_while:
opening: new-line
while_on_new_line: true
switch:
opening: new-line
try:
opening: new-line
catch_on_new_line: true
finally_on_new_line: true
upper_lower_casing:
keywords:
general: lower
constants:
true_false_null: lower
tools:
external_code_coverage:
timeout: 1000
php_code_coverage:
enabled: true