Code Duplication    Length = 4-4 lines in 2 locations

includes/admin/class-sensei-learner-management.php 1 location

@@ 229-232 (lines=4) @@
226
			$url = add_query_arg( array( 'page' => $this->page_slug, 'course_id' => $course_id, 'view' => 'learners' ), admin_url( 'admin.php' ) );
227
			$title .= sprintf( '&nbsp;&nbsp;<span class="course-title">&gt;&nbsp;&nbsp;<a href="%s">%s</a></span>', esc_url( $url ), get_the_title( $course_id ) );
228
		}
229
		if ( isset( $_GET['lesson_id'] ) ) { 
230
			$lesson_id = intval( $_GET['lesson_id'] );
231
			$title .= '&nbsp;&nbsp;<span class="lesson-title">&gt;&nbsp;&nbsp;' . get_the_title( intval( $lesson_id ) ) . '</span>'; 
232
		}
233
		?>
234
			<h2><?php echo apply_filters( 'sensei_learners_nav_title', $title ); ?></h2>
235
		<?php

includes/class-sensei-grading.php 1 location

@@ 279-282 (lines=4) @@
276
				$title .= sprintf( '&nbsp;&nbsp;<span class="course-title">&gt;&nbsp;&nbsp;%s</span>', get_the_title( $course_id ) ); 
277
			}
278
		}
279
		if ( isset( $_GET['lesson_id'] ) ) { 
280
			$lesson_id = intval( $_GET['lesson_id'] );
281
			$title .= '&nbsp;&nbsp;<span class="lesson-title">&gt;&nbsp;&nbsp;' . get_the_title( intval( $lesson_id ) ) . '</span>'; 
282
		}
283
		if ( isset( $_GET['user_id'] ) && 0 < intval( $_GET['user_id'] ) ) {
284
285
            $user_name = Sensei_Learner::get_full_name( $_GET['user_id'] );