Skip to content

Commit

Permalink
Fix incorrect line indent
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekn committed Oct 6, 2020
1 parent 38c4a3e commit 88f6101
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Search/Model/SynonymAnalyzer.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ private function getSearchPattern(array $words): string
$patterns = [];
for ($lastItem = count($words); $lastItem > 0; $lastItem--) {
$words = array_map(function ($word) {
return preg_quote($word, '/');
return preg_quote($word, '/');
}, $words);
$phrase = implode("\s+", \array_slice($words, 0, $lastItem));
$patterns[] = '^' . $phrase . ',';
Expand Down

0 comments on commit 88f6101

Please sign in to comment.