php-ml/.php_cs
Marcin Michalski 7eee6748d2 php-cs-fixer (#85)
Remove obsolete php-cs-fixer.sh script
Update contributing guidelines
2017-05-13 12:57:32 +02:00

19 lines
505 B
PHP

<?php
return PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'declare_strict_types' => true,
'array_syntax' => ['syntax' => 'short'],
'blank_line_after_opening_tag' => true,
'single_blank_line_before_namespace' => true,
'no_unused_imports' => true
])
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests')
)
->setRiskyAllowed(true)
->setUsingCache(false);