Permalink
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (28 sloc) 772 Bytes
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->ignoreDotFiles(true)
->ignoreVCS(true)
->exclude(array('build', 'vendor'))
->files()
->name('*.php')
;
return PhpCsFixer\Config::create()
->setUsingCache(true)
->setRiskyAllowed(true)
->setFinder($finder)
->setRules(array(
'@Symfony' => true,
'array_syntax' => array('syntax' => 'long'),
'binary_operator_spaces' => array(
'align_double_arrow' => false,
),
'combine_consecutive_unsets' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_imports' => true,
'php_unit_strict' => true,
'phpdoc_summary' => false,
'strict_comparison' => true,
))
;