@@ -92,7 +92,7 @@ |
||
| 92 | 92 | // Use line item name as fallback for description. |
| 93 | 93 | if ( null === $description ) { |
| 94 | 94 | /* translators: %s: item index */ |
| 95 | - $description = sprintf( __( 'Item %s', 'pronamic_ideal' ), $i++ ); |
|
| 95 | + $description = sprintf( __( 'Item %s', 'pronamic_ideal' ), $i ++ ); |
|
| 96 | 96 | |
| 97 | 97 | if ( null !== $line->get_name() && '' !== $line->get_name() ) { |
| 98 | 98 | $description = $line->get_name(); |
@@ -160,7 +160,7 @@ |
||
| 160 | 160 | } |
| 161 | 161 | |
| 162 | 162 | if ( array_key_exists( $payment_method, self::$map ) ) { |
| 163 | - return self::$map[ $payment_method ]; |
|
| 163 | + return self::$map[$payment_method]; |
|
| 164 | 164 | } |
| 165 | 165 | |
| 166 | 166 | return null; |
@@ -252,7 +252,7 @@ |
||
| 252 | 252 | foreach ( $server_keys as $key ) { |
| 253 | 253 | if ( array_key_exists( $key, $_SERVER ) ) { |
| 254 | 254 | // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized |
| 255 | - $data[ $key ] = wp_unslash( $_SERVER[ $key ] ); |
|
| 255 | + $data[$key] = wp_unslash( $_SERVER[$key] ); |
|
| 256 | 256 | } |
| 257 | 257 | } |
| 258 | 258 | |
@@ -425,7 +425,7 @@ |
||
| 425 | 425 | |
| 426 | 426 | if ( 'issuer' === $detail->key && 'select' === $detail->type ) { |
| 427 | 427 | foreach ( $detail->items as $item ) { |
| 428 | - $issuers[ \strval( $item->id ) ] = \strval( $item->name ); |
|
| 428 | + $issuers[\strval( $item->id )] = \strval( $item->name ); |
|
| 429 | 429 | } |
| 430 | 430 | } |
| 431 | 431 | } |
@@ -345,7 +345,7 @@ |
||
| 345 | 345 | foreach ( $details as $detail ) { |
| 346 | 346 | $key = (string) $detail->get_key(); |
| 347 | 347 | |
| 348 | - $details_result[ $key ] = \filter_input( $input_type, $key, FILTER_SANITIZE_STRING ); |
|
| 348 | + $details_result[$key] = \filter_input( $input_type, $key, FILTER_SANITIZE_STRING ); |
|
| 349 | 349 | } |
| 350 | 350 | |
| 351 | 351 | $details_result = Util::filter_null( $details_result ); |
@@ -516,10 +516,10 @@ |
||
| 516 | 516 | } |
| 517 | 517 | |
| 518 | 518 | if ( empty( $private_key ) && false !== \strpos( $field['meta_key'], 'apple_pay' ) ) { |
| 519 | - printf( |
|
| 520 | - '<p class="pronamic-pay-description description">%s</p><p> </p>', |
|
| 521 | - esc_html__( 'Leave empty to auto fill when uploading an Apple Pay Merchant Identity PKCS#12 certificate file.', 'pronamic_ideal' ) |
|
| 522 | - ); |
|
| 519 | + printf( |
|
| 520 | + '<p class="pronamic-pay-description description">%s</p><p> </p>', |
|
| 521 | + esc_html__( 'Leave empty to auto fill when uploading an Apple Pay Merchant Identity PKCS#12 certificate file.', 'pronamic_ideal' ) |
|
| 522 | + ); |
|
| 523 | 523 | } |
| 524 | 524 | |
| 525 | 525 | printf( |
@@ -587,9 +587,9 @@ |
||
| 587 | 587 | |
| 588 | 588 | foreach ( $files as $name => $meta_key ) { |
| 589 | 589 | // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotValidated |
| 590 | - if ( isset( $_FILES[ $name ] ) && \UPLOAD_ERR_OK === $_FILES[ $name ]['error'] ) { |
|
| 590 | + if ( isset( $_FILES[$name] ) && \UPLOAD_ERR_OK === $_FILES[$name]['error'] ) { |
|
| 591 | 591 | // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotValidated, WordPress.Security.ValidatedSanitizedInput.MissingUnslash, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized |
| 592 | - $value = file_get_contents( $_FILES[ $name ]['tmp_name'] ); |
|
| 592 | + $value = file_get_contents( $_FILES[$name]['tmp_name'] ); |
|
| 593 | 593 | |
| 594 | 594 | if ( '_pronamic_gateway_adyen_apple_pay_merchant_id_certificate' === $meta_key ) { |
| 595 | 595 | $apple_pay_merchant_id_pkcs12 = $value; |