Repository Config
filter:
excluded_paths:
- 'tests/*'
- 'bin/*'
- 'modules/webfonts/webfonts.php'
- 'core/webfonts.php'
- 'lib/*'
checks:
php:
avoid_perl_style_comments: true
coding_standard:
name: WordPress
encourage_postdec_operator: true
fix_line_ending: true
newline_at_end_of_file: true
param_doc_comment_if_not_inferrable: true
parameter_doc_comments: true
phpunit_assertions: true
return_doc_comment_if_not_inferrable: true
return_doc_comments: true
simplify_boolean_return: true
uppercase_constants: true
use_self_instead_of_fqcn: true
symfony_request_injection: false
side_effects_or_types: false
psr2_class_declaration: false
no_global_keyword: false
no_exit: false
no_commented_out_code: true
duplication: false
remove_extra_empty_lines: true
prefer_while_loop_over_for_loop: true
no_short_method_names:
minimum: '3'
no_goto: true
encourage_single_quotes: true
no_short_variable_names:
minimum: '3'
avoid_unnecessary_concatenation: true
coding_style:
php:
indentation:
general:
use_tabs: true
spaces:
around_operators:
concatenation: true
negation: true
within:
array_initializer: true
grouping: true
function_call: true
function_declaration: true
if: true
for: true
while: true
switch: true
catch: true
braces:
classes_functions:
class: end-of-line
function: end-of-line
closure: new-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