From 209965a9c5a39aeb34c4c6a639e22e2a7a469f38 Mon Sep 17 00:00:00 2001 From: etchirag Date: Fri, 29 Dec 2023 23:34:51 +0530 Subject: [PATCH] Fixed PHPCS issues --- php/classes/class-qmn-quiz-manager.php | 3 ++- php/shortcodes.php | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/php/classes/class-qmn-quiz-manager.php b/php/classes/class-qmn-quiz-manager.php index bcb854533..4db8a5c0e 100644 --- a/php/classes/class-qmn-quiz-manager.php +++ b/php/classes/class-qmn-quiz-manager.php @@ -907,6 +907,7 @@ public function display_quiz( $options, $quiz_data, $question_amount, $shortcode 'recaptcha_error_text' => __( 'ReCaptcha is missing', 'quiz-master-next' ), ); $qmn_json_data = apply_filters( 'qsm_json_error_message', $qmn_json_data ,$options); + $quiz_time_over = __( 'Quiz time is over.', 'quiz-master-next' ); wp_enqueue_script( 'progress-bar', QSM_PLUGIN_JS_URL . '/progressbar.min.js', array(), '1.1.0', true ); wp_enqueue_script( 'jquery-ui-slider' ); wp_enqueue_script( 'jquery-ui-slider-rtl-js', QSM_PLUGIN_JS_URL . '/jquery.ui.slider-rtl.js', array(), $mlwQuizMasterNext->version, true ); @@ -924,7 +925,7 @@ public function display_quiz( $options, $quiz_data, $question_amount, $shortcode 'ajaxurl' => admin_url( 'admin-ajax.php' ), 'multicheckbox_limit_reach' => $mlwQuizMasterNext->pluginHelper->qsm_language_support( $options->quiz_limit_choice, "quiz_quiz_limit_choice-{$options->quiz_id}" ), 'out_of_text' => __( ' out of ', 'quiz-master-next' ), - 'quiz_time_over' => __( 'Quiz time is over.', 'quiz-master-next' ), + 'quiz_time_over' => esc_html($quiz_time_over), 'security' => wp_create_nonce( 'qsm_submit_quiz' ), 'start_date' => current_time( 'h:i:s A m/d/Y' ), ) diff --git a/php/shortcodes.php b/php/shortcodes.php index 675d75f72..d117d84a6 100644 --- a/php/shortcodes.php +++ b/php/shortcodes.php @@ -244,13 +244,13 @@ function qsm_get_post_id_from_quiz_id( $quiz_id ) { add_filter( 'qmn_end_shortcode', 'qsm_display_popup_div', 10, 3 ); function qsm_display_popup_div( $return_display, $qmn_quiz_options ) { if ( '0' === $qmn_quiz_options->enable_result_after_timer_end && 0 < $qmn_quiz_options->timer_limit ) { - $time_up = __( 'Time is Up!', 'quiz-master-next' ); + $time_up = __( 'Time is Up!', 'quiz-master-next' ); $return_display .= '