@@ -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; |
@@ -36,13 +36,13 @@ |
||
| 36 | 36 | $alphabetic_code = Security::filter( $currency->ALPHABETIC_CODE ); |
| 37 | 37 | $numeric_code = Security::filter( $currency->NUMERIC_CODE ); |
| 38 | 38 | |
| 39 | - $currencies[ $alphabetic_code ] = $numeric_code; |
|
| 39 | + $currencies[$alphabetic_code] = $numeric_code; |
|
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | $number = null; |
| 43 | 43 | |
| 44 | - if ( isset( $currencies[ $code ] ) ) { |
|
| 45 | - $number = $currencies[ $code ]; |
|
| 44 | + if ( isset( $currencies[$code] ) ) { |
|
| 45 | + $number = $currencies[$code]; |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | return $number; |
@@ -71,8 +71,8 @@ |
||
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | // @see https://github.com/WordPress/WordPress/blob/4.9/wp-admin/options.php#L203-L214 |
| 74 | - if ( isset( $_POST[ $option ] ) ) { // WPCS: CSRF ok. |
|
| 75 | - $value = $_POST[ $option ]; // WPCS: CSRF ok. |
|
| 74 | + if ( isset( $_POST[$option] ) ) { // WPCS: CSRF ok. |
|
| 75 | + $value = $_POST[$option]; // WPCS: CSRF ok. |
|
| 76 | 76 | $value = wp_unslash( $value ); |
| 77 | 77 | } |
| 78 | 78 | |
@@ -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 | |
@@ -166,8 +166,8 @@ |
||
| 166 | 166 | global $pronamic_ideal; |
| 167 | 167 | |
| 168 | 168 | foreach ( $pronamic_ideal->gateway_integrations as $integration ) { |
| 169 | - if ( isset( $pronamic_pay_providers[ $integration->provider ] ) ) { |
|
| 170 | - $provider =& $pronamic_pay_providers[ $integration->provider ]; |
|
| 169 | + if ( isset( $pronamic_pay_providers[$integration->provider] ) ) { |
|
| 170 | + $provider = & $pronamic_pay_providers[$integration->provider]; |
|
| 171 | 171 | |
| 172 | 172 | if ( ! isset( $provider['integrations'] ) ) { |
| 173 | 173 | $provider['integrations'] = array(); |
@@ -45,9 +45,9 @@ discard block |
||
| 45 | 45 | |
| 46 | 46 | public function get_and_set_provider() { |
| 47 | 47 | return array( |
| 48 | - array( 'set_id', 'get_id', uniqid() ), |
|
| 49 | - array( 'set_transaction_id', 'get_transaction_id', uniqid() ), |
|
| 50 | - array( 'set_status', 'get_status', 'completed' ), |
|
| 48 | + array( 'set_id', 'get_id', uniqid() ), |
|
| 49 | + array( 'set_transaction_id', 'get_transaction_id', uniqid() ), |
|
| 50 | + array( 'set_status', 'get_status', 'completed' ), |
|
| 51 | 51 | ); |
| 52 | 52 | } |
| 53 | 53 | |
@@ -66,11 +66,11 @@ discard block |
||
| 66 | 66 | |
| 67 | 67 | public function set_provider() { |
| 68 | 68 | return array( |
| 69 | - array( 'set_consumer_name', 'consumer_name', 'John Doe' ), |
|
| 69 | + array( 'set_consumer_name', 'consumer_name', 'John Doe' ), |
|
| 70 | 70 | array( 'set_consumer_account_number', 'consumer_account_number', '1086.34.779' ), |
| 71 | - array( 'set_consumer_iban', 'consumer_iban', 'NL56 RABO 0108 6347 79' ), |
|
| 72 | - array( 'set_consumer_bic', 'consumer_bic', 'RABONL2U' ), |
|
| 73 | - array( 'set_consumer_city', 'consumer_city', 'Drachten' ), |
|
| 71 | + array( 'set_consumer_iban', 'consumer_iban', 'NL56 RABO 0108 6347 79' ), |
|
| 72 | + array( 'set_consumer_bic', 'consumer_bic', 'RABONL2U' ), |
|
| 73 | + array( 'set_consumer_city', 'consumer_city', 'Drachten' ), |
|
| 74 | 74 | ); |
| 75 | 75 | } |
| 76 | 76 | |
@@ -89,25 +89,25 @@ discard block |
||
| 89 | 89 | |
| 90 | 90 | public function get_provider() { |
| 91 | 91 | return array( |
| 92 | - array( 'order_id', 'get_order_id', 1234 ), |
|
| 93 | - array( 'amount', 'get_amount', 89.95 ), |
|
| 94 | - array( 'currency', 'get_currency', 'EUR' ), |
|
| 95 | - array( 'method', 'get_method', 'ideal' ), |
|
| 96 | - array( 'issuer', 'get_issuer', 'ideal_KNABNL2H' ), |
|
| 97 | - array( 'language', 'get_language', 'nl' ), |
|
| 98 | - array( 'locale', 'get_locale', 'nl_NL' ), |
|
| 99 | - array( 'description', 'get_description', 'Lorem ipsum dolor sit amet, consectetur.' ), |
|
| 100 | - array( 'email', 'get_email', '[email protected]' ), |
|
| 101 | - array( 'first_name', 'get_first_name', 'John' ), |
|
| 102 | - array( 'last_name', 'get_last_name', 'Doe' ), |
|
| 103 | - array( 'customer_name', 'get_customer_name', 'John Doe' ), |
|
| 104 | - array( 'address', 'get_address', 'Burgemeester Wuiteweg 39b' ), |
|
| 105 | - array( 'city', 'get_city', 'Drachten' ), |
|
| 106 | - array( 'zip', 'get_zip', '9203 KA' ), |
|
| 107 | - array( 'country', 'get_country', 'NL' ), |
|
| 108 | - array( 'telephone_number', 'get_telephone_number', '1234567890' ), |
|
| 92 | + array( 'order_id', 'get_order_id', 1234 ), |
|
| 93 | + array( 'amount', 'get_amount', 89.95 ), |
|
| 94 | + array( 'currency', 'get_currency', 'EUR' ), |
|
| 95 | + array( 'method', 'get_method', 'ideal' ), |
|
| 96 | + array( 'issuer', 'get_issuer', 'ideal_KNABNL2H' ), |
|
| 97 | + array( 'language', 'get_language', 'nl' ), |
|
| 98 | + array( 'locale', 'get_locale', 'nl_NL' ), |
|
| 99 | + array( 'description', 'get_description', 'Lorem ipsum dolor sit amet, consectetur.' ), |
|
| 100 | + array( 'email', 'get_email', '[email protected]' ), |
|
| 101 | + array( 'first_name', 'get_first_name', 'John' ), |
|
| 102 | + array( 'last_name', 'get_last_name', 'Doe' ), |
|
| 103 | + array( 'customer_name', 'get_customer_name', 'John Doe' ), |
|
| 104 | + array( 'address', 'get_address', 'Burgemeester Wuiteweg 39b' ), |
|
| 105 | + array( 'city', 'get_city', 'Drachten' ), |
|
| 106 | + array( 'zip', 'get_zip', '9203 KA' ), |
|
| 107 | + array( 'country', 'get_country', 'NL' ), |
|
| 108 | + array( 'telephone_number', 'get_telephone_number', '1234567890' ), |
|
| 109 | 109 | array( 'analytics_client_id', 'get_analytics_client_id', 'GA1.2.1234567890.1234567890' ), |
| 110 | - array( 'entrance_code', 'get_entrance_code', uniqid() ), |
|
| 110 | + array( 'entrance_code', 'get_entrance_code', uniqid() ), |
|
| 111 | 111 | ); |
| 112 | 112 | } |
| 113 | 113 | |