.php_cs 872 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. $header = <<<EOF
  3. This file is part of the Sonata Project package.
  4. (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  5. For the full copyright and license information, please view the LICENSE
  6. file that was distributed with this source code.
  7. EOF;
  8. Symfony\CS\Fixer\Contrib\HeaderCommentFixer::setHeader($header);
  9. $finder = Symfony\CS\Finder\DefaultFinder::create()
  10. ->in(array(__DIR__))
  11. ->exclude(array('Tests/Fixtures'))
  12. ;
  13. return Symfony\CS\Config\Config::create()
  14. ->level(Symfony\CS\FixerInterface::SYMFONY_LEVEL)
  15. ->fixers(array(
  16. 'header_comment',
  17. '-unalign_double_arrow',
  18. '-unalign_equals',
  19. 'align_double_arrow',
  20. 'newline_after_open_tag',
  21. 'ordered_use',
  22. 'long_array_syntax',
  23. 'php_unit_construct',
  24. 'php_unit_strict',
  25. ))
  26. ->setUsingCache(true)
  27. ->finder($finder)
  28. ;