Code Duplication    Length = 6-6 lines in 2 locations

includes/db/Database.php 2 locations

@@ 2293-2298 (lines=6) @@
2290
		$table = $this->tableName( $table );
2291
		$sql = "DELETE FROM $table";
2292
2293
		if ( $conds != '*' ) {
2294
			if ( is_array( $conds ) ) {
2295
				$conds = $this->makeList( $conds, LIST_AND );
2296
			}
2297
			$sql .= ' WHERE ' . $conds;
2298
		}
2299
2300
		return $this->query( $sql, $fname );
2301
	}
@@ 2331-2336 (lines=6) @@
2328
			" SELECT $startOpts " . implode( ',', $varMap ) .
2329
			" FROM $srcTable $useIndex ";
2330
2331
		if ( $conds != '*' ) {
2332
			if ( is_array( $conds ) ) {
2333
				$conds = $this->makeList( $conds, LIST_AND );
2334
			}
2335
			$sql .= " WHERE $conds";
2336
		}
2337
2338
		$sql .= " $tailOpts";
2339