.php_cs 703 B

123456789101112131415161718192021222324252627
  1. <?php
  2. $header = <<<EOF
  3. This file is part of the zh-mead/xmnk-bike-control.
  4. (c) mead <751066209@qq.com>
  5. This source file is subject to the MIT license that is bundled.
  6. EOF;
  7. return PhpCsFixer\Config::create()
  8. ->setRiskyAllowed(true)
  9. ->setRules(array(
  10. '@Symfony' => true,
  11. 'header_comment' => array('header' => $header),
  12. 'array_syntax' => array('syntax' => 'short'),
  13. 'ordered_imports' => true,
  14. 'no_useless_else' => true,
  15. 'no_useless_return' => true,
  16. 'php_unit_construct' => true,
  17. 'php_unit_strict' => true,
  18. ))
  19. ->setFinder(
  20. PhpCsFixer\Finder::create()
  21. ->exclude('vendor')
  22. ->in(__DIR__)
  23. )
  24. ;