Checkout Config
build:
environment:
php:
version: 5.6.9
mysql: 5.5
project_setup:
before:
- sudo service start mysql || true
- mysql -e "CREATE DATABASE test_database_name"
tests:
override:
command: 'phpunit --configuration `pwd`/.scrutinizer.phpunit.xml.dist'
Repository Config
filter:
excluded_paths:
- 'test/*'
checks:
php:
return_doc_comments: true
function_in_camel_caps: true
line_length:
max_length: '120'
no_goto: true
no_long_variable_names:
maximum: '20'
no_new_line_at_end_of_file: true
uppercase_constants: true
simplify_boolean_return: true
return_doc_comment_if_not_inferrable: true
properties_in_camelcaps: true
prefer_while_loop_over_for_loop: true
parameter_doc_comments: true
parameters_in_camelcaps: true
param_doc_comment_if_not_inferrable: true
optional_parameters_at_the_end: true
no_short_variable_names:
minimum: '3'
no_short_method_names:
minimum: '3'
fix_line_ending: true
align_assignments: true
coding_style:
php:
spaces:
other:
after_type_cast: false
build: true