Commit 621fee09 authored by Taylor Otwell's avatar Taylor Otwell

cleaning up code.

Signed-off-by: 's avatarTaylor Otwell <taylorotwell@gmail.com>
parent d87b01ad
...@@ -172,11 +172,13 @@ class Connection { ...@@ -172,11 +172,13 @@ class Connection {
// Since expressions are injected into the query as strings, we need to // Since expressions are injected into the query as strings, we need to
// remove them from the array of bindings. After we have removed them, // remove them from the array of bindings. After we have removed them,
// we'll reset the array so there aren't gaps in the keys. // we'll reset the array so there are not gaps within the keys.
$bindings = array_values(array_filter($bindings, function($binding) $bindings = array_filter($bindings, function($binding)
{ {
return ! $binding instanceof Expression; return ! $binding instanceof Expression;
})); });
$bindings = array_values($bindings);
$sql = $this->grammar()->shortcut($sql, $bindings); $sql = $this->grammar()->shortcut($sql, $bindings);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment