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
@@ 1508-1519 (lines=12) @@
1505
1506
		MediaWiki\suppressWarnings();
1507
1508
		if ( oci_execute( $stmt, $this->execFlags() ) === false ) {
1509
			$e = oci_error( $stmt );
1510
			if ( !$this->ignoreDupValOnIndex || $e['code'] != '1' ) {
1511
				$this->reportQueryError( $e['message'], $e['code'], $sql, __METHOD__ );
1512
1513
				return false;
1514
			} else {
1515
				$this->mAffectedRows = oci_num_rows( $stmt );
1516
			}
1517
		} else {
1518
			$this->mAffectedRows = oci_num_rows( $stmt );
1519
		}
1520
1521
		MediaWiki\restoreWarnings();
1522