Code Duplication    Length = 4-6 lines in 2 locations

includes/functions.php 2 locations

@@ 1521-1524 (lines=4) @@
1518
function yourls_add_query_arg() {
1519
	$ret = '';
1520
	if ( is_array( func_get_arg(0) ) ) {
1521
		if ( @func_num_args() < 2 || false === @func_get_arg( 1 ) )
1522
			$uri = $_SERVER['REQUEST_URI'];
1523
		else
1524
			$uri = @func_get_arg( 1 );
1525
	} else {
1526
		if ( @func_num_args() < 3 || false === @func_get_arg( 2 ) )
1527
			$uri = $_SERVER['REQUEST_URI'];
@@ 1525-1530 (lines=6) @@
1522
			$uri = $_SERVER['REQUEST_URI'];
1523
		else
1524
			$uri = @func_get_arg( 1 );
1525
	} else {
1526
		if ( @func_num_args() < 3 || false === @func_get_arg( 2 ) )
1527
			$uri = $_SERVER['REQUEST_URI'];
1528
		else
1529
			$uri = @func_get_arg( 2 );
1530
	}
1531
1532
	$uri = str_replace( '&amp;', '&', $uri );
1533