forked from redaxo/redaxo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php-cs-fixer.dist.php
39 lines (36 loc) · 1009 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
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
$src = __DIR__.'/redaxo/src';
$bootPath = realpath($src.'/core/boot.php');
$tools = __DIR__.'/.tools';
$finder = PhpCsFixer\Finder::create()
->in([
$src.'/core',
$src.'/addons/backup',
$src.'/addons/be_style',
$src.'/addons/cronjob',
$src.'/addons/debug',
$src.'/addons/install',
$src.'/addons/media_manager',
$src.'/addons/mediapool',
$src.'/addons/metainfo',
$src.'/addons/phpmailer',
$src.'/addons/project',
$src.'/addons/structure',
$src.'/addons/users',
$tools,
])
->append([
__FILE__,
__DIR__.'/rector.php',
$tools.'/bin/clone-addon',
$tools.'/bin/release',
$tools.'/bin/setup',
$tools.'/bin/update-root-composer',
])
->filter(static function (SplFileInfo $file) use ($bootPath) {
return $bootPath !== $file->getRealPath();
})
;
return (new Redaxo\PhpCsFixerConfig\Config())
->setFinder($finder)
;