Skip to content

Commit aab261b

Browse files
committed
common style code edit
1 parent 336fd3a commit aab261b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Jenssegers/Mongodb/Query/Builder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,8 +1004,8 @@ protected function compileWhereBasic(array $where)
10041004
}
10051005

10061006
// Convert to regular expression.
1007-
$regex = preg_replace('#(^|[^\\\])%#', '$1.*', preg_quote($value));
1008-
$plain_value = $value;
1007+
$regex = preg_replace('#(^|[^\\\])%#', '$1.*', preg_quote($value));
1008+
$plain_value = $value;
10091009

10101010
// Convert like to regular expression.
10111011
if (!Str::startsWith($value, '%')) {
@@ -1020,7 +1020,7 @@ protected function compileWhereBasic(array $where)
10201020
}
10211021

10221022
$is_numeric = is_numeric($plain_value);
1023-
$value = new Regex($regex, 'i');
1023+
$value = new Regex($regex, 'i');
10241024
} // Manipulate regexp operations.
10251025
elseif (in_array($operator, ['regexp', 'not regexp', 'regex', 'not regex'])) {
10261026
// Automatically convert regular expression strings to Regex objects.

0 commit comments

Comments
 (0)