@@ -8,20 +8,20 @@ |
||
| 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 | ?> |