@@ -147,9 +147,9 @@ discard block |
||
| 147 | 147 | |
| 148 | 148 | $is_setup_intent = 0 === strpos( $intent->id, 'seti_' ); |
| 149 | 149 | if ( $is_setup_intent ) { |
| 150 | - $errors[ 'field' . $cc_field_id ] = $intent->last_setup_error->message; |
|
| 150 | + $errors['field' . $cc_field_id] = $intent->last_setup_error->message; |
|
| 151 | 151 | } else { |
| 152 | - $errors[ 'field' . $cc_field_id ] = $intent->last_payment_error->message; |
|
| 152 | + $errors['field' . $cc_field_id] = $intent->last_payment_error->message; |
|
| 153 | 153 | } |
| 154 | 154 | |
| 155 | 155 | global $frm_vars; |
@@ -177,10 +177,10 @@ discard block |
||
| 177 | 177 | $save_draft = ! empty( $form->options['save_draft'] ); |
| 178 | 178 | |
| 179 | 179 | global $frm_vars; |
| 180 | - $frm_vars['created_entries'][ $form_id ]['errors'] = $errors; |
|
| 180 | + $frm_vars['created_entries'][$form_id]['errors'] = $errors; |
|
| 181 | 181 | |
| 182 | 182 | // Set to true to get FrmProFieldsHelper::get_page_with_error() run. |
| 183 | - $_POST[ 'frm_page_order_' . $form_id ] = true; |
|
| 183 | + $_POST['frm_page_order_' . $form_id] = true; |
|
| 184 | 184 | |
| 185 | 185 | if ( ! $save_draft ) { |
| 186 | 186 | // If draft saving is not on, delete the entry. |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | } |
| 190 | 190 | |
| 191 | 191 | // If draft saving is on, load the draft entry. |
| 192 | - $frm_vars['created_entries'][ $form_id ]['entry_id'] = $entry_id; |
|
| 192 | + $frm_vars['created_entries'][$form_id]['entry_id'] = $entry_id; |
|
| 193 | 193 | add_action( |
| 194 | 194 | 'frm_filter_final_form', |
| 195 | 195 | /** |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | 'user_id' => get_current_user_id(), |
| 109 | 109 | 'frm_strp_connect_mode' => $mode, |
| 110 | 110 | ); |
| 111 | - $data = self::post_to_connect_server( 'initialize', $additional_body ); |
|
| 111 | + $data = self::post_to_connect_server( 'initialize', $additional_body ); |
|
| 112 | 112 | |
| 113 | 113 | if ( is_string( $data ) ) { |
| 114 | 114 | return $data; |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | * @return object|string |
| 144 | 144 | */ |
| 145 | 145 | private static function post_to_connect_server( $action, $additional_body = array() ) { |
| 146 | - $body = array( |
|
| 146 | + $body = array( |
|
| 147 | 147 | 'frm_strp_connect_action' => $action, |
| 148 | 148 | 'frm_strp_connect_mode' => FrmStrpLiteAppHelper::active_mode(), |
| 149 | 149 | ); |
@@ -502,7 +502,7 @@ discard block |
||
| 502 | 502 | $site_url = home_url(); |
| 503 | 503 | $site_url = self::maybe_fix_wpml_url( $site_url ); |
| 504 | 504 | $site_url = preg_replace( '#^https?://#', '', $site_url ); // remove protocol from url (our url cannot include the colon). |
| 505 | - $site_url = preg_replace( '/:[0-9]+/', '', $site_url ); // Remove port from url (mostly helpful in development). |
|
| 505 | + $site_url = preg_replace( '/:[0-9]+/', '', $site_url ); // Remove port from url (mostly helpful in development). |
|
| 506 | 506 | $site_url = self::strip_lang_from_url( $site_url ); |
| 507 | 507 | |
| 508 | 508 | // $password is either a Pro license or a uuid (See FrmUsage::uuid). |