-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.php-cs-fixer.php
More file actions
50 lines (38 loc) · 1.42 KB
/
Copy path.php-cs-fixer.php
File metadata and controls
50 lines (38 loc) · 1.42 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
/*
-------------------------------------------------------------------------
vip plugin for GLPI
Copyright (C) 2022-2026 by the vip Development Team.
https://github.com/pluginsGLPI/vip
-------------------------------------------------------------------------
LICENSE
This file is part of vip.
vip is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
vip is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with vip. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$finder = Finder::create()
->in(__DIR__)
->name('*.php')
->exclude('vendor')
->exclude('tests/config')
->ignoreVCSIgnored(true);
$config = new Config();
$rules = [
'@PER-CS2.0' => true,
'trailing_comma_in_multiline' => ['elements' => ['arguments', 'array_destructuring', 'arrays']],
];
return $config
->setRules($rules)
->setFinder($finder)
->setUsingCache(false);