.php_cs 766 B

12345678910111213141516171819202122232425262728
  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. ;