.php-cs-fixer.dist.php 391 B

123456789101112131415161718
  1. <?php
  2. $config = new PhpCsFixer\Config();
  3. $config
  4. ->setRules([
  5. '@PSR2' => true,
  6. '@PSR12' => true,
  7. 'array_syntax' => ['syntax' => 'short'],
  8. 'nullable_type_declaration_for_default_null_value' => true
  9. ])
  10. ->setFinder(
  11. PhpCsFixer\Finder::create()
  12. ->in(__DIR__ . '/src')
  13. ->in(__DIR__ . '/tests')
  14. )
  15. ;
  16. return $config;