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__);
|
|
|
|
|
2022-06-28 14:27:45 +02:00
|
|
|
return (new PhpCsFixer\Config())
|
2017-10-10 08:07:50 +02:00
|
|
|
->setFinder($finder)
|
|
|
|
->setRules(array(
|
2022-06-28 14:27:45 +02:00
|
|
|
'@PSR12' => true,
|
2017-10-10 08:07:50 +02:00
|
|
|
'braces' => array(
|
|
|
|
'position_after_functions_and_oop_constructs' => 'same',
|
|
|
|
),
|
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: */
|