Code Duplication    Length = 7-8 lines in 2 locations

includes/installer/DatabaseUpdater.php 1 location

@@ 1128-1135 (lines=8) @@
1125
		}
1126
1127
		$profileToDb = false;
1128
		if ( isset( $wgProfiler['output'] ) ) {
1129
			$out = $wgProfiler['output'];
1130
			if ( $out === 'db' ) {
1131
				$profileToDb = true;
1132
			} elseif ( is_array( $out ) && in_array( 'db', $out ) ) {
1133
				$profileToDb = true;
1134
			}
1135
		}
1136
1137
		if ( $profileToDb && !$this->db->tableExists( 'profiling', __METHOD__ ) ) {
1138
			$this->applyPatch( 'patch-profiling.sql', false, 'Add profiling table' );

includes/libs/rdbms/database/DatabasePostgres.php 1 location

@@ 563-569 (lines=7) @@
560
			$options = [ $options ];
561
		}
562
563
		if ( isset( $args[0] ) && is_array( $args[0] ) ) {
564
			$multi = true;
565
			$keys = array_keys( $args[0] );
566
		} else {
567
			$multi = false;
568
			$keys = array_keys( $args );
569
		}
570
571
		// If IGNORE is set, we use savepoints to emulate mysql's behavior
572
		$savepoint = $olde = null;