Code Duplication    Length = 10-10 lines in 2 locations

includes/admin/reports/class-wc-report-coupon-usage.php 2 locations

@@ 253-262 (lines=10) @@
250
					'filter_range' => true
251
				) );
252
253
				if ( ! empty( $most_popular ) && is_array( $most_popular ) ) {
254
					foreach ( $most_popular as $coupon ) {
255
						echo '<tr class="' . ( in_array( $coupon->coupon_code, $this->coupon_codes ) ? 'active' : '' ) . '">
256
							<td class="count" width="1%">' . $coupon->coupon_count . '</td>
257
							<td class="name"><a href="' . esc_url( add_query_arg( 'coupon_codes', $coupon->coupon_code ) ) . '">' . $coupon->coupon_code . '</a></td>
258
						</tr>';
259
					}
260
				} else {
261
					echo '<tr><td colspan="2">' . __( 'No coupons found in range', 'woocommerce' ) . '</td></tr>';
262
				}
263
				?>
264
			</table>
265
		</div>
@@ 300-309 (lines=10) @@
297
					'filter_range' => true
298
				) );
299
300
				if ( ! empty( $most_discount ) && is_array( $most_discount ) ) {
301
					foreach ( $most_discount as $coupon ) {
302
						echo '<tr class="' . ( in_array( $coupon->coupon_code, $this->coupon_codes ) ? 'active' : '' ) . '">
303
							<td class="count" width="1%">' . wc_price( $coupon->discount_amount ) . '</td>
304
							<td class="name"><a href="' . esc_url( add_query_arg( 'coupon_codes', $coupon->coupon_code ) ) . '">' . $coupon->coupon_code . '</a></td>
305
						</tr>';
306
					}
307
				} else {
308
					echo '<tr><td colspan="3">' . __( 'No coupons found in range', 'woocommerce' ) . '</td></tr>';
309
				}
310
				?>
311
			</table>
312
		</div>