Checkout Config
# .scrutinizer.yml - see https://scrutinizer-ci.com/docs/guides/php/continuous-integration-deployment for doc
build:
environment:
php:
version: 5.6.0
ini:
'date.timezone': 'US/Pacific'
'phar.readonly': false
hosts:
my.chamilodev.net: '127.0.0.1'
dependencies:
before:
- composer -v update
filter:
excluded_paths:
- tests/*
- main/img/*
- main/lang/*
- app/cache/*
- app/logs/*
- web/*
- vendor/*
- main/admin/db.php
- app/Migrations/*
checks:
php:
code_rating: true
duplication: true
Repository Config
filter:
paths:
- 'src/*'
checks:
php:
fix_php_opening_tag: false
remove_php_closing_tag: true
one_class_per_file: true
side_effects_or_types: false
no_mixed_inline_html: false
require_braces_around_control_structures: true
php5_style_constructor: true
no_global_keyword: false
avoid_usage_of_logical_operators: false
psr2_class_declaration: true
no_underscore_prefix_in_properties: false
no_underscore_prefix_in_methods: false
blank_line_after_namespace_declaration: true
single_namespace_per_use: false
psr2_switch_declaration: false
psr2_control_structure_declaration: true
avoid_superglobals: false
security_vulnerabilities: false
no_exit: false
uppercase_constants: true
prefer_while_loop_over_for_loop: true
newline_at_end_of_file: true
line_length:
max_length: '120'
parameter_doc_comments: true
parameters_in_camelcaps: true
return_doc_comments: true
coding_style:
php:
spaces:
general:
linefeed_character: newline
around_operators:
concatenation: false
braces:
classes_functions:
class: undefined
function: undefined
closure: undefined
if:
opening: undefined
for:
opening: undefined
while:
opening: undefined
do_while:
opening: undefined
switch:
opening: undefined
try:
opening: undefined
upper_lower_casing:
keywords:
general: undefined
constants:
true_false_null: undefined