@@ -396,7 +396,7 @@ discard block |
||
| 396 | 396 | protected function create_fields( $form_id, &$form ) { |
| 397 | 397 | foreach ( $form['fields'] as $key => $new_field ) { |
| 398 | 398 | $new_field['form_id'] = $form_id; |
| 399 | - $form['fields'][ $key ]['id'] = FrmField::create( $new_field ); |
|
| 399 | + $form['fields'][$key]['id'] = FrmField::create( $new_field ); |
|
| 400 | 400 | } |
| 401 | 401 | } |
| 402 | 402 | |
@@ -424,9 +424,9 @@ discard block |
||
| 424 | 424 | if ( $key === 'post_title' ) { |
| 425 | 425 | $new_action->post_title = $value; |
| 426 | 426 | } elseif ( is_string( $value ) ) { |
| 427 | - $new_action->post_content[ $key ] = $this->replace_smart_tags( $value, $form['fields'] ); |
|
| 427 | + $new_action->post_content[$key] = $this->replace_smart_tags( $value, $form['fields'] ); |
|
| 428 | 428 | } else { |
| 429 | - $new_action->post_content[ $key ] = $value; |
|
| 429 | + $new_action->post_content[$key] = $value; |
|
| 430 | 430 | } |
| 431 | 431 | } |
| 432 | 432 | |
@@ -445,7 +445,7 @@ discard block |
||
| 445 | 445 | |
| 446 | 446 | $imported = $this->get_tracked_import(); |
| 447 | 447 | |
| 448 | - $imported[ $this->slug ][ $new_form_id ] = $source_id; |
|
| 448 | + $imported[$this->slug][$new_form_id] = $source_id; |
|
| 449 | 449 | |
| 450 | 450 | update_option( $this->tracking, $imported, false ); |
| 451 | 451 | } |
@@ -465,11 +465,11 @@ discard block |
||
| 465 | 465 | private function is_imported( $source_id ) { |
| 466 | 466 | $imported = $this->get_tracked_import(); |
| 467 | 467 | $new_form_id = 0; |
| 468 | - if ( ! isset( $imported[ $this->slug ] ) || ! in_array( $source_id, $imported[ $this->slug ] ) ) { |
|
| 468 | + if ( ! isset( $imported[$this->slug] ) || ! in_array( $source_id, $imported[$this->slug] ) ) { |
|
| 469 | 469 | return $new_form_id; |
| 470 | 470 | } |
| 471 | 471 | |
| 472 | - $new_form_id = array_search( $source_id, array_reverse( $imported[ $this->slug ], true ) ); |
|
| 472 | + $new_form_id = array_search( $source_id, array_reverse( $imported[$this->slug], true ) ); |
|
| 473 | 473 | if ( ! empty( $new_form_id ) && empty( FrmForm::get_key_by_id( $new_form_id ) ) ) { |
| 474 | 474 | // Allow reimport if the form was deleted. |
| 475 | 475 | $new_form_id = 0; |