@@ -47,16 +47,20 @@ |
||
47 | 47 | // Provider. |
48 | 48 | if ( count( $name ) > 1 ) : |
49 | 49 | $provider = array_shift( $name ); |
50 | - else : |
|
50 | + else { |
|
51 | + : |
|
51 | 52 | $provider_name = explode( '(', $name[0] ); |
53 | + } |
|
52 | 54 | |
53 | 55 | $provider = array_shift( $provider_name ); |
54 | 56 | endif; |
55 | 57 | |
56 | 58 | if ( $current_provider === $integration->provider ) : |
57 | 59 | $provider = ''; |
58 | - else : |
|
60 | + else { |
|
61 | + : |
|
59 | 62 | $current_provider = $integration->provider; |
63 | + } |
|
60 | 64 | |
61 | 65 | $alternate = ! $alternate; |
62 | 66 | endif; |
@@ -90,10 +90,13 @@ |
||
90 | 90 | </tr> |
91 | 91 | </table> |
92 | 92 | |
93 | -<?php else : ?> |
|
93 | +<?php else { |
|
94 | + : ?> |
|
94 | 95 | |
95 | 96 | <p> |
96 | - <?php esc_html_e( 'This payment is not related to a subscription.', 'pronamic_ideal' ); ?> |
|
97 | + <?php esc_html_e( 'This payment is not related to a subscription.', 'pronamic_ideal' ); |
|
98 | +} |
|
99 | +?> |
|
97 | 100 | </p> |
98 | 101 | |
99 | 102 | <?php endif; ?> |
@@ -26,13 +26,16 @@ |
||
26 | 26 | |
27 | 27 | <?php esc_html_e( 'No payments found.', 'pronamic_ideal' ); ?> |
28 | 28 | |
29 | -<?php else : ?> |
|
29 | +<?php else { |
|
30 | + : ?> |
|
30 | 31 | |
31 | 32 | <table class="pronamic-pay-table widefat"> |
32 | 33 | <thead> |
33 | 34 | <tr> |
34 | 35 | <th scope="col"> |
35 | - <span class="pronamic-pay-tip pronamic-pay-icon pronamic-pay-status" title="<?php esc_attr_e( 'Status', 'pronamic_ideal' ); ?>"><?php esc_html_e( 'Status', 'pronamic_ideal' ); ?></span> |
|
36 | + <span class="pronamic-pay-tip pronamic-pay-icon pronamic-pay-status" title="<?php esc_attr_e( 'Status', 'pronamic_ideal' ); |
|
37 | +} |
|
38 | +?>"><?php esc_html_e( 'Status', 'pronamic_ideal' ); ?></span> |
|
36 | 39 | </th> |
37 | 40 | <th scope="col"><?php esc_html_e( 'Payment', 'pronamic_ideal' ); ?></th> |
38 | 41 | <th scope="col"><?php esc_html_e( 'Transaction', 'pronamic_ideal' ); ?></th> |
@@ -20,12 +20,15 @@ |
||
20 | 20 | |
21 | 21 | <?php esc_html_e( 'No notes found.', 'pronamic_ideal' ); ?> |
22 | 22 | |
23 | -<?php else : ?> |
|
23 | +<?php else { |
|
24 | + : ?> |
|
24 | 25 | |
25 | 26 | <table class="pronamic-pay-table widefat"> |
26 | 27 | <thead> |
27 | 28 | <tr> |
28 | - <th scope="col"><?php esc_html_e( 'Date', 'pronamic_ideal' ); ?></th> |
|
29 | + <th scope="col"><?php esc_html_e( 'Date', 'pronamic_ideal' ); |
|
30 | +} |
|
31 | +?></th> |
|
29 | 32 | <th scope="col"><?php esc_html_e( 'Note', 'pronamic_ideal' ); ?></th> |
30 | 33 | <th scope="col"><?php esc_html_e( 'User', 'pronamic_ideal' ); ?></th> |
31 | 34 | </tr> |
@@ -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( |
@@ -16,13 +16,13 @@ discard block |
||
16 | 16 | $sections_fields = array(); |
17 | 17 | |
18 | 18 | foreach ( $sections as $id => $section ) { |
19 | - $sections_fields[ $id ] = array(); |
|
19 | + $sections_fields[$id] = array(); |
|
20 | 20 | } |
21 | 21 | |
22 | 22 | foreach ( $fields as $id => $field ) { |
23 | 23 | $section = $field['section']; |
24 | 24 | |
25 | - $sections_fields[ $section ][ $id ] = $field; |
|
25 | + $sections_fields[$section][$id] = $field; |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | // Sections. |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | |
181 | 181 | <?php |
182 | 182 | |
183 | - foreach ( $sections_fields[ $id ] as $field ) : |
|
183 | + foreach ( $sections_fields[$id] as $field ) : |
|
184 | 184 | |
185 | 185 | $classes = array(); |
186 | 186 | if ( isset( $field['methods'] ) ) { |
@@ -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 |
@@ -152,9 +152,12 @@ |
||
152 | 152 | |
153 | 153 | <?php wp_reset_postdata(); ?> |
154 | 154 | |
155 | - <?php else : ?> |
|
155 | + <?php else { |
|
156 | + : ?> |
|
156 | 157 | |
157 | - <p><?php esc_html_e( 'No pending payments found.', 'pronamic_ideal' ); ?></p> |
|
158 | + <p><?php esc_html_e( 'No pending payments found.', 'pronamic_ideal' ); |
|
159 | +} |
|
160 | +?></p> |
|
158 | 161 | |
159 | 162 | <?php endif; ?> |
160 | 163 | </div> |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | printf( |
86 | 86 | '<th class="%1$s">%2$s</th>', |
87 | 87 | esc_attr( implode( ' ', $classes ) ), |
88 | - wp_kses_post( $column_titles[ $custom_column ] ) |
|
88 | + wp_kses_post( $column_titles[$custom_column] ) |
|
89 | 89 | ); |
90 | 90 | |
91 | 91 | endforeach; |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | printf( |
120 | 120 | '<td class="%1$s" data-colname="%2$s">', |
121 | 121 | esc_attr( implode( ' ', $classes ) ), |
122 | - esc_html( $column_titles[ $custom_column ] ) |
|
122 | + esc_html( $column_titles[$custom_column] ) |
|
123 | 123 | ); |
124 | 124 | |
125 | 125 | // Do custom column action. |
@@ -74,13 +74,13 @@ |
||
74 | 74 | $files = require $file; |
75 | 75 | |
76 | 76 | foreach ( $files as $identifier => $path ) { |
77 | - if ( ! empty( $GLOBALS['__composer_autoload_files'][ $identifier ] ) ) { |
|
77 | + if ( ! empty( $GLOBALS['__composer_autoload_files'][$identifier] ) ) { |
|
78 | 78 | continue; |
79 | 79 | } |
80 | 80 | |
81 | 81 | require $path; |
82 | 82 | |
83 | - $GLOBALS['__composer_autoload_files'][ $identifier ] = true; |
|
83 | + $GLOBALS['__composer_autoload_files'][$identifier] = true; |
|
84 | 84 | } |
85 | 85 | } |
86 | 86 | } |