.php_cs.dist 655 B

123456789101112131415161718
  1. <?php
  2. $finder = PhpCsFixer\Finder::create()->in(__DIR__);
  3. return PhpCsFixer\Config::create()
  4. ->setFinder($finder)
  5. ->setRules(array(
  6. '@Symfony' => true,
  7. '@Symfony:risky' => true,
  8. 'fopen_flags' => false,
  9. '@PHPUnit48Migration:risky' => true,
  10. 'array_syntax' => ['syntax' => 'short'],
  11. 'ordered_imports' => true,
  12. 'php_unit_no_expectation_annotation' => false, // part of `PHPUnitXYMigration:risky` ruleset, to be enabled when PHPUnit 4.x support will be dropped, as we don't want to rewrite exceptions handling twice
  13. 'protected_to_private' => false,
  14. ))
  15. ->setRiskyAllowed(true)
  16. ;