Skip to content
Permalink
Browse files

Reduce logic duplication

  • Loading branch information...
coryjthompson committed Jan 26, 2017
1 parent 572f8c7 commit 7d1cddead17e106b343570580f6c1e63bba3f1a9
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/Database/ValueBinder.php
@@ -86,14 +86,13 @@ public function generateManyNamed($values, $type = 'string')
{
$placeholders = [];
foreach ($values as $k => $value) {
$param = ":c" . $this->_bindingsCount;
$param = $this->placeholder('c');
$this->_bindings[$param] = [
'value' => $value,
'type' => $type,
'placeholder' => substr($param, 1),
];
$placeholders[$k] = $param;
$this->_bindingsCount++;
}
return $placeholders;

0 comments on commit 7d1cdde

Please sign in to comment.
You can’t perform that action at this time.