forked from redaxo/redaxo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php-cs-fixer.dist.php
42 lines (38 loc) · 1.06 KB
/
.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
40
41
42
<?php
use PhpCsFixer\Finder;
use Redaxo\PhpCsFixerConfig\Config;
$src = __DIR__ . '/redaxo/src';
$bootPath = realpath($src . '/core/boot.php');
$tools = __DIR__ . '/.tools';
$finder = 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/reinstall-core',
$tools . '/bin/release',
$tools . '/bin/update-root-composer',
])
->filter(static function (SplFileInfo $file) use ($bootPath) {
return $bootPath !== $file->getRealPath();
})
;
return Config::redaxo5()
->setFinder($finder)
;