@@ -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; |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | __( 'test', 'pronamic_ideal' ) => 'https://ca-test.adyen.com/ca/ca/login.shtml', |
| 42 | 42 | __( 'live', 'pronamic_ideal' ) => 'https://ca-live.adyen.com/ca/ca/login.shtml', |
| 43 | 43 | ); |
| 44 | - $this->supports = array( |
|
| 44 | + $this->supports = array( |
|
| 45 | 45 | 'webhook', |
| 46 | 46 | 'webhook_log', |
| 47 | 47 | ); |
@@ -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 | } |
@@ -41,8 +41,8 @@ |
||
| 41 | 41 | |
| 42 | 42 | <?php |
| 43 | 43 | |
| 44 | - wp_print_scripts( 'pronamic-pay-adyen-checkout-drop-in' ); |
|
| 44 | + wp_print_scripts( 'pronamic-pay-adyen-checkout-drop-in' ); |
|
| 45 | 45 | |
| 46 | - ?> |
|
| 46 | + ?> |
|
| 47 | 47 | </body> |
| 48 | 48 | </html> |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | wp_register_script( |
| 172 | 172 | 'pronamic-pay-adyen-checkout-drop-in', |
| 173 | 173 | plugins_url( '../js/dist/checkout-drop-in.js', __FILE__ ), |
| 174 | - array ( 'pronamic-pay-adyen-checkout' ), |
|
| 174 | + array( 'pronamic-pay-adyen-checkout' ), |
|
| 175 | 175 | null, |
| 176 | 176 | true |
| 177 | 177 | ); |
@@ -334,7 +334,7 @@ discard block |
||
| 334 | 334 | foreach ( $details as $detail ) { |
| 335 | 335 | $key = $detail->get_key(); |
| 336 | 336 | |
| 337 | - $details_result[ $key ] = \filter_input( $input_type, $key, FILTER_SANITIZE_STRING ); |
|
| 337 | + $details_result[$key] = \filter_input( $input_type, $key, FILTER_SANITIZE_STRING ); |
|
| 338 | 338 | } |
| 339 | 339 | |
| 340 | 340 | $details_result = Util::filter_null( $details_result ); |
@@ -466,7 +466,7 @@ discard block |
||
| 466 | 466 | $configuration = array(); |
| 467 | 467 | |
| 468 | 468 | // Cards. |
| 469 | - $configuration[ 'card' ] = array( |
|
| 469 | + $configuration['card'] = array( |
|
| 470 | 470 | 'enableStoreDetails' => true, |
| 471 | 471 | 'hasHolderName' => true, |
| 472 | 472 | 'holderNameRequired' => true, |
@@ -475,7 +475,7 @@ discard block |
||
| 475 | 475 | ); |
| 476 | 476 | |
| 477 | 477 | // Apple Pay. |
| 478 | - $configuration[ 'applepay' ] = array( |
|
| 478 | + $configuration['applepay'] = array( |
|
| 479 | 479 | 'configuration' => array( |
| 480 | 480 | // Name to be displayed on the form |
| 481 | 481 | 'merchantName' => 'Adyen Test merchant', |
@@ -493,7 +493,7 @@ discard block |
||
| 493 | 493 | ); |
| 494 | 494 | |
| 495 | 495 | // Google Pay. |
| 496 | - $configuration[ 'googlepay' ] = array( |
|
| 496 | + $configuration['googlepay'] = array( |
|
| 497 | 497 | // Change this to PRODUCTION when you're ready to accept live Google Pay payments |
| 498 | 498 | 'environment' => 'TEST', |
| 499 | 499 | |
@@ -507,7 +507,7 @@ discard block |
||
| 507 | 507 | ); |
| 508 | 508 | |
| 509 | 509 | // Boleto Bancário. |
| 510 | - $configuration[ 'boletobancario ' ] = array( |
|
| 510 | + $configuration['boletobancario '] = array( |
|
| 511 | 511 | // Turn personal details section on/off. |
| 512 | 512 | 'personalDetailsRequired' => true, |
| 513 | 513 | |
@@ -267,7 +267,7 @@ |
||
| 267 | 267 | * @return object |
| 268 | 268 | */ |
| 269 | 269 | public function get_json() { |
| 270 | - $properties = array( |
|
| 270 | + $properties = array( |
|
| 271 | 271 | 'refusalReason' => $this->get_refusal_reason(), |
| 272 | 272 | 'redirect' => ( null === $this->get_redirect() ? null : $this->get_redirect()->get_json() ), |
| 273 | 273 | 'resultCode' => $this->get_result_code(), |