Code Duplication    Length = 9-9 lines in 2 locations

lib/Doctrine/DBAL/Driver/OCI8/OCI8Connection.php 1 location

@@ 214-222 (lines=9) @@
211
    /**
212
     * {@inheritdoc}
213
     */
214
    public function errorCode()
215
    {
216
        $error = oci_error($this->dbh);
217
        if ($error !== false) {
218
            $error = $error['code'];
219
        }
220
221
        return $error;
222
    }
223
224
    /**
225
     * {@inheritdoc}

lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php 1 location

@@ 314-322 (lines=9) @@
311
    /**
312
     * {@inheritdoc}
313
     */
314
    public function errorCode()
315
    {
316
        $error = oci_error($this->_sth);
317
        if ($error !== false) {
318
            $error = $error['code'];
319
        }
320
321
        return $error;
322
    }
323
324
    /**
325
     * {@inheritdoc}