Code Duplication    Length = 6-6 lines in 2 locations

includes/db/Database.php 2 locations

@@ 2426-2431 (lines=6) @@
2423
		$table = $this->tableName( $table );
2424
		$sql = "DELETE FROM $table";
2425
2426
		if ( $conds != '*' ) {
2427
			if ( is_array( $conds ) ) {
2428
				$conds = $this->makeList( $conds, LIST_AND );
2429
			}
2430
			$sql .= ' WHERE ' . $conds;
2431
		}
2432
2433
		return $this->query( $sql, $fname );
2434
	}
@@ 2503-2508 (lines=6) @@
2500
			" SELECT $startOpts " . implode( ',', $varMap ) .
2501
			" FROM $srcTable $useIndex ";
2502
2503
		if ( $conds != '*' ) {
2504
			if ( is_array( $conds ) ) {
2505
				$conds = $this->makeList( $conds, LIST_AND );
2506
			}
2507
			$sql .= " WHERE $conds";
2508
		}
2509
2510
		$sql .= " $tailOpts";
2511