Checkout Config
filter:
excluded_paths: [tests/*]
checks:
php:
code_rating: true
duplication: true
remove_extra_empty_lines: true
remove_php_closing_tag: true
remove_trailing_whitespace: true
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: true
order_alphabetically: true
fix_php_opening_tag: true
fix_linefeed: true
fix_line_ending: true
fix_identation_4spaces: true
fix_doc_comments: true
Repository Config
# language: php
# tests: true
checks:
php:
verify_property_names: true
verify_argument_usable_as_reference: true
verify_access_scope_valid: true
variable_existence: true
useless_calls: true
use_statement_alias_conflict: true
use_self_instead_of_fqcn: true
uppercase_constants: true
unused_properties: true
unused_variables: true
unused_methods: true
unreachable_code: true
too_many_arguments: true
switch_fallthrough_commented: true
single_namespace_per_use: true
simplify_boolean_return: true
side_effects_or_types: true
security_vulnerabilities: false
return_in_constructor: true
return_doc_comments: true
return_doc_comment_if_not_inferrable: true
require_scope_for_properties: true
require_scope_for_methods: true
require_php_tag_first: true
psr2_switch_declaration: true
psr2_class_declaration: true
property_assignments: true
properties_in_camelcaps: true
phpunit_assertions: true
php5_style_constructor: true
parse_doc_comments: true
parameters_in_camelcaps: true
parameter_non_unique: true
parameter_doc_comments: true
param_doc_comment_if_not_inferrable: true
overriding_private_members: true
overriding_parameter: true
optional_parameters_at_the_end: true
one_class_per_file: true
non_commented_empty_catch_block: true
no_unnecessary_if: true
no_underscore_prefix_in_methods: true
no_underscore_prefix_in_properties: true
no_trait_type_hints: true
no_trailing_whitespace: true
no_short_variable_names:
minimum: '3'
no_short_open_tag: true
no_short_method_names:
minimum: '3'
no_non_implemented_abstract_methods: true
no_property_on_interface: true
argument_type_checks: true
assignment_of_null_return: true
avoid_aliased_php_functions: true
avoid_closing_tag: true
avoid_conflicting_incrementers: true
avoid_corrupting_byteorder_marks: true
avoid_duplicate_types: true
avoid_fixme_comments: true
avoid_length_functions_in_loops: true
avoid_superglobals: true
avoid_todo_comments: true
avoid_unnecessary_concatenation: true
avoid_usage_of_logical_operators: true
avoid_useless_overridden_methods: true
blank_line_after_namespace_declaration: true
call_to_parent_method: true
catch_class_exists: true
check_method_contracts:
verify_interface_like_constraints: true
verify_documented_constraints: true
verify_parent_constraints: true
classes_in_camel_caps: true
closure_use_not_conflicting: true
code_rating: true
comparison_always_same_result: true
deadlock_detection_in_loops: true
deprecated_code_usage: true
duplication: true
encourage_postdec_operator: true
encourage_shallow_comparison: true
encourage_single_quotes: true
fix_doc_comments: true
foreach_traversable: true
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: false
order_alphabetically: true
function_in_camel_caps: true
foreach_usable_as_reference: true
instanceof_class_exists: true
line_length:
max_length: '120'
method_calls_on_non_object: true
missing_arguments: true
no_commented_out_code: true
no_debug_code: true
no_duplicate_arguments: true
no_empty_statements: true
no_error_suppression: true
no_eval: true
no_exit: true
no_global_keyword: true
no_goto: true
no_long_variable_names:
maximum: '20'