Skip to content

Commit

Permalink
refactor: vendor/bin/rector
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Apr 1, 2022
1 parent a1eabc7 commit 23c0e01
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions system/Database/BaseBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -1083,11 +1083,7 @@ protected function _like($field, string $match = '', string $type = 'AND ', stri
return $this;
}

if (! is_array($field)) {
$keyValue = [$field => $match];
} else {
$keyValue = $field;
}
$keyValue = ! is_array($field) ? [$field => $match] : $field;

foreach ($keyValue as $k => $v) {
if ($insensitiveSearch === true) {
Expand Down

0 comments on commit 23c0e01

Please sign in to comment.