Code Duplication    Length = 3-3 lines in 2 locations

includes/class-sensei-grading-main.php 2 locations

@@ 260-262 (lines=3) @@
257
258
		$grade_link = '';
259
		switch( $item->comment_approved ) {
260
			case 'ungraded':
261
				$grade_link = '<a class="button-primary button" href="' . $quiz_link . '">' . __('Grade quiz', 'woothemes-sensei' ) . '</a>';
262
				break;
263
264
			case 'graded':
265
			case 'passed':
@@ 266-268 (lines=3) @@
263
264
			case 'graded':
265
			case 'passed':
266
			case 'failed':
267
				$grade_link = '<a class="button-secondary button" href="' . $quiz_link . '">' . __('Review grade', 'woothemes-sensei' ) . '</a>';
268
				break;
269
		}
270
271
		$course_id = get_post_meta( $item->comment_post_ID, '_lesson_course', true );