forked from timacdonald/has-parameters
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php-cs-fixer.dist.php
26 lines (23 loc) · 909 Bytes
/
.php-cs-fixer.dist.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
declare(strict_types=1);
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->notName('**/Middleware/OptionalRequired.php')
->exclude('vendor');
return (new PhpCsFixer\Config())
->setRules([
'@PSR12' => true,
'@PSR12:risky' => true,
'global_namespace_import' => ['import_classes' => true, 'import_constants' => true, 'import_functions' => true],
'native_function_invocation' => true,
'declare_strict_types' => true,
'strict_comparison' => true,
'strict_param' => true,
'explicit_string_variable' => true,
'trailing_comma_in_multiline' => true,
'array_indentation' => true,
'ordered_imports' => ['imports_order' => ['class', 'function', 'const'], 'sort_algorithm' => 'alpha'],
'no_unreachable_default_argument_value' => false,
])
->setRiskyAllowed(true)
->setFinder($finder);