Commit f423287 1 parent b20b4b3 commit f423287 Copy full SHA for f423287
File tree 3 files changed +22
-2
lines changed
3 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 4
4
.phpunit.result.cache
5
5
composer.lock
6
6
.php_cs.cache
7
+ .php-cs-fixer.cache
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ $ config = new PhpCsFixer \Config ();
4
+ return $ config
5
+ ->setRiskyAllowed (true )
6
+ ->setRules ([
7
+ '@PSR12 ' => true , // ここにルール追記
8
+ ])
9
+ ->setFinder (
10
+ PhpCsFixer \Finder::create ()
11
+ ->exclude ([
12
+ 'vendor '
13
+ ])
14
+ ->in (__DIR__ )
15
+ )
16
+ ;
Original file line number Diff line number Diff line change 33
33
"test" : " vendor/bin/phpunit" ,
34
34
"psalm" : " vendor/bin/psalm" ,
35
35
"pint" : " vendor/bin/pint" ,
36
- "test-coverage" : " vendor/bin/phpunit --coverage-html coverage"
36
+ "test-coverage" : " vendor/bin/phpunit --coverage-html coverage" ,
37
+ "style-check" : " php-cs-fixer fix --dry-run --verbose --diff" ,
38
+ "style-fix" : " php-cs-fixer fix --verbose"
37
39
},
38
40
"autoload-dev" : {
39
41
"psr-4" : {
46
48
"require-dev" : {
47
49
"orchestra/testbench" : " ^6.15" ,
48
50
"phpunit/phpunit" : " ^9.0" ,
49
- "vimeo/psalm" : " ^4.7"
51
+ "vimeo/psalm" : " ^4.7" ,
52
+ "friendsofphp/php-cs-fixer" : " ^3.14"
50
53
},
51
54
"extra" : {
52
55
"laravel" : {
You can’t perform that action at this time.
0 commit comments