Global Config
filter:
excluded_paths:
- 'tests/*'
checks:
php:
duplication: true
unused_methods: true
unused_parameters: true
argument_type_checks: true
verify_property_names: true
method_calls_on_non_object: true
fix_doc_comments: true
instanceof_class_exists: true
catch_class_exists: true
assignment_of_null_return: true
use_statement_alias_conflict: false
simplify_boolean_return: true
return_doc_comments: true
return_doc_comment_if_not_inferrable: true
properties_in_camelcaps: true
parameter_doc_comments: true
phpunit_assertions: true
param_doc_comment_if_not_inferrable: true
overriding_parameter: true
optional_parameters_at_the_end: true
no_short_variable_names:
minimum: '3'
no_short_method_names:
minimum: '3'
no_long_variable_names:
maximum: '20'
no_goto: true
line_length:
max_length: '140'
function_in_camel_caps: true
encourage_single_quotes: true
classes_in_camel_caps: true
avoid_perl_style_comments: true
avoid_multiple_statements_on_same_line: true
align_assignments: true
no_new_line_at_end_of_file: true
uppercase_constants: true
variable_existence: true
fix_use_statements:
remove_unused: true
preserve_multiple: true
preserve_blanklines: false
order_alphabetically: true
check_method_contracts:
verify_interface_like_constraints: true
verify_documented_constraints: true
verify_parent_constraints: true
avoid_unnecessary_concatenation: true
use_self_instead_of_fqcn: true
prefer_while_loop_over_for_loop: true
parameters_in_camelcaps: true
newline_at_end_of_file: true
fix_line_ending: true
javascript: true
coding_style:
php:
spaces:
before_parentheses:
closure_definition: true
around_operators:
concatenation: true
braces:
classes_functions:
class: new-line
function: new-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
build:
environment:
php:
version: 7.0.7 # Common versions: 5.4, 5.5, 5.6, 7.0 or hhvm
tests:
override:
- ./runtests.sh