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.
 
 
 
 
 
 

28 lines
739 B

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