Code Duplication    Length = 13-14 lines in 2 locations

lib/Doctrine/DBAL/Connection.php 2 locations

@@ 918-930 (lines=13) @@
915
        }
916
917
        try {
918
            if ($params) {
919
                list($query, $params, $types) = SQLParserUtils::expandListParameters($query, $params, $types);
920
921
                $stmt = $this->_conn->prepare($query);
922
                if ($types) {
923
                    $this->_bindTypedValues($stmt, $params, $types);
924
                    $stmt->execute();
925
                } else {
926
                    $stmt->execute($params);
927
                }
928
            } else {
929
                $stmt = $this->_conn->query($query);
930
            }
931
        } catch (Exception $ex) {
932
            throw DBALException::driverExceptionDuringQuery($this->_driver, $ex, $query, $this->resolveParams($params, $types));
933
        }
@@ 1067-1080 (lines=14) @@
1064
        }
1065
1066
        try {
1067
            if ($params) {
1068
                list($query, $params, $types) = SQLParserUtils::expandListParameters($query, $params, $types);
1069
1070
                $stmt = $this->_conn->prepare($query);
1071
                if ($types) {
1072
                    $this->_bindTypedValues($stmt, $params, $types);
1073
                    $stmt->execute();
1074
                } else {
1075
                    $stmt->execute($params);
1076
                }
1077
                $result = $stmt->rowCount();
1078
            } else {
1079
                $result = $this->_conn->exec($query);
1080
            }
1081
        } catch (Exception $ex) {
1082
            throw DBALException::driverExceptionDuringQuery($this->_driver, $ex, $query, $this->resolveParams($params, $types));
1083
        }