prefer combined operators, refs #999

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-11-05 11:07:18 +01:00
parent b0a66b687d
commit 4a4188a96b
6 changed files with 13 additions and 13 deletions

View File

@@ -248,7 +248,7 @@ class Database
$replacements = [];
foreach ($substitutions as $search => $replace) {
$replacements = $replacements + self::createShiftedSubstitutions($search, $replace, $minLength);
$replacements += self::createShiftedSubstitutions($search, $replace, $minLength);
}
$content = str_replace(array_keys($replacements), array_values($replacements), $content);