.php_cs.dist 794 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. $header = <<<'EOF'
  3. FecShop file.
  4. @link http://www.fecshop.com/
  5. @copyright Copyright (c) 2016 FecShop Software LLC
  6. @license http://www.fecshop.com/license/
  7. EOF;
  8. $finder = PhpCsFixer\Finder::create()
  9. ->in('./services')
  10. ->notName('MobileDetect.php')
  11. ;
  12. $config = PhpCsFixer\Config::create()
  13. ->setRules([
  14. '@PSR2' => true,
  15. 'align_multiline_comment' => true,
  16. 'array_indentation' => true,
  17. 'array_syntax' => ['syntax' => 'short'],
  18. 'class_attributes_separation' => ['elements' => ['const', 'method', 'property']],
  19. 'header_comment' => ['header' => $header],
  20. 'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'],
  21. 'single_line_comment_style' => true,
  22. ])
  23. ->setFinder($finder)
  24. ;
  25. return $config;