Passed
Push — master ( 5a45c8...758375 )
by Brian
06:25 queued 50s
created
templates/payment-forms/elements/discount.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -8,20 +8,20 @@
 block discarded – undo
8 8
  * @var GetPaid_Payment_Form $form The current payment form
9 9
  */
10 10
 
11
-defined( 'ABSPATH' ) || exit;
11
+defined('ABSPATH') || exit;
12 12
 
13
-$placeholder = esc_attr( $input_label );
14
-$label       = sanitize_text_field( $button_label );
13
+$placeholder = esc_attr($input_label);
14
+$label       = sanitize_text_field($button_label);
15 15
 
16
-if ( ! empty( $description ) ) {
16
+if (!empty($description)) {
17 17
     $description = "<small class='form-text text-muted'>$description</small>";
18 18
 } else {
19 19
     $description = '';
20 20
 }
21 21
 
22 22
 $discount_code = '';
23
-if ( ! empty( $form->invoice ) ) {
24
-    $discount_code = esc_attr( $form->invoice->get_discount_code() );
23
+if (!empty($form->invoice)) {
24
+    $discount_code = esc_attr($form->invoice->get_discount_code());
25 25
 }
26 26
 
27 27
 ?>
Please login to merge, or discard this patch.