Code Duplication    Length = 4-4 lines in 2 locations

includes/class-sensei-question.php 2 locations

@@ 356-359 (lines=4) @@
353
     */
354
    public function get_question_type( $question_id ){
355
356
        if( empty( $question_id ) || ! intval( $question_id ) > 0
357
            || 'question' != get_post_type( $question_id )   ){
358
            return false;
359
        }
360
361
        $question_type = 'multiple-choice';
362
        $question_types = wp_get_post_terms( $question_id, 'question-type' );
@@ 382-385 (lines=4) @@
379
	 */
380
	public function get_question_grade( $question_id ) {
381
382
		if ( empty( $question_id ) || ! intval( $question_id ) > 0
383
			|| 'question' != get_post_type( $question_id ) ) {
384
			return false;
385
		}
386
387
		$question_grade_raw = get_post_meta( $question_id, '_question_grade', true );
388
		// If not set then default to 1...