@@ -443,7 +443,7 @@ discard block |
||
| 443 | 443 | foreach ( $data as $key => $messages ) { |
| 444 | 444 | if ( in_array( $key, array( 'unread', 'dismissed' ), true ) ) { |
| 445 | 445 | foreach ( $messages as $key_msg => $message ) { |
| 446 | - $data[ $key ][ $key_msg ]['cta'] = self::inbox_clean_messages_cta( $message['cta'] ); |
|
| 446 | + $data[$key][$key_msg]['cta'] = self::inbox_clean_messages_cta( $message['cta'] ); |
|
| 447 | 447 | } |
| 448 | 448 | } |
| 449 | 449 | } |
@@ -536,12 +536,12 @@ discard block |
||
| 536 | 536 | private static function get_dashboard_options( $option_name = null ) { |
| 537 | 537 | $options = get_option( self::OPTION_META_NAME, array() ); |
| 538 | 538 | |
| 539 | - if ( null !== $option_name && ! isset( $options[ $option_name ] ) ) { |
|
| 539 | + if ( null !== $option_name && ! isset( $options[$option_name] ) ) { |
|
| 540 | 540 | return array(); |
| 541 | 541 | } |
| 542 | 542 | |
| 543 | 543 | if ( null !== $option_name ) { |
| 544 | - return $options[ $option_name ]; |
|
| 544 | + return $options[$option_name]; |
|
| 545 | 545 | } |
| 546 | 546 | return $options; |
| 547 | 547 | } |
@@ -556,7 +556,7 @@ discard block |
||
| 556 | 556 | */ |
| 557 | 557 | private static function update_dashboard_options( $data, $option_name ) { |
| 558 | 558 | $options = self::get_dashboard_options(); |
| 559 | - $options[ $option_name ] = $data; |
|
| 559 | + $options[$option_name] = $data; |
|
| 560 | 560 | update_option( self::OPTION_META_NAME, $options, 'no' ); |
| 561 | 561 | } |
| 562 | 562 | |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | $styles = self::get_email_styles(); |
| 97 | 97 | $style = $frm_settings->email_style; |
| 98 | 98 | |
| 99 | - if ( isset( $styles[ $style ] ) && ! empty( $styles[ $style ]['selectable'] ) ) { |
|
| 99 | + if ( isset( $styles[$style] ) && ! empty( $styles[$style]['selectable'] ) ) { |
|
| 100 | 100 | return $style; |
| 101 | 101 | } |
| 102 | 102 | |
@@ -278,7 +278,7 @@ discard block |
||
| 278 | 278 | |
| 279 | 279 | $styles = self::get_email_styles(); |
| 280 | 280 | |
| 281 | - if ( ! isset( $styles[ $style_key ] ) ) { |
|
| 281 | + if ( ! isset( $styles[$style_key] ) ) { |
|
| 282 | 282 | die( esc_html( $not_exist_msg ) ); |
| 283 | 283 | } |
| 284 | 284 | |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | |
| 22 | 22 | if ( is_array( $show_messages ) && count( $show_messages ) > 0 ) { |
| 23 | 23 | // Define a callback function to add 'data-action' attribute to allowed HTML tags |
| 24 | - $add_data_action_callback = function ( $allowed_html ) { |
|
| 24 | + $add_data_action_callback = function( $allowed_html ) { |
|
| 25 | 25 | $allowed_html['span']['data-action'] = true; |
| 26 | 26 | return $allowed_html; |
| 27 | 27 | }; |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | |
| 54 | 54 | foreach ( $action_control->action_options['event'] as $event ) { |
| 55 | 55 | ?> |
| 56 | - <option value="<?php echo esc_attr( $event ); ?>" <?php echo in_array( $event, (array) $form_action->post_content['event'] ) ? ' selected="selected"' : ''; ?> ><?php echo esc_html( $event_labels[ $event ] ?? $event ); ?></option> |
|
| 56 | + <option value="<?php echo esc_attr( $event ); ?>" <?php echo in_array( $event, (array) $form_action->post_content['event'] ) ? ' selected="selected"' : ''; ?> ><?php echo esc_html( $event_labels[$event] ?? $event ); ?></option> |
|
| 57 | 57 | <?php } ?> |
| 58 | 58 | </select> |
| 59 | 59 | </p> |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | $values['count'] = 0; |
| 54 | 54 | |
| 55 | 55 | foreach ( $values['fields'] as $field ) { |
| 56 | - ++$values['count']; |
|
| 56 | + ++ $values['count']; |
|
| 57 | 57 | $grid_helper->set_field( $field ); |
| 58 | 58 | $grid_helper->maybe_begin_field_wrapper(); |
| 59 | 59 | FrmFieldsController::load_single_field( $field, $values ); |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | $params = array(); |
| 9 | 9 | |
| 10 | 10 | foreach ( $data_keys as $key ) { |
| 11 | - $params[ 'data-' . $key ] = $data[ $key ]; |
|
| 11 | + $params['data-' . $key] = $data[$key]; |
|
| 12 | 12 | } |
| 13 | 13 | $params['class'] = 'frm_show_upgrade frm_noallow'; |
| 14 | 14 | $params['href'] = '#'; |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | * |
| 55 | 55 | * @return void |
| 56 | 56 | */ |
| 57 | - function ( $form ) use ( $styles, $default_style, $row_view_file_path ) { |
|
| 57 | + function( $form ) use ( $styles, $default_style, $row_view_file_path ) { |
|
| 58 | 58 | $active_style_id = isset( $form->options['custom_style'] ) ? (int) $form->options['custom_style'] : 1; |
| 59 | 59 | |
| 60 | 60 | if ( 1 === $active_style_id ) { |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | 'text-color' => $style->post_content['text_color'], |
| 47 | 47 | 'submit-bg-color' => $style->post_content['submit_bg_color'], |
| 48 | 48 | ); |
| 49 | - $index = 0; |
|
| 49 | + $index = 0; |
|
| 50 | 50 | |
| 51 | 51 | foreach ( $colors as $css_var_name => $color ) { |
| 52 | 52 | if ( 0 !== strpos( $color, 'rgb' ) ) { |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | 'style' => 'background-color: var(--' . $css_var_name . ')', |
| 59 | 59 | ); |
| 60 | 60 | |
| 61 | - ++$index; |
|
| 61 | + ++ $index; |
|
| 62 | 62 | ?> |
| 63 | 63 | <div <?php FrmAppHelper::array_to_html_params( $circle_params, true ); ?>></div> |
| 64 | 64 | <?php |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | $info['url'] = $xml; |
| 12 | 12 | } |
| 13 | 13 | |
| 14 | - $disabled = isset( $imported[ $info['form'] ] ) ? ' disabled' : ''; |
|
| 14 | + $disabled = isset( $imported[$info['form']] ) ? ' disabled' : ''; |
|
| 15 | 15 | $url = $info['url'] ?? ''; |
| 16 | 16 | $value = $importing === 'form' ? $info['form'] : $info['key']; |
| 17 | 17 | |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | continue; |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | - $hide_views = $importing === 'view' && ( ( $selected && $info['form'] !== $selected ) || isset( $imported[ $info['form'] ] ) ); |
|
| 25 | + $hide_views = $importing === 'view' && ( ( $selected && $info['form'] !== $selected ) || isset( $imported[$info['form']] ) ); |
|
| 26 | 26 | ?> |
| 27 | 27 | <div class="frm_radio radio-inline radio frm_image_option<?php echo esc_attr( $importing === 'view' ? ' show_sub_opt show_' . $info['form'] : '' ); ?>" style="<?php echo esc_attr( $hide_views ? 'display:none' : '' ); ?>"> |
| 28 | 28 | <?php if ( $importing === 'form' ) { ?> |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | if ( $importing === 'form' && $disabled ) { |
| 59 | - FrmAppHelper::kses_echo( FrmFormsHelper::edit_form_link( $imported[ $info['form'] ] ), array( 'a' ) ); |
|
| 59 | + FrmAppHelper::kses_echo( FrmFormsHelper::edit_form_link( $imported[$info['form']] ), array( 'a' ) ); |
|
| 60 | 60 | } else { |
| 61 | 61 | echo esc_html( $info['name'] ); |
| 62 | 62 | } |