@@ -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 ) ) { |
@@ -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 |
@@ -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 | |
@@ -166,14 +166,14 @@ discard block |
||
| 166 | 166 | |
| 167 | 167 | if ( Sequence::FIRST === $sequence_type ) { |
| 168 | 168 | foreach ( $result as $method => $title ) { |
| 169 | - unset( $result[ $method ] ); |
|
| 169 | + unset( $result[$method] ); |
|
| 170 | 170 | |
| 171 | 171 | // Get WordPress payment method for direct debit method. |
| 172 | 172 | $method = Methods::transform_gateway_method( $method ); |
| 173 | 173 | $payment_method = array_search( $method, PaymentMethods::get_recurring_methods(), true ); |
| 174 | 174 | |
| 175 | 175 | if ( $payment_method ) { |
| 176 | - $results[ $payment_method ] = $title; |
|
| 176 | + $results[$payment_method] = $title; |
|
| 177 | 177 | } |
| 178 | 178 | } |
| 179 | 179 | } |
@@ -736,7 +736,7 @@ discard block |
||
| 736 | 736 | if ( false !== $mollie_chargeback ) { |
| 737 | 737 | $subscriptions = array_filter( |
| 738 | 738 | $payment->get_subscriptions(), |
| 739 | - function ( $subscription ) { |
|
| 739 | + function( $subscription ) { |
|
| 740 | 740 | return SubscriptionStatus::ACTIVE === $subscription->get_status(); |
| 741 | 741 | } |
| 742 | 742 | ); |
@@ -441,13 +441,13 @@ |
||
| 441 | 441 | $billing_email = ( null === $customer ) ? null : $customer->get_email(); |
| 442 | 442 | |
| 443 | 443 | /** |
| 444 | - * Filters the Mollie payment billing email used for bank transfer payment instructions. |
|
| 445 | - * |
|
| 446 | - * @since 2.2.0 |
|
| 447 | - * |
|
| 448 | - * @param string|null $billing_email Billing email. |
|
| 449 | - * @param Payment $payment Payment. |
|
| 450 | - */ |
|
| 444 | + * Filters the Mollie payment billing email used for bank transfer payment instructions. |
|
| 445 | + * |
|
| 446 | + * @since 2.2.0 |
|
| 447 | + * |
|
| 448 | + * @param string|null $billing_email Billing email. |
|
| 449 | + * @param Payment $payment Payment. |
|
| 450 | + */ |
|
| 451 | 451 | $billing_email = \apply_filters( 'pronamic_pay_mollie_payment_billing_email', $billing_email, $payment ); |
| 452 | 452 | |
| 453 | 453 | $request->set_billing_email( $billing_email ); |