.php_cs.dist 509 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2018 Robin Appelman <robin@icewind.nl>
  4. * SPDX-License-Identifier: MIT
  5. */
  6. $finder = PhpCsFixer\Finder::create()
  7. ->exclude('vendor')
  8. ->in(__DIR__)
  9. ;
  10. return PhpCsFixer\Config::create()
  11. ->setRules([
  12. '@PSR2' => true,
  13. 'array_syntax' => ['syntax' => 'short'],
  14. 'braces' => ['position_after_functions_and_oop_constructs' => 'same'],
  15. 'binary_operator_spaces' => ['align_double_arrow' => true, 'align_equals' => false],
  16. ])
  17. ->setIndent("\t")
  18. ->setFinder($finder)
  19. ;