forked from redaxo/redaxo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php-cs-fixer.dist.php
38 lines (35 loc) · 1020 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
<?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/update-root-composer',
])
->filter(static function (SplFileInfo $file) use ($bootPath) {
return $bootPath !== $file->getRealPath();
})
;
return (new Redaxo\PhpCsFixerConfig\Config())
->setFinder($finder)
;