@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | $html = $gateway->get_input_html(); |
| 45 | 45 | |
| 46 | 46 | if ( ! empty( $html ) ) { |
| 47 | - $inputs[ $payment_method ] = array( |
|
| 47 | + $inputs[$payment_method] = array( |
|
| 48 | 48 | 'label' => $method_name, |
| 49 | 49 | 'html' => $html, |
| 50 | 50 | ); |
@@ -167,8 +167,8 @@ discard block |
||
| 167 | 167 | foreach ( $options as $key => $label ) { |
| 168 | 168 | $interval_suffix = ''; |
| 169 | 169 | |
| 170 | - if ( isset( $options_interval_suffix[ $key ] ) ) { |
|
| 171 | - $interval_suffix = $options_interval_suffix[ $key ]; |
|
| 170 | + if ( isset( $options_interval_suffix[$key] ) ) { |
|
| 171 | + $interval_suffix = $options_interval_suffix[$key]; |
|
| 172 | 172 | } |
| 173 | 173 | |
| 174 | 174 | printf( |
@@ -229,7 +229,7 @@ discard block |
||
| 229 | 229 | $config_ids = $wpdb->get_results( $query ); // WPCS: unprepared SQL ok. |
| 230 | 230 | |
| 231 | 231 | foreach ( $config_ids as $config_id ) { |
| 232 | - $config_ids_map[ $config_id->id ] = $config_id->post_id; |
|
| 232 | + $config_ids_map[$config_id->id] = $config_id->post_id; |
|
| 233 | 233 | } |
| 234 | 234 | |
| 235 | 235 | /** |
@@ -301,7 +301,7 @@ discard block |
||
| 301 | 301 | $feed_meta = json_decode( $feed->meta, true ); |
| 302 | 302 | |
| 303 | 303 | $meta['form_id'] = $feed->form_id; |
| 304 | - $meta['config_id'] = @$config_ids_map[ $feed->configuration_id ]; |
|
| 304 | + $meta['config_id'] = @$config_ids_map[$feed->configuration_id]; |
|
| 305 | 305 | $meta['is_active'] = $feed->is_active; |
| 306 | 306 | $meta['transaction_description'] = @$feed_meta['transactionDescription']; |
| 307 | 307 | $meta['delay_notification_ids'] = @$feed_meta['delayNotificationIds']; |
@@ -415,7 +415,7 @@ discard block |
||
| 415 | 415 | |
| 416 | 416 | // Meta |
| 417 | 417 | $meta = array( |
| 418 | - 'config_id' => @$config_ids_map[ $payment->configuration_id ], |
|
| 418 | + 'config_id' => @$config_ids_map[$payment->configuration_id], |
|
| 419 | 419 | 'purchase_id' => $payment->purchase_id, |
| 420 | 420 | 'transaction_id' => $payment->transaction_id, |
| 421 | 421 | 'currency' => $payment->currency, |
@@ -474,7 +474,7 @@ discard block |
||
| 474 | 474 | $value = get_option( $key_old ); |
| 475 | 475 | |
| 476 | 476 | if ( ! empty( $value ) ) { |
| 477 | - $value_new = @$config_ids_map[ $value ]; |
|
| 477 | + $value_new = @$config_ids_map[$value]; |
|
| 478 | 478 | |
| 479 | 479 | update_option( $key_new, $value_new ); |
| 480 | 480 | } |
@@ -500,7 +500,7 @@ discard block |
||
| 500 | 500 | if ( is_array( $settings ) && isset( $settings['pronamic_shopp_ideal_configuration'] ) ) { |
| 501 | 501 | $value = $settings['pronamic_shopp_ideal_configuration']; |
| 502 | 502 | |
| 503 | - $settings['config_id'] = @$config_ids_map[ $value ]; |
|
| 503 | + $settings['config_id'] = @$config_ids_map[$value]; |
|
| 504 | 504 | |
| 505 | 505 | $wpdb->update( |
| 506 | 506 | $shopp_meta_table, |
@@ -522,7 +522,7 @@ discard block |
||
| 522 | 522 | if ( is_array( $settings ) && isset( $settings['configuration_id'] ) ) { |
| 523 | 523 | $value = $settings['configuration_id']; |
| 524 | 524 | |
| 525 | - $settings['config_id'] = @$config_ids_map[ $value ]; |
|
| 525 | + $settings['config_id'] = @$config_ids_map[$value]; |
|
| 526 | 526 | |
| 527 | 527 | unset( $settings['configuration_id'] ); |
| 528 | 528 | |
@@ -18,13 +18,16 @@ |
||
| 18 | 18 | <?php esc_html_e( 'No payment lines found.', 'pronamic_ideal' ); ?> |
| 19 | 19 | </p> |
| 20 | 20 | |
| 21 | -<?php else : ?> |
|
| 21 | +<?php else { |
|
| 22 | + : ?> |
|
| 22 | 23 | |
| 23 | 24 | <div class="pronamic-pay-table-responsive"> |
| 24 | 25 | <table class="pronamic-pay-table widefat"> |
| 25 | 26 | <thead> |
| 26 | 27 | <tr> |
| 27 | - <th scope="col"><?php esc_html_e( 'ID', 'pronamic_ideal' ); ?></th> |
|
| 28 | + <th scope="col"><?php esc_html_e( 'ID', 'pronamic_ideal' ); |
|
| 29 | +} |
|
| 30 | +?></th> |
|
| 28 | 31 | <th scope="col"><?php esc_html_e( 'SKU', 'pronamic_ideal' ); ?></th> |
| 29 | 32 | <th scope="col"><?php esc_html_e( 'Image', 'pronamic_ideal' ); ?></th> |
| 30 | 33 | <th scope="col"><?php esc_html_e( 'Name', 'pronamic_ideal' ); ?></th> |
@@ -389,9 +389,11 @@ |
||
| 389 | 389 | |
| 390 | 390 | esc_html_e( 'Ecommerce conversion tracked', 'pronamic_ideal' ); |
| 391 | 391 | |
| 392 | - else : |
|
| 392 | + else { |
|
| 393 | + : |
|
| 393 | 394 | |
| 394 | 395 | esc_html_e( 'Ecommerce conversion not tracked', 'pronamic_ideal' ); |
| 396 | + } |
|
| 395 | 397 | |
| 396 | 398 | endif; |
| 397 | 399 | |