.php_cs 762 B

123456789101112131415161718192021222324252627
  1. <?php
  2. $header = <<<EOF
  3. This file is part of ibrand/laravel-scheduling.
  4. (c) iBrand <https://www.ibrand.cc>
  5. For the full copyright and license information, please view the LICENSE
  6. file that was distributed with this source code.
  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. ;