Skip to content

Commit 08579d7

Browse files
renovate[bot]simPodspawnia
authored
chore(deps): update dependency friendsofphp/php-cs-fixer to v3.71.0 (#1666)
* chore(deps): update dependency friendsofphp/php-cs-fixer to v3.71.0 * Apply php-cs-fixer changes * 🦐 * Parallel php-cs-fixer * indent --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Simon Podlipsky <[email protected]> Co-authored-by: Benedikt Franke <[email protected]>
1 parent 03be662 commit 08579d7

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

.php-cs-fixer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
->ignoreDotFiles(true)
88
->ignoreVCS(true);
99

10-
return \MLL\PhpCsFixerConfig\risky($finder, [
10+
return MLL\PhpCsFixerConfig\risky($finder, [
1111
'no_superfluous_phpdoc_tags' => [
1212
'allow_mixed' => true,
1313
],
@@ -24,4 +24,4 @@
2424
'identical' => false,
2525
'less_and_greater' => false,
2626
],
27-
]);
27+
])->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect());

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"amphp/http-server": "^2.1",
1919
"dms/phpunit-arraysubset-asserts": "dev-master",
2020
"ergebnis/composer-normalize": "^2.28",
21-
"friendsofphp/php-cs-fixer": "3.65.0",
21+
"friendsofphp/php-cs-fixer": "3.71.0",
2222
"mll-lab/php-cs-fixer-config": "^5.9.2",
2323
"nyholm/psr7": "^1.5",
2424
"phpbench/phpbench": "^1.2",

src/Utils/Utils.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -217,12 +217,10 @@ public static function orList(array $items): string
217217

218218
return \array_reduce(
219219
\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],
226224
$firstSelected
227225
);
228226
}

0 commit comments

Comments
 (0)