Code Duplication    Length = 7-7 lines in 2 locations

templates/history-donations.php 2 locations

@@ 176-182 (lines=7) @@
173
					<?php endif; ?>
174
175
					<?php
176
					if ( filter_var( $donation_history_args['status'], FILTER_VALIDATE_BOOLEAN ) ) :
177
						echo sprintf(
178
							'<td class="give-donation-status"><span class="title-for-mobile">%2$s</span>%1$s</td>',
179
							give_get_payment_status( $post, true ),
180
							esc_html( $table_headings['status'] )
181
						);
182
					endif;
183
184
					if ( filter_var( $donation_history_args['payment_method'], FILTER_VALIDATE_BOOLEAN ) ) :
185
						echo sprintf(
@@ 184-190 (lines=7) @@
181
						);
182
					endif;
183
184
					if ( filter_var( $donation_history_args['payment_method'], FILTER_VALIDATE_BOOLEAN ) ) :
185
						echo sprintf(
186
							'<td class="give-donation-payment-method"><span class="title-for-mobile">%2$s</span>%1$s</td>',
187
							give_get_gateway_checkout_label( give_get_payment_gateway( $post->ID ) ),
188
							esc_html( $table_headings['payment_method'] )
189
						);
190
					endif;
191
					?>
192
					<td class="give-donation-details">
193
						<?php