Skip to content

Commit

Permalink
Tweak code style.
Browse files Browse the repository at this point in the history
  • Loading branch information
itsgoingd committed Feb 20, 2024
1 parent 73c9f86 commit 00d39b3
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions Clockwork/Storage/SqlSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,10 @@ protected function resolveExactCondition($field, $inputs)
if (! count($inputs)) return null;

$bindings = [];
$values = implode(', ', array_map(
static function ($input, $index) use ($field, &$bindings) {
$bindings["{$field}{$index}"] = $input;
return ":{$field}{$index}";
},
$inputs,
array_keys($inputs)
));
$values = implode(', ', array_map(function ($input, $index) use ($field, &$bindings) {
$bindings["{$field}{$index}"] = $input;
return ":{$field}{$index}";
}, $inputs, array_keys($inputs)));

return [ $this->quote($field) . " IN ({$values})", $bindings ];
}
Expand Down

0 comments on commit 00d39b3

Please sign in to comment.