Skip to content
Permalink
Browse files

Simplifying code

  • Loading branch information...
lorenzo committed Mar 26, 2016
1 parent cb42f90 commit 1b006240ec38c3f1e4dbf067b31db8ad702591cc
Showing with 2 additions and 4 deletions.
  1. +2 −4 src/Database/Expression/Comparison.php
@@ -265,14 +265,12 @@ protected function _bindValue($value, $generator, $type)
*/
protected function _flattenValue($value, $generator, $type = 'string')
{
$expressions = [];
$parts = [];
foreach ($this->_valueExpressions as $k => $v) {
$expressions[$k] = $v->sql($generator);
$parts[$k] = $v->sql($generator);
unset($value[$k]);
}
$parts = $expressions;
if (!empty($value)) {
$parts += $generator->generateManyNamed($value, $type);
}

0 comments on commit 1b00624

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