@@ -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 | } |
@@ -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 ); |