Repository Config
checks:
php:
code_rating: 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
uppercase_constants: true
prefer_while_loop_over_for_loop: true
parameter_doc_comments: true
newline_at_end_of_file: true
line_length:
max_length: '120'
simplify_boolean_return: true
coding_style:
php:
spaces:
before_parentheses:
closure_definition: true
around_operators:
concatenation: true
other:
after_type_cast: false
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.8
tests:
override:
-
command: vendor/bin/phpunit --coverage-clover=coverage.xml --bootstrap=vendor/autoload.php --whitelist=src/ tests/
coverage:
file: coverage.xml
format: php-clover