.php_cs 571 B

1234567891011121314151617181920
  1. <?php
  2. return (new MattAllan\LaravelCodeStyle\Config())
  3. ->setFinder(
  4. PhpCsFixer\Finder::create()
  5. ->exclude('vendor')
  6. ->in(__DIR__)
  7. )
  8. ->setRules([
  9. '@Laravel' => true,
  10. '@Laravel:risky' => true,
  11. 'array_syntax' => array('syntax' => 'short'),
  12. 'ordered_imports' => true,
  13. 'no_useless_else' => true,
  14. 'no_useless_return' => true,
  15. 'php_unit_construct' => true,
  16. 'php_unit_strict' => true,
  17. 'yoda_style' => false,
  18. ])
  19. ->setRiskyAllowed(true);