Code Duplication    Length = 6-6 lines in 2 locations

includes/db/Database.php 2 locations

@@ 2464-2469 (lines=6) @@
2461
		$table = $this->tableName( $table );
2462
		$sql = "DELETE FROM $table";
2463
2464
		if ( $conds != '*' ) {
2465
			if ( is_array( $conds ) ) {
2466
				$conds = $this->makeList( $conds, LIST_AND );
2467
			}
2468
			$sql .= ' WHERE ' . $conds;
2469
		}
2470
2471
		return $this->query( $sql, $fname );
2472
	}
@@ 2542-2547 (lines=6) @@
2539
			" SELECT $startOpts " . implode( ',', $varMap ) .
2540
			" FROM $srcTable $useIndex $ignoreIndex ";
2541
2542
		if ( $conds != '*' ) {
2543
			if ( is_array( $conds ) ) {
2544
				$conds = $this->makeList( $conds, LIST_AND );
2545
			}
2546
			$sql .= " WHERE $conds";
2547
		}
2548
2549
		$sql .= " $tailOpts";
2550