Checkout Config
tools:
php_analyzer:
config:
metrics_coupling:
stable_code:
namespace_prefixes:
- SetBased\Stratum\MySql\Wrapper
filter:
dependency_paths:
- "vendor/"
excluded_paths:
- 'test/'
build:
environment:
mysql: 5.7
php:
pecl_extensions:
- inotify
project_setup:
before:
- mysql --version
- mysql -u root -e "set global binlog_format = 'row';"
- mysql -u root -e "set global log_bin_trust_function_creators = 1;"
nodes:
analysis:
tests:
override:
- php-scrutinizer-run
coverage:
tests:
override:
- command: './bin/phing unit'
coverage:
file: 'test/coverage.xml'
format: 'php-clover'
Global Config
filter:
excluded_paths:
- 'test/*'
checks:
javascript: true
php: true
coding_style:
php:
indentation:
general:
size: 2
spaces:
around_operators:
equality: false
braces:
classes_functions:
class: new-line
function: new-line
closure: new-line
if:
opening: new-line
always: false
else_on_new_line: true
for:
opening: new-line
always: false
while:
opening: new-line
always: false
do_while:
opening: new-line
always: false
while_on_new_line: true
switch:
opening: new-line
try:
opening: new-line
catch_on_new_line: true
finally_on_new_line: true
upper_lower_casing:
keywords:
general: lower
constants:
true_false_null: lower