.php_cs.dist 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. $header = <<<EOF
  3. AJGL Breakpoint Twig Extension Component
  4. Copyright (C) Antonio J. García Lagar <aj@garcialagar.es>
  5. For the full copyright and license information, please view the LICENSE
  6. file that was distributed with this source code.
  7. EOF;
  8. return \PhpCsFixer\Config::create()
  9. ->setRiskyAllowed(true)
  10. ->setRules(
  11. [
  12. '@Symfony' => true,
  13. '@Symfony:risky' => true,
  14. 'array_syntax' => array('syntax' => 'short'),
  15. 'fully_qualified_strict_types' => true,
  16. 'header_comment' => array('header' => $header),
  17. 'native_function_invocation' => false,
  18. 'ordered_imports' => [
  19. 'imports_order' => ['class', 'const', 'function'],
  20. ],
  21. 'phpdoc_order' => true,
  22. 'psr4' => true,
  23. 'strict_comparison' => true,
  24. 'strict_param' => true,
  25. ]
  26. )
  27. ->setFinder(
  28. \PhpCsFixer\Finder::create()
  29. ->in(__DIR__.'/src')
  30. ->in(__DIR__.'/tests')
  31. )
  32. ;