1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-23 08:14:56 +00:00
Arsse/.php_cs.dist

26 lines
543 B
Text
Raw Normal View History

2017-08-29 14:50:31 +00:00
<?php
namespace JKingWeb\Arsse;
2017-10-20 23:02:42 +00:00
const BASE = __DIR__.DIRECTORY_SEPARATOR;
2017-08-29 14:50:31 +00:00
$paths = [
__FILE__,
BASE."arsse.php",
BASE."lib",
BASE."tests",
];
$rules = [
'@PSR2' => true,
'braces' => ['position_after_functions_and_oop_constructs' => "same"],
];
$finder = \PhpCsFixer\Finder::create();
foreach ($paths as $path) {
if (is_file($path)) {
2017-08-29 15:16:37 +00:00
$finder = $finder->append([$path]);
2017-08-29 14:50:31 +00:00
} else {
$finder = $finder->in($path);
}
}
2017-08-29 15:16:37 +00:00
return \PhpCsFixer\Config::create()->setRules($rules)->setFinder($finder);