@@ -545,7 +545,7 @@ |
||
| 545 | 545 | // @see https://translate.wordpress.org/projects/wp/4.4.x/admin/nl/default?filters[status]=either&filters[original_id]=2352797&filters[translation_id]=37948900 |
| 546 | 546 | $scheduled_date = date_i18n( __( 'M j, Y @ H:i', 'pronamic_ideal' ), strtotime( $post->post_date ) ); |
| 547 | 547 | |
| 548 | - $messages[ self::POST_TYPE ] = array( |
|
| 548 | + $messages[self::POST_TYPE] = array( |
|
| 549 | 549 | 0 => '', // Unused. Messages start at index 1. |
| 550 | 550 | 1 => __( 'Payment updated.', 'pronamic_ideal' ), |
| 551 | 551 | // @see https://translate.wordpress.org/projects/wp/4.4.x/admin/nl/default?filters[status]=either&filters[original_id]=2352799&filters[translation_id]=37947229. |
@@ -131,13 +131,13 @@ |
||
| 131 | 131 | foreach ( $supported as $payment_method ) { |
| 132 | 132 | $name = PaymentMethods::get_name( $payment_method ); |
| 133 | 133 | |
| 134 | - $payment_methods[ $payment_method ] = array( |
|
| 134 | + $payment_methods[$payment_method] = array( |
|
| 135 | 135 | 'id' => $payment_method, |
| 136 | 136 | 'name' => $name, |
| 137 | 137 | 'available' => in_array( $payment_method, $available, true ), |
| 138 | 138 | ); |
| 139 | 139 | |
| 140 | - $sort[ $payment_method ] = $name; |
|
| 140 | + $sort[$payment_method] = $name; |
|
| 141 | 141 | } |
| 142 | 142 | |
| 143 | 143 | $sort_flags = SORT_STRING; |
@@ -343,8 +343,8 @@ |
||
| 343 | 343 | $key = $date->format( 'Y-m' ); |
| 344 | 344 | |
| 345 | 345 | $value = 0; |
| 346 | - if ( isset( $data[ $key ] ) ) { |
|
| 347 | - $value = (float) $data[ $key ]->value; |
|
| 346 | + if ( isset( $data[$key] ) ) { |
|
| 347 | + $value = (float) $data[$key]->value; |
|
| 348 | 348 | } |
| 349 | 349 | |
| 350 | 350 | $report[] = array( |
@@ -596,10 +596,10 @@ |
||
| 596 | 596 | |
| 597 | 597 | if ( is_array( $class ) ) { |
| 598 | 598 | foreach ( $class as $c ) { |
| 599 | - $classes[ $c ] = $c; |
|
| 599 | + $classes[$c] = $c; |
|
| 600 | 600 | } |
| 601 | 601 | } else { |
| 602 | - $classes[ $class ] = $class; |
|
| 602 | + $classes[$class] = $class; |
|
| 603 | 603 | } |
| 604 | 604 | } |
| 605 | 605 | |
@@ -102,10 +102,10 @@ discard block |
||
| 102 | 102 | // Make sure gateway supports `payment_status_request` feature. |
| 103 | 103 | $config_id = $payment->config_id; |
| 104 | 104 | |
| 105 | - if ( ! isset( $gateways[ $config_id ] ) ) { |
|
| 106 | - $gateways[ $config_id ] = \Pronamic\WordPress\Pay\Plugin::get_gateway( $config_id ); |
|
| 105 | + if ( ! isset( $gateways[$config_id] ) ) { |
|
| 106 | + $gateways[$config_id] = \Pronamic\WordPress\Pay\Plugin::get_gateway( $config_id ); |
|
| 107 | 107 | |
| 108 | - if ( $gateways[ $config_id ] && ! $gateways[ $config_id ]->supports( 'payment_status_request' ) ) { |
|
| 108 | + if ( $gateways[$config_id] && ! $gateways[$config_id]->supports( 'payment_status_request' ) ) { |
|
| 109 | 109 | $unsupported_gateways[] = $config_id; |
| 110 | 110 | } |
| 111 | 111 | } |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | $gateways = explode( ',', $unsupported ); |
| 171 | 171 | |
| 172 | 172 | foreach ( $gateways as $index => $config_id ) { |
| 173 | - $gateways[ $index ] = get_the_title( $config_id ); |
|
| 173 | + $gateways[$index] = get_the_title( $config_id ); |
|
| 174 | 174 | } |
| 175 | 175 | |
| 176 | 176 | $message = sprintf( __( 'Requesting the current payment status is unsupported by %s.', 'pronamic_ideal' ), implode( ', ', $gateways ) ); |
@@ -486,7 +486,7 @@ discard block |
||
| 486 | 486 | foreach ( $query->posts as $post ) { |
| 487 | 487 | $id = $post->ID; |
| 488 | 488 | |
| 489 | - $options[ $id ] = sprintf( |
|
| 489 | + $options[$id] = sprintf( |
|
| 490 | 490 | '%s (%s)', |
| 491 | 491 | get_the_title( $id ), |
| 492 | 492 | get_post_meta( $id, '_pronamic_gateway_mode', true ) |
@@ -768,7 +768,7 @@ discard block |
||
| 768 | 768 | foreach ( $pages as $key => $label ) { |
| 769 | 769 | $id = sprintf( 'pronamic_pay_%s_page_id', $key ); |
| 770 | 770 | |
| 771 | - $return[ $id ] = $label; |
|
| 771 | + $return[$id] = $label; |
|
| 772 | 772 | } |
| 773 | 773 | |
| 774 | 774 | return $return; |
@@ -311,7 +311,7 @@ |
||
| 311 | 311 | foreach ( $data['_pronamic_payment_form_amount_choices'] as $i => $amount ) { |
| 312 | 312 | $amount = \Pronamic\WordPress\Pay\Core\Util::string_to_amount( $amount ); |
| 313 | 313 | |
| 314 | - $data['_pronamic_payment_form_amount_choices'][ $i ] = \Pronamic\WordPress\Pay\Core\Util::amount_to_cents( $amount ); |
|
| 314 | + $data['_pronamic_payment_form_amount_choices'][$i] = \Pronamic\WordPress\Pay\Core\Util::amount_to_cents( $amount ); |
|
| 315 | 315 | } |
| 316 | 316 | |
| 317 | 317 | // Remove empty choices. |
@@ -585,7 +585,7 @@ |
||
| 585 | 585 | * @param string $value Meta value. |
| 586 | 586 | */ |
| 587 | 587 | public function set_meta( $key, $value ) { |
| 588 | - $this->meta[ $key ] = $value; |
|
| 588 | + $this->meta[$key] = $value; |
|
| 589 | 589 | } |
| 590 | 590 | |
| 591 | 591 | /** |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | 'test' => 'https://abnamro-test.ideal-payment.de/', |
| 77 | 77 | 'live' => 'https://abnamro.ideal-payment.de/', |
| 78 | 78 | ); |
| 79 | - $abn_amro_ideal_zelfbouw_v3->provider = 'abnamro'; |
|
| 79 | + $abn_amro_ideal_zelfbouw_v3->provider = 'abnamro'; |
|
| 80 | 80 | |
| 81 | 81 | // Deutsche Bank - iDEAL via Ogone. |
| 82 | 82 | $deutsche_bank_ideal_ogone = new Gateways\Ingenico\OrderStandardEasy\Integration(); |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | 'test' => 'https://myideal.test.db.com/', |
| 95 | 95 | 'live' => 'https://myideal.db.com/', |
| 96 | 96 | ); |
| 97 | - $deutsche_bank_ideal_expert_v3->provider = 'deutschebank'; |
|
| 97 | + $deutsche_bank_ideal_expert_v3->provider = 'deutschebank'; |
|
| 98 | 98 | |
| 99 | 99 | // Fibonacci ORANGE. |
| 100 | 100 | $fibonacci_orange = new Gateways\Icepay\Integration(); |
@@ -230,7 +230,7 @@ discard block |
||
| 230 | 230 | |
| 231 | 231 | // Set integrations. |
| 232 | 232 | foreach ( $gateways as $integration ) { |
| 233 | - $integrations[ $integration->get_id() ] = $integration; |
|
| 233 | + $integrations[$integration->get_id()] = $integration; |
|
| 234 | 234 | } |
| 235 | 235 | |
| 236 | 236 | return $integrations; |