From 1724ff7d3758bf6db33a64aa57baafd1c2e4eac7 Mon Sep 17 00:00:00 2001 From: Paul Kevan Date: Wed, 18 Dec 2024 12:18:20 +0000 Subject: [PATCH] phpcs --- .../plugins/camptix/inc/class-camptix-admin.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/public_html/wp-content/plugins/camptix/inc/class-camptix-admin.php b/public_html/wp-content/plugins/camptix/inc/class-camptix-admin.php index ab38f1213..122391af6 100644 --- a/public_html/wp-content/plugins/camptix/inc/class-camptix-admin.php +++ b/public_html/wp-content/plugins/camptix/inc/class-camptix-admin.php @@ -114,18 +114,19 @@ public function menu_tools() { get_tools_section(); - if ( $section == 'summarize' ) + if ( 'summarize' == $section ) { $this->menu_tools_summarize(); - elseif ( $section == 'revenue' ) + } elseif ( 'revenue' == $section ) { $this->menu_tools_revenue(); - elseif ( $section == 'export' ) + } elseif ( 'export' == $section ) { $this->menu_tools_export(); - elseif ( $section == 'notify' ) + } elseif ( 'notify' == $section ) { $this->menu_tools_notify(); - elseif ( $section == 'refund' && ! $this->options['archived'] ) + } elseif ( 'refund' == $section && ! $this->options['archived'] ) { $this->menu_tools_refund(); - else + } else { do_action( 'camptix_menu_tools_' . $section ); + } ?> beta_features_enabled ) { break; } - + add_settings_section( 'general', __( 'Beta Features', 'wordcamporg' ), array( $this, 'menu_setup_section_beta' ), 'camptix_options' ); $this->add_settings_field_helper( 'reservations_enabled', __( 'Enable Reservations', 'wordcamporg' ), 'field_yesno', false,