Code Duplication    Length = 7-7 lines in 2 locations

lib/Doctrine/DBAL/Connection.php 2 locations

@@ 1605-1611 (lines=7) @@
1602
            $bindIndex = 1;
1603
            foreach ($params as $value) {
1604
                $typeIndex = $bindIndex + $typeOffset;
1605
                if (isset($types[$typeIndex])) {
1606
                    $type = $types[$typeIndex];
1607
                    list($value,) = $this->getBindingInfo($value, $type);
1608
                    $resolvedParams[$bindIndex] = $value;
1609
                } else {
1610
                    $resolvedParams[$bindIndex] = $value;
1611
                }
1612
                ++$bindIndex;
1613
            }
1614
        } else {
@@ 1617-1623 (lines=7) @@
1614
        } else {
1615
            // Named parameters
1616
            foreach ($params as $name => $value) {
1617
                if (isset($types[$name])) {
1618
                    $type = $types[$name];
1619
                    list($value,) = $this->getBindingInfo($value, $type);
1620
                    $resolvedParams[$name] = $value;
1621
                } else {
1622
                    $resolvedParams[$name] = $value;
1623
                }
1624
            }
1625
        }
1626