-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php-cs-fixer.php
34 lines (32 loc) · 1 KB
/
.php-cs-fixer.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
27
28
29
30
31
32
33
34
<?php
declare(strict_types=1);
/*
* This document has been generated with
* https://mlocati.github.io/php-cs-fixer-configurator/#version:3.59.3|configurator
* you can change this configuration by importing this file.
*/
$config = new PhpCsFixer\Config();
return $config
->setRiskyAllowed(true)
->setRules([
'@PER-CS' => true,
'@PER-CS:risky' => true,
// Force strict types declaration in all files. Requires PHP >= 7.0.
'declare_strict_types' => true,
// Unused `use` statements must be removed.
'no_unused_imports' => true,
// Multi-line arrays, arguments list, parameters list and `match` expressions must have a trailing comma.
'trailing_comma_in_multiline' => ['elements' => ['arrays']],
])
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude([
'src/data/',
])
->append([
'bin/build',
__FILE__,
])
)
;