.php_cs 825 B

12345678910111213141516171819202122232425
  1. <?php
  2. $header = <<<'EOF'
  3. @license https://github.com/inhere/php-validate/blob/master/LICENSE
  4. EOF;
  5. return PhpCsFixer\Config::create()->setRiskyAllowed(true)->setRules([
  6. '@PSR2' => true,
  7. // 'header_comment' => [
  8. // 'comment_type' => 'PHPDoc',
  9. // 'header' => $header,
  10. // 'separate' => 'none'
  11. // ],
  12. 'array_syntax' => [
  13. 'syntax' => 'short'
  14. ],
  15. 'single_quote' => true,
  16. 'class_attributes_separation' => true,
  17. 'no_unused_imports' => true,
  18. 'standardize_not_equals' => true,
  19. 'declare_strict_types' => true,
  20. ])->setFinder(PhpCsFixer\Finder::create()
  21. // ->exclude('test')
  22. ->exclude('docs')->exclude('vendor')->in(__DIR__))->setUsingCache(false);