Code Duplication    Length = 4-4 lines in 2 locations

includes/librairies/payments/payment.class.php 2 locations

@@ 360-363 (lines=4) @@
357
			$display_button = true;
358
		}
359
360
		if(empty($payment_transaction)){
361
			$payment_validation .= '<hr/>' . __('Transaction number', 'wpshop') . '&nbsp;:&nbsp;<input type="text" value="" name="payment_method_transaction_number" id="payment_method_transaction_number_'.$post_id.'" />';
362
			$display_button = true;
363
		}
364
365
		if($display_button){
366
			$payment_validation .= '
@@ 365-368 (lines=4) @@
362
			$display_button = true;
363
		}
364
365
		if($display_button){
366
			$payment_validation .= '
367
		<br/><br/><a class="button payment_method_validate order_'.$post_id.' wpshop_clear" >'.__('Validate payment method', 'wpshop').'</a>';
368
		}
369
370
		$payment_validation .= '
371
</div>';