File tree Expand file tree Collapse file tree 5 files changed +23
-17
lines changed Expand file tree Collapse file tree 5 files changed +23
-17
lines changed Original file line number Diff line number Diff line change 2929 ```
30302. Add it to your ` ecs.php` file:
3131 ` ` ` php
32- use CodelyTv\C odingStyle\C odelyRules ;
32+ use CodelyTv\C odingStyle;
3333 use Symplify\E asyCodingStandard\C onfig\E CSConfig;
3434
3535 return function (ECSConfig $ecsConfig ): void {
3636 $ecsConfig -> paths([__DIR__ . ' /src' ,]);
3737
38- $ecsConfig -> sets([CodelyRules::CODING_STYLE ]);
38+ $ecsConfig -> sets([CodingStyle::DEFAULT ]);
3939
4040 // Or this if you prefer to have the code aligned
41- // $ecsConfig -> sets([CodelyRules::CODING_STYLE_ALIGNED ]);
41+ // $ecsConfig -> sets([CodingStyle::ALIGNED ]);
4242 };
4343 ` ` `
44443. Execute it:
Original file line number Diff line number Diff line change 44 "type" : " library" ,
55 "keywords" : [" static analysis" , " code style" ],
66 "license" : " AGPL-3.0-or-later" ,
7+ "authors" : [
8+ {
9+ "name" : " Codely" ,
10+ "homepage" : " https://codely.com"
11+ }
12+ ],
713 "autoload" : {
814 "psr-4" : {
9- "CodelyTv\\ CodingStyle \\ " : " src/"
15+ "CodelyTv\\ " : " src/"
1016 }
1117 },
1218 "require" : {
Original file line number Diff line number Diff line change 22
33declare (strict_types=1 );
44
5- use CodelyTv \CodingStyle \ CodelyRules ;
5+ use CodelyTv \CodingStyle ;
66use Symplify \EasyCodingStandard \Config \ECSConfig ;
77
88return function (ECSConfig $ ecsConfig ): void {
99 $ ecsConfig ->paths ([__DIR__ . '/src ' ,]);
1010
11- $ ecsConfig ->sets ([CodelyRules:: CODING_STYLE ]);
11+ $ ecsConfig ->sets ([CodingStyle:: DEFAULT ]);
1212};
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ declare (strict_types=1 );
4+
5+ namespace CodelyTv ;
6+
7+ final class CodingStyle
8+ {
9+ public const DEFAULT = __DIR__ . '/coding_style.php ' ;
10+ public const ALIGNED = __DIR__ . '/coding_style_aligned.php ' ;
11+ }
You can’t perform that action at this time.
0 commit comments