Code Duplication    Length = 3-3 lines in 3 locations

includes/process-donation.php 3 locations

@@ 1140-1142 (lines=3) @@
1137
	}
1138
1139
	// Get user first name.
1140
	if ( ! isset( $user['user_first'] ) || strlen( trim( $user['user_first'] ) ) < 1 ) {
1141
		$user['user_first'] = isset( $post_data['give_first'] ) ? strip_tags( trim( $post_data['give_first'] ) ) : '';
1142
	}
1143
1144
	// Get user last name.
1145
	if ( ! isset( $user['user_last'] ) || strlen( trim( $user['user_last'] ) ) < 1 ) {
@@ 1145-1147 (lines=3) @@
1142
	}
1143
1144
	// Get user last name.
1145
	if ( ! isset( $user['user_last'] ) || strlen( trim( $user['user_last'] ) ) < 1 ) {
1146
		$user['user_last'] = isset( $post_data['give_last'] ) ? strip_tags( trim( $post_data['give_last'] ) ) : '';
1147
	}
1148
1149
	// Add Title Prefix to user information.
1150
	if ( empty( $user['user_title'] ) || strlen( trim( $user['user_title'] ) ) < 1 ) {
@@ 1150-1152 (lines=3) @@
1147
	}
1148
1149
	// Add Title Prefix to user information.
1150
	if ( empty( $user['user_title'] ) || strlen( trim( $user['user_title'] ) ) < 1 ) {
1151
		$user['user_title'] = ! empty( $post_data['give_title'] ) ? strip_tags( trim( $post_data['give_title'] ) ) : '';
1152
	}
1153
1154
	// Get the user's billing address details.
1155
	$user['address']            = array();