You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<?php
|
|
|
|
|
|
|
|
$finder = PhpCsFixer\Finder::create()
|
|
|
|
->exclude('lib')
|
|
|
|
->exclude('vendor')
|
|
|
|
->exclude('templates')
|
|
|
|
->exclude('templates_c')
|
|
|
|
->exclude('debian')
|
|
|
|
->files()->notName('config.inc.php')->notName('config.local.php')
|
|
|
|
->in(__DIR__);
|
|
|
|
|
|
|
|
return PhpCsFixer\Config::create()
|
|
|
|
->setFinder($finder)
|
|
|
|
->setRules(array(
|
|
|
|
'@PSR2' => true,
|
|
|
|
'braces' => array(
|
|
|
|
'position_after_functions_and_oop_constructs' => 'same',
|
|
|
|
),
|
|
|
|
'method_argument_space' => false, # don't break formatting in initStruct()
|
|
|
|
'no_spaces_inside_parenthesis' => false, # don't break formatting in initStruct()
|
|
|
|
));
|
|
|
|
|
|
|
|
/* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4 ft=php: */
|