@@ -117,14 +117,14 @@ |
||
117 | 117 | |
118 | 118 | if ( Sequence::FIRST === $sequence_type ) { |
119 | 119 | foreach ( $result as $method => $title ) { |
120 | - unset( $result[ $method ] ); |
|
120 | + unset( $result[$method] ); |
|
121 | 121 | |
122 | 122 | // Get WordPress payment method for direct debit method. |
123 | 123 | $method = Methods::transform_gateway_method( $method ); |
124 | 124 | $payment_method = array_search( $method, PaymentMethods::get_recurring_methods(), true ); |
125 | 125 | |
126 | 126 | if ( $payment_method ) { |
127 | - $results[ $payment_method ] = $title; |
|
127 | + $results[$payment_method] = $title; |
|
128 | 128 | } |
129 | 129 | } |
130 | 130 | } |
@@ -149,8 +149,8 @@ |
||
149 | 149 | return null; |
150 | 150 | } |
151 | 151 | |
152 | - if ( isset( self::$map[ $payment_method ] ) ) { |
|
153 | - return self::$map[ $payment_method ]; |
|
152 | + if ( isset( self::$map[$payment_method] ) ) { |
|
153 | + return self::$map[$payment_method]; |
|
154 | 154 | } |
155 | 155 | |
156 | 156 | if ( ! empty( $default ) ) { |
@@ -81,7 +81,7 @@ |
||
81 | 81 | * @link https://www.php.net/array_search |
82 | 82 | */ |
83 | 83 | if ( \array_key_exists( $search, $supported ) ) { |
84 | - return $supported[ $search ]; |
|
84 | + return $supported[$search]; |
|
85 | 85 | } |
86 | 86 | |
87 | 87 | return null; |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | continue; |
212 | 212 | } |
213 | 213 | |
214 | - $issuers[ $id ] = $name; |
|
214 | + $issuers[$id] = $name; |
|
215 | 215 | } |
216 | 216 | } |
217 | 217 | |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | continue; |
253 | 253 | } |
254 | 254 | |
255 | - $payment_methods[ $id ] = $name; |
|
255 | + $payment_methods[$id] = $name; |
|
256 | 256 | } |
257 | 257 | } |
258 | 258 | |
@@ -447,7 +447,7 @@ discard block |
||
447 | 447 | } |
448 | 448 | |
449 | 449 | // @codingStandardsIgnoreStart |
450 | - $valid_mandates[ $mandate->createdAt ] = $mandate; |
|
450 | + $valid_mandates[$mandate->createdAt] = $mandate; |
|
451 | 451 | // @codingStandardsIgnoreEnd |
452 | 452 | } |
453 | 453 |