Code Duplication    Length = 4-6 lines in 2 locations

includes/functions.php 2 locations

@@ 1503-1506 (lines=4) @@
1500
function yourls_add_query_arg() {
1501
	$ret = '';
1502
	if ( is_array( func_get_arg(0) ) ) {
1503
		if ( @func_num_args() < 2 || false === @func_get_arg( 1 ) )
1504
			$uri = $_SERVER['REQUEST_URI'];
1505
		else
1506
			$uri = @func_get_arg( 1 );
1507
	} else {
1508
		if ( @func_num_args() < 3 || false === @func_get_arg( 2 ) )
1509
			$uri = $_SERVER['REQUEST_URI'];
@@ 1507-1512 (lines=6) @@
1504
			$uri = $_SERVER['REQUEST_URI'];
1505
		else
1506
			$uri = @func_get_arg( 1 );
1507
	} else {
1508
		if ( @func_num_args() < 3 || false === @func_get_arg( 2 ) )
1509
			$uri = $_SERVER['REQUEST_URI'];
1510
		else
1511
			$uri = @func_get_arg( 2 );
1512
	}
1513
	
1514
	$uri = str_replace( '&amp;', '&', $uri );
1515