Repository Config
checks:
php:
parameter_doc_comments: true
newline_at_end_of_file: true
more_specific_types_in_doc_comments: true
encourage_postdec_operator: true
duplication: true
code_rating: true
no_error_suppression: false
no_eval: false
no_global_keyword: false
no_underscore_prefix_in_methods: false
no_underscore_prefix_in_properties: false
use_self_instead_of_fqcn: true
uppercase_constants: true
remove_extra_empty_lines: true
optional_parameters_at_the_end: true
fix_line_ending: true
encourage_single_quotes: true
avoid_entity_manager_injection: false
too_many_arguments: false
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: false
order_alphabetically: true
simplify_boolean_return: true
coding_style:
php:
indentation:
general:
use_tabs: true
spaces:
ternary_operator:
in_short_version: 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
filter:
excluded_paths:
- "tests/"