mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
34 lines
750 B
Plaintext
34 lines
750 B
Plaintext
|
<?php
|
||
|
use PhpCsFixer\Config;
|
||
|
use PhpCsFixer\Finder;
|
||
|
$finder = Finder::create()
|
||
|
->in(__DIR__ . '/src/')
|
||
|
->in(__DIR__ . '/tests/')
|
||
|
;
|
||
|
$rules = [
|
||
|
'@PSR2' => true,
|
||
|
'array_syntax' => [
|
||
|
'syntax' => 'short',
|
||
|
],
|
||
|
'braces' => [
|
||
|
'allow_single_line_closure' => true,
|
||
|
],
|
||
|
'native_constant_invocation' => [
|
||
|
'fix_built_in' => true,
|
||
|
],
|
||
|
'native_function_invocation' => [
|
||
|
'include' => ['@all'],
|
||
|
],
|
||
|
'no_unused_imports' => true,
|
||
|
'ordered_imports' => [
|
||
|
'sort_algorithm' => 'alpha',
|
||
|
],
|
||
|
'strict_comparison' => true,
|
||
|
'strict_param' => true,
|
||
|
];
|
||
|
return Config::create()
|
||
|
->setRules($rules)
|
||
|
->setFinder($finder)
|
||
|
->setUsingCache(false)
|
||
|
->setRiskyAllowed(true)
|
||
|
;
|