Code Duplication    Length = 7-8 lines in 2 locations

includes/installer/DatabaseUpdater.php 1 location

@@ 1105-1112 (lines=8) @@
1102
		}
1103
1104
		$profileToDb = false;
1105
		if ( isset( $wgProfiler['output'] ) ) {
1106
			$out = $wgProfiler['output'];
1107
			if ( $out === 'db' ) {
1108
				$profileToDb = true;
1109
			} elseif ( is_array( $out ) && in_array( 'db', $out ) ) {
1110
				$profileToDb = true;
1111
			}
1112
		}
1113
1114
		if ( $profileToDb && !$this->db->tableExists( 'profiling', __METHOD__ ) ) {
1115
			$this->applyPatch( 'patch-profiling.sql', false, 'Add profiling table' );

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

@@ 587-593 (lines=7) @@
584
			$options = [ $options ];
585
		}
586
587
		if ( isset( $args[0] ) && is_array( $args[0] ) ) {
588
			$multi = true;
589
			$keys = array_keys( $args[0] );
590
		} else {
591
			$multi = false;
592
			$keys = array_keys( $args );
593
		}
594
595
		// If IGNORE is set, we use savepoints to emulate mysql's behavior
596
		$savepoint = $olde = null;