.php_cs 815 B

1234567891011121314151617181920212223242526272829303132
  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. ))
  24. ->setUsingCache(true)
  25. ->finder($finder)
  26. ;