Code Duplication    Length = 6-6 lines in 2 locations

includes/class-sensei-grading.php 2 locations

@@ 283-288 (lines=6) @@
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'] );
286
			$title .= '&nbsp;&nbsp;<span class="user-title">&gt;&nbsp;&nbsp;' . $user_name . '</span>';
287
288
		} // End If Statement
289
		?>
290
			<h2><?php echo apply_filters( 'sensei_grading_nav_title', $title ); ?></h2>
291
		<?php
@@ 317-322 (lines=6) @@
314
			$url = add_query_arg( array( 'page' => $this->page_slug, 'lesson_id' => $lesson_id ), admin_url( 'admin.php' ) );
315
			$title .= sprintf( '&nbsp;&nbsp;<span class="lesson-title">&gt;&nbsp;&nbsp;<a href="%s">%s</a></span>', esc_url( $url ), get_the_title( $lesson_id ) );
316
		}
317
		if ( isset( $_GET['user'] ) && 0 < intval( $_GET['user'] ) ) {
318
319
            $user_name = Sensei_Learner::get_full_name( $_GET['user'] );
320
			$title .= '&nbsp;&nbsp;<span class="user-title">&gt;&nbsp;&nbsp;' . $user_name . '</span>';
321
322
		} // End If Statement
323
		?>
324
			<h2><?php echo apply_filters( 'sensei_grading_nav_title', $title ); ?></h2>
325
		<?php