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 752B

12345678910111213141516171819202122232425262728293031
  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. 'function_declaration' => ['closure_function_spacing' => "none"],
  18. ];
  19. $finder = \PhpCsFixer\Finder::create();
  20. foreach ($paths as $path) {
  21. if (is_file($path)) {
  22. $finder = $finder->append([$path]);
  23. } else {
  24. $finder = $finder->in($path);
  25. }
  26. }
  27. return \PhpCsFixer\Config::create()->setRules($rules)->setFinder($finder);