File tree 3 files changed +7
-9
lines changed 3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 7
7
->ignoreDotFiles (true )
8
8
->ignoreVCS (true );
9
9
10
- return \ MLL \PhpCsFixerConfig \risky ($ finder , [
10
+ return MLL \PhpCsFixerConfig \risky ($ finder , [
11
11
'no_superfluous_phpdoc_tags ' => [
12
12
'allow_mixed ' => true ,
13
13
],
24
24
'identical ' => false ,
25
25
'less_and_greater ' => false ,
26
26
],
27
- ]);
27
+ ])-> setParallelConfig ( PhpCsFixer \ Runner \ Parallel \ParallelConfigFactory:: detect ()) ;
Original file line number Diff line number Diff line change 18
18
"amphp/http-server" : " ^2.1" ,
19
19
"dms/phpunit-arraysubset-asserts" : " dev-master" ,
20
20
"ergebnis/composer-normalize" : " ^2.28" ,
21
- "friendsofphp/php-cs-fixer" : " 3.65 .0" ,
21
+ "friendsofphp/php-cs-fixer" : " 3.71 .0" ,
22
22
"mll-lab/php-cs-fixer-config" : " ^5.9.2" ,
23
23
"nyholm/psr7" : " ^1.5" ,
24
24
"phpbench/phpbench" : " ^1.2" ,
Original file line number Diff line number Diff line change @@ -217,12 +217,10 @@ public static function orList(array $items): string
217
217
218
218
return \array_reduce (
219
219
\range (1 , $ selectedLength - 1 ),
220
- static function ($ list , $ index ) use ($ selected , $ selectedLength ): string {
221
- return $ list
222
- . ($ selectedLength > 2 ? ', ' : ' ' )
223
- . ($ index === $ selectedLength - 1 ? 'or ' : '' )
224
- . $ selected [$ index ];
225
- },
220
+ static fn ($ list , $ index ): string => $ list
221
+ . ($ selectedLength > 2 ? ', ' : ' ' )
222
+ . ($ index === $ selectedLength - 1 ? 'or ' : '' )
223
+ . $ selected [$ index ],
226
224
$ firstSelected
227
225
);
228
226
}
You can’t perform that action at this time.
0 commit comments