Code Duplication    Length = 7-7 lines in 2 locations

lib/Doctrine/DBAL/Driver/IBMDB2/DB2Connection.php 2 locations

@@ 144-150 (lines=7) @@
141
    /**
142
     * {@inheritdoc}
143
     */
144
    public function commit()
145
    {
146
        if (!db2_commit($this->_conn)) {
147
            throw new DB2Exception(db2_conn_errormsg($this->_conn));
148
        }
149
        db2_autocommit($this->_conn, DB2_AUTOCOMMIT_ON);
150
    }
151
152
    /**
153
     * {@inheritdoc}
@@ 155-161 (lines=7) @@
152
    /**
153
     * {@inheritdoc}
154
     */
155
    public function rollBack()
156
    {
157
        if (!db2_rollback($this->_conn)) {
158
            throw new DB2Exception(db2_conn_errormsg($this->_conn));
159
        }
160
        db2_autocommit($this->_conn, DB2_AUTOCOMMIT_ON);
161
    }
162
163
    /**
164
     * {@inheritdoc}