File tree 3 files changed +32
-16
lines changed
3 files changed +32
-16
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ /**
4
+ * @copyright Copyright (C) Ibexa AS. All rights reserved.
5
+ * @license For full copyright and license information view LICENSE file distributed with this source code.
6
+ */
7
+ declare (strict_types=1 );
8
+
9
+ use Ibexa \CodeStyle \PhpCsFixer \InternalConfigFactory ;
10
+
11
+ $ configFactory = new InternalConfigFactory ();
12
+ $ configFactory ->withRules ([
13
+ 'header_comment ' => false ,
14
+ ]);
15
+
16
+ return $ configFactory
17
+ ->buildConfig ()
18
+ ->setFinder (
19
+ PhpCsFixer \Finder::create ()
20
+ ->in (
21
+ array_filter ([
22
+ __DIR__ . '/code_samples ' ,
23
+ __DIR__ . '/tests ' ,
24
+ ], 'is_dir ' )
25
+ )
26
+ ->files ()->name ('*.php ' )
27
+ );
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 14
14
"symfony/property-access" : " ^5.0"
15
15
},
16
16
"require-dev" : {
17
- "ezsystems/ezplatform-code-style" : " ^0.1.0" ,
18
- "friendsofphp/php-cs-fixer" : " ^2.16.0"
17
+ "ibexa/code-style" : " ^1.0"
18
+ },
19
+ "scripts" : {
20
+ "fix-cs" : " php-cs-fixer fix --config=.php-cs-fixer.php -v --show-progress=dots" ,
21
+ "check-cs" : " @fix-cs --dry-run"
19
22
}
20
23
}
You can’t perform that action at this time.
0 commit comments