.php_cs.dist 981 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. $finder = new PhpCsFixer\Finder();
  3. $config = new PhpCsFixer\Config('json-schema');
  4. $finder->in(__DIR__);
  5. /* Based on ^2.1 of php-cs-fixer */
  6. $config
  7. ->setRules(array(
  8. // default
  9. '@PSR2' => true,
  10. '@Symfony' => true,
  11. // additionally
  12. 'array_syntax' => array('syntax' => 'long'),
  13. 'binary_operator_spaces' => false,
  14. 'concat_space' => array('spacing' => 'one'),
  15. 'no_useless_else' => true,
  16. 'no_useless_return' => true,
  17. 'ordered_imports' => true,
  18. 'phpdoc_no_package' => false,
  19. 'phpdoc_order' => true,
  20. 'phpdoc_summary' => false,
  21. 'pre_increment' => false,
  22. 'increment_style' => false,
  23. 'simplified_null_return' => false,
  24. 'trailing_comma_in_multiline_array' => false,
  25. 'yoda_style' => false,
  26. 'phpdoc_types_order' => array('null_adjustment' => 'none', 'sort_algorithm' => 'none'),
  27. ))
  28. ->setFinder($finder)
  29. ;
  30. return $config;