Code Duplication    Length = 9-9 lines in 2 locations

lib/Doctrine/DBAL/Driver/Mysqli/MysqliStatement.php 2 locations

@@ 117-125 (lines=9) @@
114
     */
115
    public function bindParam($column, &$variable, $type = null, $length = null)
116
    {
117
        if (null === $type) {
118
            $type = 's';
119
        } else {
120
            if (isset(self::$_paramTypeMap[$type])) {
121
                $type = self::$_paramTypeMap[$type];
122
            } else {
123
                throw new MysqliException("Unknown type: '{$type}'");
124
            }
125
        }
126
127
        $this->_bindedValues[$column] =& $variable;
128
        $this->types[$column - 1] = $type;
@@ 138-146 (lines=9) @@
135
     */
136
    public function bindValue($param, $value, $type = null)
137
    {
138
        if (null === $type) {
139
            $type = 's';
140
        } else {
141
            if (isset(self::$_paramTypeMap[$type])) {
142
                $type = self::$_paramTypeMap[$type];
143
            } else {
144
                throw new MysqliException("Unknown type: '{$type}'");
145
            }
146
        }
147
148
        $this->_values[$param] = $value;
149
        $this->_bindedValues[$param] =& $this->_values[$param];