Checkout Config
build:
environment:
php:
version: 7.0.8
tests:
override:
-
command: 'phpunit'
coverage:
file: 'build/logs/coverage.xml'
format: 'php-clover'
checks:
php:
line_length:
max_length: '80'
tools:
php_code_sniffer:
config:
standard: "PSR2"
Repository Config
filter:
excluded_paths:
- 'vendor/*'
checks:
php:
line_length:
max_length: '80'
use_self_instead_of_fqcn: true
simplify_boolean_return: true
return_doc_comments: true
properties_in_camelcaps: true
remove_extra_empty_lines: true
parameters_in_camelcaps: true
parameter_doc_comments: true
optional_parameters_at_the_end: true
newline_at_end_of_file: true
more_specific_types_in_doc_comments: true
function_in_camel_caps: true
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: false
order_alphabetically: true
encourage_single_quotes: true
classes_in_camel_caps: true
avoid_multiple_statements_on_same_line: true
align_assignments: true
tools:
php_code_sniffer:
config:
standard: "PSR2"
coding_style:
php:
spaces:
around_operators:
concatenation: true
negation: true
braces:
classes_functions:
class: new-line
function: new-line
closure: end-of-line
if:
opening: end-of-line
upper_lower_casing:
keywords:
general: lower
constants:
true_false_null: lower