The clean & modern RSS server that doesn't give you any crap. https://thearsse.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.php_cs.dist 682B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /** @license MIT
  3. * Copyright 2017 J. King, Dustin Wilson et al.
  4. * See LICENSE and AUTHORS files for details */
  5. namespace JKingWeb\Arsse;
  6. const BASE = __DIR__.DIRECTORY_SEPARATOR;
  7. $paths = [
  8. __FILE__,
  9. BASE."arsse.php",
  10. BASE."RoboFile.php",
  11. BASE."lib",
  12. BASE."tests",
  13. ];
  14. $rules = [
  15. '@PSR2' => true,
  16. 'braces' => ['position_after_functions_and_oop_constructs' => "same"],
  17. ];
  18. $finder = \PhpCsFixer\Finder::create();
  19. foreach ($paths as $path) {
  20. if (is_file($path)) {
  21. $finder = $finder->append([$path]);
  22. } else {
  23. $finder = $finder->in($path);
  24. }
  25. }
  26. return \PhpCsFixer\Config::create()->setRules($rules)->setFinder($finder);