Repository Config
checks:
php:
return_doc_comment_if_not_inferrable: true
remove_extra_empty_lines: true
parameter_doc_comments: true
param_doc_comment_if_not_inferrable: true
more_specific_types_in_doc_comments: true
simplify_boolean_return: true
return_doc_comments: true
filter:
dependency_paths:
- phpBB/phpBB/
coding_style:
php:
indentation:
general:
use_tabs: true
spaces:
around_operators:
concatenation: true
build:
nodes:
analysis:
tests:
override:
-
command: phpcs-run
use_website_config: true
- php-scrutinizer-run
dependencies:
before:
- composer require --dev phpbb/phpbb
Global Config
checks:
php:
uppercase_constants: true
remove_extra_empty_lines: true
fix_line_ending: true
encourage_single_quotes: true
encourage_postdec_operator: true
fix_doc_comments: false
newline_at_end_of_file: true
avoid_multiple_statements_on_same_line: true
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: false
order_alphabetically: true
param_doc_comment_if_not_inferrable: true
parameter_doc_comments: true
phpunit_assertions: true
simplify_boolean_return: true
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