Code Duplication    Length = 9-9 lines in 2 locations

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

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

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

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