No Description

.php_cs 941B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. $finder = PhpCsFixer\Finder::create()
  3. ->in(__DIR__)
  4. ->name('.php_cs')
  5. ->name('build-manual')
  6. ->name('build-phar')
  7. ->exclude('build-vendor');
  8. $header = <<<EOF
  9. This file is part of Psy Shell.
  10. (c) 2012-2018 Justin Hileman
  11. For the full copyright and license information, please view the LICENSE
  12. file that was distributed with this source code.
  13. EOF;
  14. return PhpCsFixer\Config::create()
  15. ->setRules(array(
  16. '@Symfony' => true,
  17. 'array_syntax' => array('syntax' => 'short'),
  18. 'binary_operator_spaces' => false,
  19. 'concat_space' => array('spacing' => 'one'),
  20. 'header_comment' => array('header' => $header),
  21. 'increment_style' => array('style' => 'post'),
  22. 'method_argument_space' => array('keep_multiple_spaces_after_comma' => true),
  23. 'ordered_imports' => true,
  24. 'pre_increment' => false,
  25. 'yoda_style' => false,
  26. ))
  27. ->setFinder($finder);