File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 4747
4848- Lints PHP using PSR-12
4949- Extends some config (you can see all the rules [here](src/coding_style.php))
50- - Use tabs to indent ([reason](https://www.youtube.com/watch? v=yD2T42zsP7c))
50+ - Use tabs to indent ([reason](https://www.youtube.com/watch? v=yD2T42zsP7c)). If you want to use spaces, you can add the
51+ following line at the end of your ` ecs.php` :
52+ ` ` ` php
53+ use Symplify\E asyCodingStandard\V alueObject\O ption;
54+
55+ $ecsConfig -> indentation(Option::INDENTATION_SPACES);
56+ ` ` `
5157
5258# # 📦 How to release a new version
5359
Original file line number Diff line number Diff line change 5252use Symplify \CodingStandard \Fixer \LineLength \LineLengthFixer ;
5353use Symplify \CodingStandard \Fixer \Strict \BlankLineAfterStrictTypesFixer ;
5454use Symplify \EasyCodingStandard \Config \ECSConfig ;
55+ use Symplify \EasyCodingStandard \ValueObject \Option ;
5556use Symplify \EasyCodingStandard \ValueObject \Set \SetList ;
5657
5758return static function (ECSConfig $ ecsConfig ): void {
123124 $ ecsConfig ->ruleWithConfiguration (PhpUnitMethodCasingFixer::class, ['case ' => PhpUnitMethodCasingFixer::SNAKE_CASE ]);
124125 $ ecsConfig ->ruleWithConfiguration (OrderedTypesFixer::class, ['null_adjustment ' => 'always_last ' ]);
125126
126- $ ecsConfig ->indentation (' tab ' );
127+ $ ecsConfig ->indentation (Option:: INDENTATION_TAB );
127128};
You can’t perform that action at this time.
0 commit comments