Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 20 lines (15 sloc) 436 Bytes
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__);
$rules = [
'psr0' => false,
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'phpdoc_order' => true,
'ordered_imports' => true,
];
$cacheDir = getenv('TRAVIS') ? getenv('HOME') . '/.php-cs-fixer' : __DIR__;
return PhpCsFixer\Config::create()
->setRules($rules)
->setFinder($finder)
->setCacheFile($cacheDir . '/.php_cs.cache');