Code Duplication    Length = 10-10 lines in 2 locations

lib/Doctrine/DBAL/Driver/SQLAnywhere/SQLAnywhereConnection.php 2 locations

@@ 92-101 (lines=10) @@
89
     *
90
     * @throws SQLAnywhereException
91
     */
92
    public function commit()
93
    {
94
        if ( ! sasql_commit($this->connection)) {
95
            throw SQLAnywhereException::fromSQLAnywhereError($this->connection);
96
        }
97
98
        $this->endTransaction();
99
100
        return true;
101
    }
102
103
    /**
104
     * {@inheritdoc}
@@ 197-206 (lines=10) @@
194
     *
195
     * @throws SQLAnywhereException
196
     */
197
    public function rollBack()
198
    {
199
        if ( ! sasql_rollback($this->connection)) {
200
            throw SQLAnywhereException::fromSQLAnywhereError($this->connection);
201
        }
202
203
        $this->endTransaction();
204
205
        return true;
206
    }
207
208
    /**
209
     * Ends transactional mode and enables auto commit again.