2017-10-10 08:07:50 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
$finder = PhpCsFixer\Finder::create()
|
2018-05-02 13:54:17 +02:00
|
|
|
->exclude('lib')
|
2017-10-10 08:07:50 +02:00
|
|
|
->exclude('vendor')
|
|
|
|
->exclude('templates')
|
|
|
|
->exclude('templates_c')
|
|
|
|
->exclude('debian')
|
2018-01-25 22:02:11 +01:00
|
|
|
->files()->notName('config.inc.php')->notName('config.local.php')
|
2017-10-10 08:07:50 +02:00
|
|
|
->in(__DIR__);
|
|
|
|
|
|
|
|
return PhpCsFixer\Config::create()
|
|
|
|
->setFinder($finder)
|
|
|
|
->setRules(array(
|
2017-10-11 10:14:26 +02:00
|
|
|
'@PSR2' => true,
|
2018-04-22 18:24:41 +02:00
|
|
|
'method_argument_space' => false, # don't break formatting in initStruct()
|
|
|
|
'no_spaces_inside_parenthesis' => false, # don't break formatting in initStruct()
|
2017-10-10 08:07:50 +02:00
|
|
|
));
|
2018-04-22 18:24:41 +02:00
|
|
|
|
|
|
|
/* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4 ft=php: */
|