@@ -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 | } |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | $id = Security::filter( $issuer->id ); |
182 | 182 | $name = Security::filter( $issuer->name ); |
183 | 183 | |
184 | - $issuers[ $id ] = $name; |
|
184 | + $issuers[$id] = $name; |
|
185 | 185 | } |
186 | 186 | } |
187 | 187 | |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | $id = Security::filter( $payment_method->id ); |
216 | 216 | $name = Security::filter( $payment_method->description ); |
217 | 217 | |
218 | - $payment_methods[ $id ] = $name; |
|
218 | + $payment_methods[$id] = $name; |
|
219 | 219 | } |
220 | 220 | } |
221 | 221 | |
@@ -361,7 +361,7 @@ discard block |
||
361 | 361 | } |
362 | 362 | |
363 | 363 | // @codingStandardsIgnoreStart |
364 | - $valid_mandates[ $mandate->createdAt ] = $mandate; |
|
364 | + $valid_mandates[$mandate->createdAt] = $mandate; |
|
365 | 365 | // @codingStandardsIgnoreEnd |
366 | 366 | } |
367 | 367 |
@@ -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 ) ) { |
@@ -72,7 +72,7 @@ |
||
72 | 72 | * @link https://www.php.net/array_search |
73 | 73 | */ |
74 | 74 | if ( array_key_exists( $search, $supported ) ) { |
75 | - return $supported[ $search ]; |
|
75 | + return $supported[$search]; |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | return null; |
@@ -209,13 +209,16 @@ |
||
209 | 209 | <td colspan="4"><?php esc_html_e( 'No mandates found.', 'pronamic_ideal' ); ?></td> |
210 | 210 | </tr> |
211 | 211 | |
212 | - <?php else : ?> |
|
212 | + <?php else { |
|
213 | + : ?> |
|
213 | 214 | |
214 | 215 | <?php foreach ( $mollie_customer_mandates as $mandate ) : ?> |
215 | 216 | |
216 | 217 | <tr> |
217 | 218 | <td> |
218 | - <code><?php echo \esc_html( $mandate->id ); ?></code> |
|
219 | + <code><?php echo \esc_html( $mandate->id ); |
|
220 | +} |
|
221 | +?></code> |
|
219 | 222 | </td> |
220 | 223 | <td> |
221 | 224 | <?php |