File tree Expand file tree Collapse file tree 3 files changed +28
-2
lines changed
Expand file tree Collapse file tree 3 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ use PhpCsFixer \Config ;
4+ use PhpCsFixer \Finder ;
5+
6+ $ finder = Finder::create ()
7+ ->in (__DIR__ )
8+ ->exclude ([
9+ '.git/ ' ,
10+ 'node_modules/ ' ,
11+ 'vendor/ ' ,
12+ ])
13+ ->name ('*.php ' );
14+
15+ $ config = new Config ();
16+
17+ $ rules = [
18+ '@PER-CS2.0 ' => true ,
19+ ];
20+
21+ return $ config
22+ ->setRules ($ rules )
23+ ->setFinder ($ finder )
24+ ->setCacheFile (sys_get_temp_dir () . '/php-cs-fixer.advancedforms.cache ' )
25+ ;
Original file line number Diff line number Diff line change 33 "php" : " >=8.2"
44 },
55 "require-dev" : {
6+ "friendsofphp/php-cs-fixer" : " ^3.86" ,
67 "glpi-project/tools" : " ^0.4"
78 },
89 "config" : {
Original file line number Diff line number Diff line change @@ -68,8 +68,8 @@ function plugin_version_advancedforms()
6868 'glpi ' => [
6969 'min ' => PLUGIN_ADVANCEDFORMS_MIN_GLPI_VERSION ,
7070 'max ' => PLUGIN_ADVANCEDFORMS_MAX_GLPI_VERSION ,
71- ]
72- ]
71+ ],
72+ ],
7373 ];
7474}
7575
You can’t perform that action at this time.
0 commit comments