@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | // Payment method input HTML. |
| 36 | 36 | $html = $gateway->get_input_html(); |
| 37 | 37 | |
| 38 | - if ( ! empty( $html ) ) { |
|
| 38 | + if ( !empty( $html ) ) { |
|
| 39 | 39 | $inputs[ $payment_method ] = array( |
| 40 | 40 | 'label' => $method_name, |
| 41 | 41 | 'html' => $html, |
@@ -44,10 +44,10 @@ discard block |
||
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | if ( $gateway->has_error() ) { |
| 47 | - $pronamic_ideal_errors[] = $gateway->get_error(); |
|
| 47 | + $pronamic_ideal_errors[ ] = $gateway->get_error(); |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | - include Plugin::$dirname . '/views/errors.php'; |
|
| 50 | + include Plugin::$dirname.'/views/errors.php'; |
|
| 51 | 51 | |
| 52 | 52 | ?> |
| 53 | 53 | <table class="form-table"> |
@@ -79,12 +79,12 @@ discard block |
||
| 79 | 79 | |
| 80 | 80 | <tr class="pronamic-pay-cloack pronamic-pay-test-payment-method <?php echo esc_attr( $method ); ?>"> |
| 81 | 81 | <th scope="row"> |
| 82 | - <?php echo esc_html( $input['label'] ); ?> |
|
| 82 | + <?php echo esc_html( $input[ 'label' ] ); ?> |
|
| 83 | 83 | </th> |
| 84 | 84 | <td> |
| 85 | 85 | <?php |
| 86 | 86 | |
| 87 | - echo $input['html']; // WPCS: XSS ok. |
|
| 87 | + echo $input[ 'html' ]; // WPCS: XSS ok. |
|
| 88 | 88 | |
| 89 | 89 | ?> |
| 90 | 90 | </td> |
@@ -296,7 +296,7 @@ discard block |
||
| 296 | 296 | <?php |
| 297 | 297 | |
| 298 | 298 | if ( $is_ideal || $gateway instanceof \Pronamic\WordPress\Pay\Gateways\OmniKassa2\Gateway ) { |
| 299 | - include Plugin::$dirname . '/views/ideal-test-cases.php'; |
|
| 299 | + include Plugin::$dirname.'/views/ideal-test-cases.php'; |
|
| 300 | 300 | } |
| 301 | 301 | } else { |
| 302 | 302 | printf( |