@@ -155,8 +155,8 @@ |
||
| 155 | 155 | * @return string|null |
| 156 | 156 | */ |
| 157 | 157 | public static function transform( $payment_method ) { |
| 158 | - if ( isset( self::$map[ $payment_method ] ) ) { |
|
| 159 | - return self::$map[ $payment_method ]; |
|
| 158 | + if ( isset( self::$map[$payment_method] ) ) { |
|
| 159 | + return self::$map[$payment_method]; |
|
| 160 | 160 | } |
| 161 | 161 | |
| 162 | 162 | return null; |
@@ -288,7 +288,7 @@ |
||
| 288 | 288 | foreach ( $payment_method->details as $detail ) { |
| 289 | 289 | if ( 'issuer' === $detail->key && 'select' === $detail->type ) { |
| 290 | 290 | foreach ( $detail->items as $item ) { |
| 291 | - $issuers[ $item->id ] = $item->name; |
|
| 291 | + $issuers[$item->id] = $item->name; |
|
| 292 | 292 | } |
| 293 | 293 | } |
| 294 | 294 | } |
@@ -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(); |