@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | $intent_is_processing = 'processing' === $intent->status; |
| 58 | 58 | if ( $intent_is_processing ) { |
| 59 | 59 | // Append an additional processing message to the end of the success message. |
| 60 | - $filter = function ( $message ) { |
|
| 60 | + $filter = function( $message ) { |
|
| 61 | 61 | $stripe_settings = FrmStrpLiteAppHelper::get_settings(); |
| 62 | 62 | $message .= '<p>' . esc_html( $stripe_settings->settings->processing_message ) . '</p>'; |
| 63 | 63 | return $message; |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | $atts['form'] = FrmForm::getOne( $atts['entry']->form_id ); |
| 162 | 162 | $atts['entry_id'] = $atts['entry']->id; |
| 163 | 163 | $opt = 'success_action'; |
| 164 | - $atts['conf_method'] = ! empty( $atts['form']->options[ $opt ] ) ? $atts['form']->options[ $opt ] : 'message'; |
|
| 164 | + $atts['conf_method'] = ! empty( $atts['form']->options[$opt] ) ? $atts['form']->options[$opt] : 'message'; |
|
| 165 | 165 | |
| 166 | 166 | $actions = FrmFormsController::get_met_on_submit_actions( $atts, 'create' ); |
| 167 | 167 | if ( $actions ) { |
@@ -246,10 +246,10 @@ discard block |
||
| 246 | 246 | */ |
| 247 | 247 | public static function get_payment_intents( $name ) { |
| 248 | 248 | // phpcs:ignore WordPress.Security.NonceVerification.Missing |
| 249 | - if ( ! isset( $_POST[ $name ] ) ) { |
|
| 249 | + if ( ! isset( $_POST[$name] ) ) { |
|
| 250 | 250 | return array(); |
| 251 | 251 | } |
| 252 | - $intents = $_POST[ $name ]; // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.MissingUnslash, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized, WordPress.Security.NonceVerification.Missing |
|
| 252 | + $intents = $_POST[$name]; // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.MissingUnslash, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized, WordPress.Security.NonceVerification.Missing |
|
| 253 | 253 | FrmAppHelper::sanitize_value( 'sanitize_text_field', $intents ); |
| 254 | 254 | return $intents; |
| 255 | 255 | } |
@@ -276,7 +276,7 @@ discard block |
||
| 276 | 276 | self::format_form_data( $form ); |
| 277 | 277 | |
| 278 | 278 | $form_id = absint( $form['form_id'] ); |
| 279 | - $intents = isset( $form[ 'frmintent' . $form_id ] ) ? $form[ 'frmintent' . $form_id ] : array(); |
|
| 279 | + $intents = isset( $form['frmintent' . $form_id] ) ? $form['frmintent' . $form_id] : array(); |
|
| 280 | 280 | |
| 281 | 281 | if ( empty( $intents ) ) { |
| 282 | 282 | wp_die(); |
@@ -286,8 +286,8 @@ discard block |
||
| 286 | 286 | $intents = array( $intents ); |
| 287 | 287 | } else { |
| 288 | 288 | foreach ( $intents as $k => $intent ) { |
| 289 | - if ( is_array( $intent ) && isset( $intent[ $k ] ) ) { |
|
| 290 | - $intents[ $k ] = $intent[ $k ]; |
|
| 289 | + if ( is_array( $intent ) && isset( $intent[$k] ) ) { |
|
| 290 | + $intents[$k] = $intent[$k]; |
|
| 291 | 291 | } |
| 292 | 292 | } |
| 293 | 293 | } |
@@ -344,7 +344,7 @@ discard block |
||
| 344 | 344 | if ( $saved->metadata->action != $action->ID ) { |
| 345 | 345 | continue; |
| 346 | 346 | } |
| 347 | - $intents[ $k ] = array( |
|
| 347 | + $intents[$k] = array( |
|
| 348 | 348 | 'id' => $intent, |
| 349 | 349 | 'action' => $action->ID, |
| 350 | 350 | ); |
@@ -387,7 +387,7 @@ discard block |
||
| 387 | 387 | if ( $k === 'item_meta' ) { |
| 388 | 388 | foreach ( $v as $f => $value ) { |
| 389 | 389 | FrmAppHelper::sanitize_value( 'wp_kses_post', $value ); |
| 390 | - $entry->metas[ absint( $f ) ] = $value; |
|
| 390 | + $entry->metas[absint( $f )] = $value; |
|
| 391 | 391 | } |
| 392 | 392 | } else { |
| 393 | 393 | FrmAppHelper::sanitize_value( 'wp_kses_post', $v ); |
@@ -411,14 +411,14 @@ discard block |
||
| 411 | 411 | |
| 412 | 412 | foreach ( $form as $input ) { |
| 413 | 413 | $key = $input['name']; |
| 414 | - if ( isset( $formatted[ $key ] ) ) { |
|
| 415 | - if ( is_array( $formatted[ $key ] ) ) { |
|
| 416 | - $formatted[ $key ][] = $input['value']; |
|
| 414 | + if ( isset( $formatted[$key] ) ) { |
|
| 415 | + if ( is_array( $formatted[$key] ) ) { |
|
| 416 | + $formatted[$key][] = $input['value']; |
|
| 417 | 417 | } else { |
| 418 | - $formatted[ $key ] = array( $formatted[ $key ], $input['value'] ); |
|
| 418 | + $formatted[$key] = array( $formatted[$key], $input['value'] ); |
|
| 419 | 419 | } |
| 420 | 420 | } else { |
| 421 | - $formatted[ $key ] = $input['value']; |
|
| 421 | + $formatted[$key] = $input['value']; |
|
| 422 | 422 | } |
| 423 | 423 | } |
| 424 | 424 | |
@@ -583,7 +583,7 @@ discard block |
||
| 583 | 583 | * @return string The name with special characters removed. |
| 584 | 584 | */ |
| 585 | 585 | private static function strip_special_characters_from_statement_descriptor( $name ) { |
| 586 | - $special_characters = array( '<', '>', '\\', "'", '"', '*', ); |
|
| 586 | + $special_characters = array( '<', '>', '\\', "'", '"', '*',); |
|
| 587 | 587 | return str_replace( $special_characters, '', $name ); |
| 588 | 588 | } |
| 589 | 589 | |
@@ -645,7 +645,7 @@ discard block |
||
| 645 | 645 | |
| 646 | 646 | foreach ( $actions as $k => $action ) { |
| 647 | 647 | $amount = self::get_amount_before_submit( compact( 'action', 'form' ) ); |
| 648 | - $actions[ $k ]->post_content['amount'] = $amount; |
|
| 648 | + $actions[$k]->post_content['amount'] = $amount; |
|
| 649 | 649 | } |
| 650 | 650 | } |
| 651 | 651 | |