Skip to content

Commit da43022

Browse files
committed
Fix cs issues
1 parent f45c31c commit da43022

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AppBundle/Controller/BlogController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,9 @@ public function searchAction(Request $request)
167167

168168
// Splits the query into terms and removes all terms which
169169
// length is less than 2
170-
$terms = array_unique(explode(' ', strtolower($query)));
170+
$terms = array_unique(explode(' ', mb_strtolower($query)));
171171
$terms = array_filter($terms, function ($term) {
172-
return 2 <= strlen($term);
172+
return 2 <= mb_strlen($term);
173173
});
174174

175175
$posts = [];

0 commit comments

Comments
 (0)