@@ -13,7 +13,7 @@ |
||
| 13 | 13 | $number_of_pages_to_show = 4; |
| 14 | 14 | ?> |
| 15 | 15 | <div id="frm_test_mode_pagination"> |
| 16 | - <?php for ( $i = 1; $i <= $number_of_pages_to_show; $i++ ) : ?> |
|
| 16 | + <?php for ( $i = 1; $i <= $number_of_pages_to_show; $i ++ ) : ?> |
|
| 17 | 17 | <input type="button" class="frm_noallow <?php echo $i === 1 ? 'frm_test_mode_active_page' : ''; ?>" value="<?php echo esc_attr( $i ); ?>"/> |
| 18 | 18 | <?php endfor; ?> |
| 19 | 19 | </div> |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | */ |
| 64 | 64 | private static function get_testing_mode_container() { |
| 65 | 65 | return FrmAppHelper::clip( |
| 66 | - function () { |
|
| 66 | + function() { |
|
| 67 | 67 | self::render_testing_most_container(); |
| 68 | 68 | } |
| 69 | 69 | ); |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | 'data-requires' => 'Business', |
| 114 | 114 | 'style' => 'margin-left: auto;', |
| 115 | 115 | ); |
| 116 | - $ai_install_span_attrs = array( |
|
| 116 | + $ai_install_span_attrs = array( |
|
| 117 | 117 | 'data-upgrade' => __( 'Autofilled forms with AI', 'formidable' ), |
| 118 | 118 | 'data-content' => 'ai-autofill', |
| 119 | 119 | 'data-medium' => 'test-mode', |
@@ -172,7 +172,8 @@ discard block |
||
| 172 | 172 | * @return array |
| 173 | 173 | */ |
| 174 | 174 | private static function get_enabled_form_action_ids( $form_actions, $enabled ) { |
| 175 | - if ( ! $enabled || empty( $_POST ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 175 | + if ( ! $enabled || empty( $_POST ) ) { |
|
| 176 | +// phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 176 | 177 | // Default to having all actions selected. |
| 177 | 178 | return wp_list_pluck( $form_actions, 'ID' ); |
| 178 | 179 | } |
@@ -182,7 +183,8 @@ discard block |
||
| 182 | 183 | return wp_list_pluck( $form_actions, 'ID' ); |
| 183 | 184 | } |
| 184 | 185 | |
| 185 | - if ( empty( $_POST['frm_testmode']['enabled_form_actions'] ) || ! is_array( $_POST['frm_testmode']['enabled_form_actions'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing, SlevomatCodingStandard.Files.LineLength.LineTooLong |
|
| 186 | + if ( empty( $_POST['frm_testmode']['enabled_form_actions'] ) || ! is_array( $_POST['frm_testmode']['enabled_form_actions'] ) ) { |
|
| 187 | +// phpcs:ignore WordPress.Security.NonceVerification.Missing, SlevomatCodingStandard.Files.LineLength.LineTooLong |
|
| 186 | 188 | return array(); |
| 187 | 189 | } |
| 188 | 190 | |