Checkout Config
filter:
excluded_paths:
- tests/*
checks:
php:
verify_property_names: true
verify_argument_usable_as_reference: true
verify_access_scope_valid: true
variable_existence: true
return_doc_comments: true
parameter_doc_comments: true
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: false
order_alphabetically: true
use_self_instead_of_fqcn: true
uppercase_constants: true
simplify_boolean_return: true
remove_extra_empty_lines: true
phpunit_assertions: true
optional_parameters_at_the_end: true
newline_at_end_of_file: true
function_in_camel_caps: true
fix_line_ending: true
encourage_single_quotes: true
classes_in_camel_caps: true
avoid_multiple_statements_on_same_line: true
avoid_fixme_comments: true
return_doc_comment_if_not_inferrable: true
param_doc_comment_if_not_inferrable: true
coding_style:
php:
indentation:
general:
use_tabs: true
size: 2
spaces:
before_parentheses:
closure_definition: true
around_operators:
concatenation: true
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
else_on_new_line: true
for:
opening: end-of-line
while:
opening: end-of-line
do_while:
opening: end-of-line
while_on_new_line: true
switch:
opening: end-of-line
try:
opening: end-of-line
catch_on_new_line: true
finally_on_new_line: true
upper_lower_casing:
keywords:
general: lower
constants:
true_false_null: lower
tools:
php_code_sniffer:
enabled: true
config:
standard: PSR2
filter:
paths: ["src/*", "tests/*"]
php_cpd:
enabled: true
excluded_dirs: ["docs", "tests", "vendor"]
php_loc:
enabled: true
excluded_dirs: ["docs", "vendor"]
php_mess_detector:
enabled: true
filter:
paths: ["src/*", "tests/*"]
php_pdepend:
enabled: true
excluded_dirs: ["docs", "tests", "vendor"]
php_analyzer: true
php_analyzer:
filter:
paths: ["src/*"]
sensiolabs_security_checker: true
external_code_coverage:
timeout: 600
build:
tests:
override:
-
command: 'vendor/bin/phpunit --coverage-clover=some-file'
coverage:
file: 'some-file'
format: 'clover'
Repository Config
checks:
php:
fix_php_opening_tag: false
remove_php_closing_tag: false
one_class_per_file: false
side_effects_or_types: false
no_mixed_inline_html: false
require_braces_around_control_structures: false
php5_style_constructor: false
no_global_keyword: false
avoid_usage_of_logical_operators: false
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
filter: { }
coding_style:
php: { }