Code Duplication    Length = 3-3 lines in 2 locations

includes/class-sensei-lesson.php 2 locations

@@ 2237-2239 (lines=3) @@
2234
			$question_category = $data[ 'question_category' ];
2235
		} // End If Statement
2236
2237
		if ( isset( $data[ 'question_id' ] ) && ( 0 < absint( $data[ 'question_id' ] ) ) ) {
2238
			$question_id = absint( $data[ 'question_id' ] );
2239
		} // End If Statement
2240
		if ( isset( $data[ 'question' ] ) && ( '' != $data[ 'question' ] ) ) {
2241
			$question_text = $data[ 'question' ];
2242
		} // End If Statement
@@ 2459-2461 (lines=3) @@
2456
2457
		// Get which question to delete
2458
		$question_id = 0;
2459
		if ( isset( $data[ 'question_id' ] ) && ( 0 < absint( $data[ 'question_id' ] ) ) ) {
2460
			$question_id = absint( $data[ 'question_id' ] );
2461
		} // End If Statement
2462
		// Delete the question
2463
		if ( 0 < $question_id ) {
2464
			$quizzes = get_post_meta( $question_id, '_quiz_id', false );