@@ -19,14 +19,14 @@ |
||
| 19 | 19 | foreach ( $payment_methods as $payment_method => $details ) { |
| 20 | 20 | $class = $payment_method; |
| 21 | 21 | |
| 22 | - if ( $details['available'] ) { |
|
| 22 | + if ( $details[ 'available' ] ) { |
|
| 23 | 23 | $class .= ' available'; |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | printf( |
| 27 | 27 | '<li class="%1$s"><span class="pronamic-pay-icon pronamic-pay-icon-completed"></span> %2$s</li>', |
| 28 | 28 | esc_attr( $class ), |
| 29 | - esc_html( $details['name'] ) |
|
| 29 | + esc_html( $details[ 'name' ] ) |
|
| 30 | 30 | ); |
| 31 | 31 | } |
| 32 | 32 | |
@@ -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( |