.php_cs.dist 904 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. $PREDIS_HEADER = <<<EOS
  3. This file is part of the Predis package.
  4. (c) Daniele Alessandri <suppakilla@gmail.com>
  5. For the full copyright and license information, please view the LICENSE
  6. file that was distributed with this source code.
  7. EOS;
  8. return PhpCsFixer\Config::create()
  9. ->setUsingCache(true)
  10. ->setRules(array(
  11. '@Symfony' => true,
  12. 'header_comment' => array(
  13. 'header' => $PREDIS_HEADER,
  14. ),
  15. 'ordered_imports' => true,
  16. 'phpdoc_order' => true,
  17. 'binary_operator_spaces' => array(
  18. 'align_double_arrow' => false,
  19. 'align_equals' => false,
  20. ),
  21. 'array_syntax' => array('syntax' => 'long'),
  22. ))
  23. ->setFinder(
  24. PhpCsFixer\Finder::create()
  25. ->in(__DIR__.'/bin')
  26. ->in(__DIR__.'/src')
  27. ->in(__DIR__.'/tests')
  28. ->in(__DIR__.'/examples')
  29. );