Web Interfaces of PROSUME

.php_cs.dist 962B

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. 'align_multiline_comment' => array('comment_type' => 'phpdocs_like'),
  13. 'array_syntax' => array('syntax' => 'long'),
  14. 'binary_operator_spaces' => false,
  15. 'concat_space' => array('spacing' => 'one'),
  16. 'increment_style' => false,
  17. 'no_useless_else' => true,
  18. 'no_useless_return' => true,
  19. 'ordered_imports' => true,
  20. 'phpdoc_no_package' => false,
  21. 'phpdoc_order' => true,
  22. 'phpdoc_summary' => false,
  23. 'pre_increment' => false,
  24. 'simplified_null_return' => false,
  25. 'trailing_comma_in_multiline_array' => false,
  26. 'yoda_style' => null,
  27. ))
  28. ->setFinder($finder)
  29. ;
  30. return $config;