You can not 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_cs.dist 739B

1234567891011121314151617181920212223
  1. <?php
  2. $finder = PhpCsFixer\Finder::create()
  3. ->exclude('lib')
  4. ->exclude('vendor')
  5. ->exclude('templates')
  6. ->exclude('templates_c')
  7. ->exclude('debian')
  8. ->files()->notName('config.inc.php')->notName('config.local.php')
  9. ->in(__DIR__);
  10. return PhpCsFixer\Config::create()
  11. ->setFinder($finder)
  12. ->setRules(array(
  13. '@PSR2' => true,
  14. 'braces' => array(
  15. 'position_after_functions_and_oop_constructs' => 'same',
  16. ),
  17. 'method_argument_space' => false, # don't break formatting in initStruct()
  18. 'no_spaces_inside_parenthesis' => false, # don't break formatting in initStruct()
  19. ));
  20. /* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4 ft=php: */