Code Duplication    Length = 12-12 lines in 2 locations

includes/db/DatabaseOracle.php 2 locations

@@ 707-718 (lines=12) @@
704
705
		MediaWiki\suppressWarnings();
706
707
		if ( oci_execute( $stmt, $this->execFlags() ) === false ) {
708
			$e = oci_error( $stmt );
709
			if ( !$this->ignoreDupValOnIndex || $e['code'] != '1' ) {
710
				$this->reportQueryError( $e['message'], $e['code'], $sql, __METHOD__ );
711
712
				return false;
713
			} else {
714
				$this->mAffectedRows = oci_num_rows( $stmt );
715
			}
716
		} else {
717
			$this->mAffectedRows = oci_num_rows( $stmt );
718
		}
719
720
		MediaWiki\restoreWarnings();
721
@@ 1501-1512 (lines=12) @@
1498
1499
		MediaWiki\suppressWarnings();
1500
1501
		if ( oci_execute( $stmt, $this->execFlags() ) === false ) {
1502
			$e = oci_error( $stmt );
1503
			if ( !$this->ignoreDupValOnIndex || $e['code'] != '1' ) {
1504
				$this->reportQueryError( $e['message'], $e['code'], $sql, __METHOD__ );
1505
1506
				return false;
1507
			} else {
1508
				$this->mAffectedRows = oci_num_rows( $stmt );
1509
			}
1510
		} else {
1511
			$this->mAffectedRows = oci_num_rows( $stmt );
1512
		}
1513
1514
		MediaWiki\restoreWarnings();
1515