Repository Config
filter:
excluded_paths:
- modules/Composer/ansispan.php
- modules/HybridAuth/Hybrid/
- modules/Uploader/Mime/Mime.php
- core/thirdparty/
- tests/
checks:
php:
fix_php_opening_tag: false
remove_php_closing_tag: false
one_class_per_file: true
side_effects_or_types: true
no_mixed_inline_html: false
require_braces_around_control_structures: false
php5_style_constructor: true
no_global_keyword: true
avoid_usage_of_logical_operators: true
psr2_class_declaration: false
no_underscore_prefix_in_properties: false
no_underscore_prefix_in_methods: false
blank_line_after_namespace_declaration: false
single_namespace_per_use: false
psr2_switch_declaration: false
psr2_control_structure_declaration: false
avoid_superglobals: false
security_vulnerabilities: false
no_exit: false
uppercase_constants: true
simplify_boolean_return: true
return_doc_comments: true
prefer_while_loop_over_for_loop: true
parameter_doc_comments: true
optional_parameters_at_the_end: true
more_specific_types_in_doc_comments: true
encourage_postdec_operator: true
avoid_multiple_statements_on_same_line: true
symfony_request_injection: false
require_scope_for_methods: false
non_commented_empty_catch_block: true
no_error_suppression: false
fix_doc_comments: false
avoid_entity_manager_injection: false
variable_existence: false
encourage_shallow_comparison: false
verify_property_names: false
duplication: false
sql_injection_vulnerabilities: false
no_eval: true
overriding_parameter: false
return_doc_comment_if_not_inferrable: true
no_goto: true
newline_at_end_of_file: true
encourage_single_quotes: true
coding_style:
php:
indentation:
general:
use_tabs: true
spaces:
before_parentheses:
function_declaration: true
closure_definition: true
around_operators:
concatenation: false
other:
after_type_cast: false
braces:
classes_functions:
class: end-of-line
function: end-of-line
closure: 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
tools:
php_analyzer:
config:
checkstyle:
enabled: false
external_code_coverage:
runs: 2
timeout: 900