File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 47
47
48
48
- Lints PHP using PSR-12
49
49
- 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
+ ` ` `
51
57
52
58
# # 📦 How to release a new version
53
59
Original file line number Diff line number Diff line change 52
52
use Symplify \CodingStandard \Fixer \LineLength \LineLengthFixer ;
53
53
use Symplify \CodingStandard \Fixer \Strict \BlankLineAfterStrictTypesFixer ;
54
54
use Symplify \EasyCodingStandard \Config \ECSConfig ;
55
+ use Symplify \EasyCodingStandard \ValueObject \Option ;
55
56
use Symplify \EasyCodingStandard \ValueObject \Set \SetList ;
56
57
57
58
return static function (ECSConfig $ ecsConfig ): void {
123
124
$ ecsConfig ->ruleWithConfiguration (PhpUnitMethodCasingFixer::class, ['case ' => PhpUnitMethodCasingFixer::SNAKE_CASE ]);
124
125
$ ecsConfig ->ruleWithConfiguration (OrderedTypesFixer::class, ['null_adjustment ' => 'always_last ' ]);
125
126
126
- $ ecsConfig ->indentation (' tab ' );
127
+ $ ecsConfig ->indentation (Option:: INDENTATION_TAB );
127
128
};
You can’t perform that action at this time.
0 commit comments