@@ -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 ); |
@@ -608,9 +608,9 @@ |
||
608 | 608 | |
609 | 609 | foreach ( $files as $name => $meta_key ) { |
610 | 610 | // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotValidated |
611 | - if ( isset( $_FILES[ $name ] ) && \UPLOAD_ERR_OK === $_FILES[ $name ]['error'] ) { |
|
611 | + if ( isset( $_FILES[$name] ) && \UPLOAD_ERR_OK === $_FILES[$name]['error'] ) { |
|
612 | 612 | // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotValidated, WordPress.Security.ValidatedSanitizedInput.MissingUnslash, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized |
613 | - $value = file_get_contents( $_FILES[ $name ]['tmp_name'], true ); |
|
613 | + $value = file_get_contents( $_FILES[$name]['tmp_name'], true ); |
|
614 | 614 | |
615 | 615 | update_post_meta( $post_id, $meta_key, $value ); |
616 | 616 | } |