Skip to content

Commit bbdb64c

Browse files
committed
refactor: apply code quality level 41 for Rector
1 parent aac5afa commit bbdb64c

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

rector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,4 +202,4 @@
202202
// keep '\\' prefix string on string '\Foo\Bar'
203203
StringClassNameToClassConstantRector::SHOULD_KEEP_PRE_SLASH => true,
204204
])
205-
->withCodeQualityLevel(40);
205+
->withCodeQualityLevel(41);

system/CLI/CLI.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -318,11 +318,7 @@ public static function promptByMultipleKeys(string $text, array $options): array
318318
if ($opts === []) {
319319
$extraOutput = $extraOutputDefault;
320320
} else {
321-
$optsKey = [];
322-
323-
foreach (array_keys($opts) as $key) {
324-
$optsKey[] = $key;
325-
}
321+
$optsKey = array_keys($opts);
326322
$extraOutput = '[' . $extraOutputDefault . ', ' . implode(', ', $optsKey) . ']';
327323
$extraOutput = 'You can specify multiple values separated by commas.' . PHP_EOL . $extraOutput;
328324
}

0 commit comments

Comments
 (0)