@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | $id = Security::filter( $issuer->id ); |
| 164 | 164 | $name = Security::filter( $issuer->name ); |
| 165 | 165 | |
| 166 | - $issuers[ $id ] = $name; |
|
| 166 | + $issuers[$id] = $name; |
|
| 167 | 167 | } |
| 168 | 168 | } |
| 169 | 169 | } |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | $id = Security::filter( $payment_method->id ); |
| 199 | 199 | $name = Security::filter( $payment_method->description ); |
| 200 | 200 | |
| 201 | - $payment_methods[ $id ] = $name; |
|
| 201 | + $payment_methods[$id] = $name; |
|
| 202 | 202 | } |
| 203 | 203 | } |
| 204 | 204 | |
@@ -344,7 +344,7 @@ discard block |
||
| 344 | 344 | } |
| 345 | 345 | |
| 346 | 346 | // @codingStandardsIgnoreStart |
| 347 | - $valid_mandates[ $mandate->createdDatetime ] = $mandate; |
|
| 347 | + $valid_mandates[$mandate->createdDatetime] = $mandate; |
|
| 348 | 348 | // @codingStandardsIgnoreEnd |
| 349 | 349 | } |
| 350 | 350 | |
@@ -142,8 +142,8 @@ |
||
| 142 | 142 | return null; |
| 143 | 143 | } |
| 144 | 144 | |
| 145 | - if ( isset( self::$map[ $payment_method ] ) ) { |
|
| 146 | - return self::$map[ $payment_method ]; |
|
| 145 | + if ( isset( self::$map[$payment_method] ) ) { |
|
| 146 | + return self::$map[$payment_method]; |
|
| 147 | 147 | } |
| 148 | 148 | |
| 149 | 149 | return $default; |
@@ -118,14 +118,14 @@ |
||
| 118 | 118 | |
| 119 | 119 | if ( Recurring::FIRST === $recurring_type ) { |
| 120 | 120 | foreach ( $result as $method => $title ) { |
| 121 | - unset( $result[ $method ] ); |
|
| 121 | + unset( $result[$method] ); |
|
| 122 | 122 | |
| 123 | 123 | // Get WordPress payment method for direct debit method. |
| 124 | 124 | $method = Methods::transform_gateway_method( $method ); |
| 125 | 125 | $payment_method = array_search( $method, PaymentMethods::get_recurring_methods(), true ); |
| 126 | 126 | |
| 127 | 127 | if ( $payment_method ) { |
| 128 | - $results[ $payment_method ] = $title; |
|
| 128 | + $results[$payment_method] = $title; |
|
| 129 | 129 | } |
| 130 | 130 | } |
| 131 | 131 | } |
@@ -118,8 +118,8 @@ |
||
| 118 | 118 | */ |
| 119 | 119 | public function save_post( $data ) { |
| 120 | 120 | // Set mode based on API key. |
| 121 | - if ( isset( $data[ self::API_KEY_META_KEY ], $data['_pronamic_gateway_mode'] ) ) { |
|
| 122 | - $api_key = trim( $data[ self::API_KEY_META_KEY ] ); |
|
| 121 | + if ( isset( $data[self::API_KEY_META_KEY], $data['_pronamic_gateway_mode'] ) ) { |
|
| 122 | + $api_key = trim( $data[self::API_KEY_META_KEY] ); |
|
| 123 | 123 | |
| 124 | 124 | if ( empty( $api_key ) ) { |
| 125 | 125 | $mode = $data['_pronamic_gateway_mode']; |