Code Duplication    Length = 3-3 lines in 2 locations

includes/user-functions.php 1 location

@@ 521-523 (lines=3) @@
518
			$address = wp_parse_args( $donor->address[ $args['address_type'] ], $default_address );
519
			break;
520
521
		case is_array( end( $donor->address[ $args['address_type'] ] ) ):
522
			$address = wp_parse_args( array_shift( $donor->address[ $args['address_type'] ] ), $default_address );
523
			break;
524
	}
525
526
	return $address;

includes/class-give-donor.php 1 location

@@ 316-318 (lines=3) @@
313
				$address = wp_parse_args( $this->address[ $args['address_type'] ], $default_address );
314
				break;
315
316
			case is_array( end( $this->address[ $args['address_type'] ] ) ):
317
				$address = wp_parse_args( array_shift( $this->address[ $args['address_type'] ] ), $default_address );
318
				break;
319
		}
320
321
		return $address;