diff --git a/classes/controllers/FrmAddonsController.php b/classes/controllers/FrmAddonsController.php index ba75000939..a45e3ba0be 100644 --- a/classes/controllers/FrmAddonsController.php +++ b/classes/controllers/FrmAddonsController.php @@ -1493,11 +1493,13 @@ public static function addon_upgrade_link( $addon, $upgrade_link ) { if ( ! str_contains( $class, 'frm-button' ) ) { $class .= ' frm-button-secondary frm-button-sm'; } + // phpcs:disable Generic.WhiteSpace.ScopeIndent ?>
' . $success_msg . '
' . // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong self::get_redirect_fallback_message( $success_url, $args ) . '
'; + // phpcs:enable Generic.WhiteSpace.ScopeIndent $redirect_args = array( 'entry_id' => $args['entry_id'], diff --git a/classes/controllers/FrmSMTPController.php b/classes/controllers/FrmSMTPController.php index 366efc1279..dbf7589801 100644 --- a/classes/controllers/FrmSMTPController.php +++ b/classes/controllers/FrmSMTPController.php @@ -148,6 +148,7 @@ protected function output_section_heading() { ); // Heading section. + // phpcs:disable Generic.WhiteSpace.ScopeIndent ?>
@@ -168,6 +169,7 @@ protected function output_section_heading() {

id; + // phpcs:disable Generic.WhiteSpace.ScopeIndent ?>
$link ) { $attrs = $button_attrs + array( 'data-tracking-value' => $key ); + // phpcs:disable Generic.WhiteSpace.ScopeIndent ?> >

@@ -140,6 +141,7 @@ public static function get_reconnect_link() {

@@ -1639,6 +1641,7 @@ public static function print_admin_banner( $should_show_lite_upgrade ) {
@@ -2034,6 +2042,7 @@ public static function wp_pages_dropdown( $args = array(), $page_id = '', $trunc field_options['custom_field'] = ''; } - $meta_value = FrmProEntryMetaHelper::get_post_value( - $record->post_id, - $field->field_options['post_field'], - $field->field_options['custom_field'], - array( - 'truncate' => false, - 'type' => $field->type, - 'form_id' => $field->form_id, - 'field' => $field, - ) - ); + $meta_value = FrmProEntryMetaHelper::get_post_value( + $record->post_id, + $field->field_options['post_field'], + $field->field_options['custom_field'], + array( + 'truncate' => false, + 'type' => $field->type, + 'form_id' => $field->form_id, + 'field' => $field, + ) + ); } else { $meta_value = FrmEntryMeta::get_meta_value( $record, $field->id ); }//end if @@ -4025,8 +4034,8 @@ public static function min_version_notice( $min_version ) { $wp_list_table = _get_list_table( 'WP_Plugins_List_Table' ); echo '
' . // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong - esc_html__( 'You are running an outdated version of Formidable. This plugin may not work correctly if you do not update Formidable.', 'formidable' ) . - '
'; + esc_html__( 'You are running an outdated version of Formidable. This plugin may not work correctly if you do not update Formidable.', 'formidable' ) . + ''; } /** @@ -4082,6 +4091,7 @@ private static function php_version_notice() { $message[] = __( 'The version of PHP on your server is too low. If this is not corrected, you may see issues with Formidable Forms. Please contact your web host and ask to be updated to PHP 7.0+.', 'formidable' ); // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong } + // phpcs:disable Generic.WhiteSpace.ScopeIndent foreach ( $message as $m ) { ?>
@@ -4089,6 +4099,7 @@ private static function php_version_notice() {
>
'spam-protection', 'content' => 'entries-list-spam-protection', ); + // phpcs:disable Generic.WhiteSpace.ScopeIndent ?>

@@ -264,6 +265,7 @@ protected function display_tablenav( $which ) {

' . esc_html( $label ) . '' . ''; + // phpcs:enable Generic.WhiteSpace.ScopeIndent } /** @@ -2445,6 +2447,7 @@ public static function show_add_field_buttons( $args ) { } elseif ( $upgrade_message ) { $li_params['data-message'] = $upgrade_message; } + // phpcs:disable Generic.WhiteSpace.ScopeIndent ?>
  • >
  • @@ -134,6 +135,7 @@ private static function install_banner( $install ) {
    @@ -172,6 +175,7 @@ private static function install_button( $install, $label = '' ) { 'vertical', ); + // phpcs:disable Generic.WhiteSpace.ScopeIndent ?>
    @@ -232,6 +235,7 @@ public static function form_switcher( $selected = false ) { // phpcs:ignore Slev
  • @@ -725,6 +730,7 @@ public static function insert_opt_html( $args ) {
  • '; - FrmAppHelper::icon_by_class( 'frmfont frm_' . $icon_name . '_icon' ); + FrmAppHelper::icon_by_class( 'frmfont frm_' . $icon_name . '_icon' ); echo ''; } @@ -1694,6 +1703,7 @@ public static function show_plan_required( $requires, $link ) { return; } + // phpcs:disable Generic.WhiteSpace.ScopeIndent ?>

    @@ -1702,6 +1712,7 @@ public static function show_plan_required( $requires, $link ) {

    status === 'trash' ) { echo '

    '; esc_html_e( 'No forms found in the trash.', 'formidable' ); + // phpcs:disable Generic.WhiteSpace.ScopeIndent ?> '; } else { $title = __( 'No Forms Found', 'formidable' ); @@ -170,11 +172,13 @@ public function extra_tablenav( $which ) { } if ( 'trash' === $this->status && current_user_can( 'frm_delete_forms' ) ) { + // phpcs:disable Generic.WhiteSpace.ScopeIndent ?>

    '_blank', ); + // phpcs:disable Generic.WhiteSpace.ScopeIndent return ' ' . FrmAppHelper::icon_by_class( 'frmfont frm_eye_icon', array( 'echo' => false ) ) . ''; + // phpcs:enable Generic.WhiteSpace.ScopeIndent } /** diff --git a/classes/helpers/FrmHtmlHelper.php b/classes/helpers/FrmHtmlHelper.php index 1c7f719f91..f9f2e30189 100644 --- a/classes/helpers/FrmHtmlHelper.php +++ b/classes/helpers/FrmHtmlHelper.php @@ -113,6 +113,7 @@ public static function echo_unit_input( $args = array() ) { if ( is_numeric( $hidden_value ) ) { $hidden_value .= $args['default_unit']; } + // phpcs:disable Generic.WhiteSpace.ScopeIndent ?> /> @@ -128,5 +129,6 @@ public static function echo_unit_input( $args = array() ) {
    @@ -552,6 +553,7 @@ protected function view_switcher( $current_mode ) { ?>
    screen->render_screen_reader_content( 'heading_list' ); + // phpcs:disable Generic.WhiteSpace.ScopeIndent ?> has_min_items( 1 ) ) { ?> @@ -1098,6 +1101,8 @@ public function display( $args = array() ) {
    should_display( $args, 'display-bottom-nav' ) ) { $this->display_tablenav( 'bottom' ); } @@ -1145,6 +1150,7 @@ protected function display_tablenav( $which ) { // Don't show the bulk actions when there aren't many rows. return; } + // phpcs:disable Generic.WhiteSpace.ScopeIndent ?>
    @@ -1159,6 +1165,7 @@ protected function display_tablenav( $which ) {
    get_field_id( 'success_msg' ); + // phpcs:disable Generic.WhiteSpace.ScopeIndent ?>
    get_field_name( 'success_page_id' ); + // phpcs:disable Generic.WhiteSpace.ScopeIndent ?>
    @@ -127,6 +130,7 @@ public static function show_page_settings( $args ) { ?>
    >
    @@ -477,6 +480,7 @@ private function maybe_echo_card_pagination( $count ) {
    class="frm_pro_tip frm-gradient"> @@ -71,6 +72,7 @@ public static function show_tip( $tip, $html = '' ) { '; diff --git a/classes/models/FrmEntryMeta.php b/classes/models/FrmEntryMeta.php index be544352fd..5f87cee1b8 100644 --- a/classes/models/FrmEntryMeta.php +++ b/classes/models/FrmEntryMeta.php @@ -387,10 +387,12 @@ public static function get_entry_meta_info( $entry_id ) { */ public static function getAll( $where = array(), $order_by = '', $limit = '', $stripslashes = false ) { global $wpdb; + // phpcs:disable Generic.WhiteSpace.ScopeIndent $query = 'SELECT it.*, fi.type as field_type, fi.field_key as field_key, fi.required as required, fi.form_id as field_form_id, fi.name as field_name, fi.options as fi_options FROM ' . $wpdb->prefix . 'frm_item_metas it LEFT OUTER JOIN ' . $wpdb->prefix . 'frm_fields fi ON it.field_id=fi.id' . FrmDb::prepend_and_or_where( ' WHERE ', $where ) . $order_by . $limit; + // phpcs:enable Generic.WhiteSpace.ScopeIndent $cache_key = 'all_' . FrmAppHelper::maybe_json_encode( $where ) . $order_by . $limit; $results = FrmDb::check_cache( $cache_key, 'frm_entry', $query, ( $limit === ' LIMIT 1' ? 'get_row' : 'get_results' ) ); diff --git a/classes/models/FrmEntryValidate.php b/classes/models/FrmEntryValidate.php index fdc99836f7..b7ea7684a7 100644 --- a/classes/models/FrmEntryValidate.php +++ b/classes/models/FrmEntryValidate.php @@ -586,9 +586,11 @@ public static function spam_check( $exclude, $values, &$errors ) { * @return bool */ private static function form_is_in_progress( $values ) { + // phpcs:disable Generic.WhiteSpace.ScopeIndent return FrmAppHelper::pro_is_installed() && ( isset( $values[ 'frm_page_order_' . $values['form_id'] ] ) || FrmAppHelper::get_post_param( 'frm_next_page' ) ) && FrmField::get_all_types_in_form( $values['form_id'], 'break' ); + // phpcs:enable Generic.WhiteSpace.ScopeIndent } /** diff --git a/classes/models/FrmField.php b/classes/models/FrmField.php index 2cde473ad6..18559bb096 100644 --- a/classes/models/FrmField.php +++ b/classes/models/FrmField.php @@ -1306,9 +1306,7 @@ public static function is_field_with_multiple_values( $field ) { $field_type = self::get_original_field_type( $field ); - return self::is_checkbox( $field ) || - $field_type === 'address' || - self::is_multiple_select( $field ); + return self::is_checkbox( $field ) || $field_type === 'address' || self::is_multiple_select( $field ); } /** @@ -1587,13 +1585,9 @@ public static function is_checkbox( $field ) { * @return bool true if field type is checkbox or Dynamic checkbox */ public static function is_field_type( $field, $is_type ) { - $field_type = self::get_original_field_type( $field ); - $data_type = self::get_option( $field, 'data_type' ); - - $is_field_type = $is_type === $field_type || - ( 'data' === $field_type && $is_type === $data_type ) || - ( 'lookup' === $field_type && $is_type === $data_type ) || - ( 'product' === $field_type && $is_type === $data_type ); + $field_type = self::get_original_field_type( $field ); + $data_type = self::get_option( $field, 'data_type' ); + $is_field_type = $is_type === $field_type || ( 'data' === $field_type && $is_type === $data_type ) || ( 'lookup' === $field_type && $is_type === $data_type ) || ( 'product' === $field_type && $is_type === $data_type ); // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong /** * When a field type is checked, allow individual fields diff --git a/classes/models/FrmFormAction.php b/classes/models/FrmFormAction.php index b10ff4ff9a..ef6a878fd0 100644 --- a/classes/models/FrmFormAction.php +++ b/classes/models/FrmFormAction.php @@ -997,6 +997,7 @@ public static function trigger_labels() { * @return void */ public function render_conditional_logic_call_to_action() { + // phpcs:disable Generic.WhiteSpace.ScopeIndent ?>

    @@ -1004,6 +1005,7 @@ public function render_conditional_logic_call_to_action() {

    get_forms(); + // phpcs:disable Generic.WhiteSpace.ScopeIndent ?>

    name ); ?> Importer

    @@ -167,6 +168,7 @@ public function import_page() {
    track_html_id( $container_id ); + // phpcs:disable Generic.WhiteSpace.ScopeIndent ?>
    >
    @@ -458,6 +459,7 @@ public static function maybe_show_banner() { >
    90, ); + // phpcs:disable Generic.WhiteSpace.ScopeIndent ?>
    @@ -311,6 +312,7 @@ protected function header() {

    page_description() ); ?>

    step_top( $step ); if ( $step['complete'] ) { + // phpcs:disable Generic.WhiteSpace.ScopeIndent ?> step_bottom( $step ); @@ -565,6 +575,7 @@ protected function show_app_install( $step ) { $id = $this->download_id(); $has_file = isset( $addons[ $id ] ) && isset( $addons[ $id ]['beta'] ); + // phpcs:disable Generic.WhiteSpace.ScopeIndent if ( ! $step['current'] ) { ?> @@ -622,6 +633,7 @@ protected function show_app_install( $step ) { echo ''; } }//end if + // phpcs:enable Generic.WhiteSpace.ScopeIndent $this->step_bottom( $step ); } @@ -687,6 +699,7 @@ protected function show_page_options() { echo '

    Choose New Page Title

    '; foreach ( $pages as $page ) { + // phpcs:disable Generic.WhiteSpace.ScopeIndent ?>

    step_top( $step ); + // phpcs:disable Generic.WhiteSpace.ScopeIndent ?>
    step_bottom( $step ); } diff --git a/classes/models/fields/FrmFieldName.php b/classes/models/fields/FrmFieldName.php index bf7ffd5216..3282891ee2 100644 --- a/classes/models/fields/FrmFieldName.php +++ b/classes/models/fields/FrmFieldName.php @@ -293,6 +293,7 @@ public function show_after_default( $args ) { if ( ! $show_warning ) { return; } + // phpcs:disable Generic.WhiteSpace.ScopeIndent ?>
    add_aria_description( $args, $input_html ); $rows = $this->field['max'] ? 'rows="' . esc_attr( $this->field['max'] ) . '" ' : ''; + // phpcs:disable Generic.WhiteSpace.ScopeIndent return ''; + // phpcs:enable Generic.WhiteSpace.ScopeIndent } } diff --git a/classes/models/fields/FrmFieldType.php b/classes/models/fields/FrmFieldType.php index 8f60bb200a..abf1c021ca 100644 --- a/classes/models/fields/FrmFieldType.php +++ b/classes/models/fields/FrmFieldType.php @@ -283,6 +283,7 @@ public function show_on_form_builder( $name = '' ) { */ public function show_label_on_form_builder() { $field = FrmFieldsHelper::setup_edit_vars( $this->field ); + // phpcs:disable Generic.WhiteSpace.ScopeIndent ?>

    field_choices_heading_attrs( $args ); ?>>

    false, ); $instance = wp_parse_args( $instance, $defaults ); + // phpcs:disable Generic.WhiteSpace.ScopeIndent ?>

    views/* - - helpers/FrmEntriesHelper.php - stripe/models/FrmTransLiteAction.php - classes/controllers/FrmAddonsController.php - classes/helpers/FrmAddonsHelper.php - classes/models/FrmDb.php - classes/helpers/FrmTipsHelper.php - classes/helpers/FrmOnSubmitHelper.php - classes/models/FrmSalesApi.php - stripe/controllers/FrmTransLitePaymentsController.php - classes/helpers/FrmStylesCardHelper.php - classes/controllers/FrmAppController.php - classes/models/FrmEntryValidate.php - classes/helpers/FrmEntriesListHelper.php - classes/controllers/FrmWelcomeTourController.php - classes/helpers/FrmDashboardHelper.php - stripe/helpers/FrmStrpLiteAppHelper.php - classes/helpers/FrmFormsListHelper.php - classes/models/FrmField.php - classes/helpers/FrmFormsHelper.php - classes/controllers/FrmSMTPController.php - stripe/helpers/FrmStrpLiteConnectHelper.php - classes/models/FrmHoneypot.php - stripe/helpers/FrmTransLiteAppHelper.php - classes/models/fields/FrmFieldType.php - classes/controllers/FrmStylesController.php - stripe/helpers/FrmTransLiteListHelper.php - classes/models/FrmSolution.php - classes/helpers/FrmFieldsHelper.php - classes/models/fields/FrmFieldTextarea.php - classes/models/FrmPluginSearch.php - classes/models/fields/FrmFieldPhone.php - classes/helpers/FrmStylesHelper.php - classes/models/fields/FrmFieldName.php - classes/helpers/FrmListHelper.php - classes/helpers/FrmFormTemplatesHelper.php - classes/models/FrmFormAction.php - classes/helpers/FrmHtmlHelper.php - classes/helpers/FrmFormMigratorsHelper.php - classes/controllers/FrmFormsController.php - classes/helpers/FrmCssScopeHelper.php - classes/models/FrmFormMigrator.php - classes/controllers/FrmFieldsController.php - classes/models/FrmEntryMeta.php - classes/helpers/FrmAppHelper.php - classes/widgets/FrmShowForm.php - square/helpers/FrmSquareLiteConnectHelper.php diff --git a/square/helpers/FrmSquareLiteConnectHelper.php b/square/helpers/FrmSquareLiteConnectHelper.php index ab8296056c..68e10b27db 100644 --- a/square/helpers/FrmSquareLiteConnectHelper.php +++ b/square/helpers/FrmSquareLiteConnectHelper.php @@ -24,6 +24,7 @@ public static function render_settings_container() { FrmSquareLiteAppHelper::fee_education( 'square-global-settings-tip' ); + // phpcs:disable Generic.WhiteSpace.ScopeIndent ?> @@ -59,6 +60,7 @@ public static function render_settings_container() {
    @@ -115,6 +118,7 @@ private static function render_settings_for_mode( $mode ) {
    item_id ); ?>
    'width:24px' ) ); ?> @@ -148,6 +149,7 @@ public static function not_connected_warning() {
    + if ( $value ) { + // phpcs:disable Generic.WhiteSpace.ScopeIndent + ?> ' // translators: %1$s: Transaction type (Payments or Subscriptions), %2$s: Span start tag, %3$s: Count, %4$s: Span close tag. . sprintf( esc_html__( '%1$s %2$s(%3$s)%4$s', 'formidable' ), esc_html( $name ), '', number_format_i18n( $counts[ $status ] ), '' ) . ''; + // phpcs:enable Generic.WhiteSpace.ScopeIndent } unset( $status, $name ); diff --git a/stripe/models/FrmTransLiteAction.php b/stripe/models/FrmTransLiteAction.php index 0b95315b98..5a13d96e3b 100755 --- a/stripe/models/FrmTransLiteAction.php +++ b/stripe/models/FrmTransLiteAction.php @@ -178,6 +178,7 @@ public function show_fields_dropdown( $form_atts, $field_atts ) { } $has_field = false; + // phpcs:disable Generic.WhiteSpace.ScopeIndent ?>
    @@ -626,6 +627,7 @@ public static function render_stripe_connect_settings_container() {
    : @@ -412,6 +414,7 @@ public static function show_in_table( $value, $label ) {