8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fba11b4 + 1e9a9b2 commit be80868Copy full SHA for be80868
src/Symfony/Component/Messenger/Command/ConsumeMessagesCommand.php
@@ -249,21 +249,4 @@ private function convertToBytes(string $memoryLimit): int
249
250
return $max;
251
}
252
-
253
- private function findAlternatives($name, array $collection)
254
- {
255
- $alternatives = [];
256
- foreach ($collection as $item) {
257
- $lev = levenshtein($name, $item);
258
- if ($lev <= \strlen($name) / 3 || false !== strpos($item, $name)) {
259
- $alternatives[$item] = isset($alternatives[$item]) ? $alternatives[$item] - $lev : $lev;
260
- }
261
262
263
- $threshold = 1e3;
264
- $alternatives = array_filter($alternatives, function ($lev) use ($threshold) { return $lev < 2 * $threshold; });
265
- ksort($alternatives, SORT_NATURAL | SORT_FLAG_CASE);
266
267
- return array_keys($alternatives);
268
269
0 commit comments