Global Config
imports:
- php
tools:
php_sim: true
php_pdepend: true
php_analyzer: true
external_code_coverage:
timeout: 180
filter:
excluded_paths:
- 'tests/*'
checks:
php:
verify_property_names: true
verify_argument_usable_as_reference: false
use_self_instead_of_fqcn: true
uppercase_constants: true
simplify_boolean_return: true
return_doc_comment_if_not_inferrable: true
properties_in_camelcaps: true
prefer_while_loop_over_for_loop: true
phpunit_assertions: true
parameters_in_camelcaps: true
param_doc_comment_if_not_inferrable: true
optional_parameters_at_the_end: true
no_goto: true
newline_at_end_of_file: true
function_in_camel_caps: true
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: true
order_alphabetically: false
encourage_single_quotes: true
encourage_postdec_operator: true
classes_in_camel_caps: true
avoid_perl_style_comments: true
avoid_multiple_statements_on_same_line: true
fix_doc_comments: true
switch_fallthrough_commented: false
psr2_switch_declaration: false
psr2_class_declaration: false
non_commented_empty_catch_block: false
avoid_unnecessary_concatenation: true
duplication: false
coding_style:
php:
indentation:
general:
use_tabs: true
spaces:
around_operators:
concatenation: true
braces:
classes_functions:
class: end-of-line
function: end-of-line
if:
opening: end-of-line
for:
opening: end-of-line
while:
opening: end-of-line
do_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