Code Duplication    Length = 7-8 lines in 2 locations

includes/installer/DatabaseUpdater.php 1 location

@@ 1087-1094 (lines=8) @@
1084
		}
1085
1086
		$profileToDb = false;
1087
		if ( isset( $wgProfiler['output'] ) ) {
1088
			$out = $wgProfiler['output'];
1089
			if ( $out === 'db' ) {
1090
				$profileToDb = true;
1091
			} elseif ( is_array( $out ) && in_array( 'db', $out ) ) {
1092
				$profileToDb = true;
1093
			}
1094
		}
1095
1096
		if ( $profileToDb && !$this->db->tableExists( 'profiling', __METHOD__ ) ) {
1097
			$this->applyPatch( 'patch-profiling.sql', false, 'Add profiling table' );

includes/db/DatabasePostgres.php 1 location

@@ 795-801 (lines=7) @@
792
			$options = [ $options ];
793
		}
794
795
		if ( isset( $args[0] ) && is_array( $args[0] ) ) {
796
			$multi = true;
797
			$keys = array_keys( $args[0] );
798
		} else {
799
			$multi = false;
800
			$keys = array_keys( $args );
801
		}
802
803
		// If IGNORE is set, we use savepoints to emulate mysql's behavior
804
		$savepoint = null;