Code Duplication    Length = 3-3 lines in 2 locations

includes/class-sensei-lesson.php 2 locations

@@ 483-485 (lines=3) @@
480
			$selected_lesson_course = get_post_meta( $post->ID, '_lesson_course', true );
481
		} // End If Statement
482
		// Handle preselected course
483
		if ( isset( $_GET[ 'course_id' ] ) && ( 0 < absint( $_GET[ 'course_id' ] ) ) ) {
484
			$selected_lesson_course = absint( $_GET[ 'course_id' ] );
485
		} // End If Statement
486
		// Get the Lesson Posts
487
		$post_args = array(	'post_type' 		=> 'course',
488
							'posts_per_page' 		=> -1,
@@ 2152-2154 (lines=3) @@
2149
		$course_title = '';
2150
		$course_prerequisite = 0;
2151
		$course_category = 0;
2152
		if ( isset( $data[ 'course_id' ] ) && ( 0 < absint( $data[ 'course_id' ] ) ) ) {
2153
			$course_id = absint( $data[ 'course_id' ] );
2154
		} // End If Statement
2155
		if ( isset( $data[ 'course_title' ] ) && ( '' != $data[ 'course_title' ] ) ) {
2156
			$course_title = $data[ 'course_title' ];
2157
		} // End If Statement