Code Duplication    Length = 8-8 lines in 4 locations

includes/class-sensei-analysis-course-list-table.php 1 location

@@ 610-617 (lines=8) @@
607
		$menu['user'] = sprintf( '<a href="%s" class="%s">%s</a>', $learners_url, $learners_class, $learners_text );
608
609
		$menu = apply_filters( 'sensei_analysis_course_sub_menu', $menu );
610
		if ( !empty($menu) ) {
611
			echo '<ul class="subsubsub">' . "\n";
612
			foreach ( $menu as $class => $item ) {
613
				$menu[ $class ] = "\t<li class='$class'>$item";
614
			}
615
			echo implode( " |</li>\n", $menu ) . "</li>\n";
616
			echo '</ul>' . "\n";
617
		}
618
	} // End data_table_header()
619
620
	/**

includes/class-sensei-grading-main.php 1 location

@@ 423-430 (lines=8) @@
420
		$menu['in-progress'] = sprintf( $format, $inprogress_class, esc_url( add_query_arg( $inprogress_args, admin_url( 'admin.php' ) ) ), __( 'In Progress', 'woothemes-sensei' ), number_format( (int) $inprogress_lessons_count ) );
421
422
		$menu = apply_filters( 'sensei_grading_sub_menu', $menu );
423
		if ( !empty($menu) ) {
424
			echo '<ul class="subsubsub">' . "\n";
425
			foreach ( $menu as $class => $item ) {
426
				$menu[ $class ] = "\t<li class='$class'>$item";
427
			}
428
			echo implode( " |</li>\n", $menu ) . "</li>\n";
429
			echo '</ul>' . "\n";
430
		}
431
432
	} // End data_table_header()
433

includes/class-sensei-learners-main.php 1 location

@@ 552-559 (lines=8) @@
549
			$menu['back'] = '<a href="' . esc_url( add_query_arg( $query_args, admin_url( 'admin.php' ) ) ) . '">' . sprintf( __( '%1$sBack to %2$s%3$s', 'woothemes-sensei' ), '<em>&larr; ', $course, '</em>' ) . '</a>';
550
		}
551
		$menu = apply_filters( 'sensei_learners_sub_menu', $menu );
552
		if ( !empty($menu) ) {
553
			echo '<ul class="subsubsub">' . "\n";
554
			foreach ( $menu as $class => $item ) {
555
				$menu[ $class ] = "\t<li class='$class'>$item";
556
			}
557
			echo implode( " |</li>\n", $menu ) . "</li>\n";
558
			echo '</ul>' . "\n";
559
		}
560
561
	} // End data_table_header()
562

includes/class-sensei-analysis-overview-list-table.php 1 location

@@ 641-648 (lines=8) @@
638
		$menu['lessons'] = '<a class="' . $lessons_class . '" href="' . esc_url( add_query_arg( $lesson_args, admin_url( 'admin.php' ) ) ) . '">' . __( 'Lessons', 'woothemes-sensei' ) . '</a>';
639
640
		$menu = apply_filters( 'sensei_analysis_overview_sub_menu', $menu );
641
		if ( !empty($menu) ) {
642
			echo '<ul class="subsubsub">' . "\n";
643
			foreach ( $menu as $class => $item ) {
644
				$menu[ $class ] = "\t<li class='$class'>$item";
645
			}
646
			echo implode( " |</li>\n", $menu ) . "</li>\n";
647
			echo '</ul>' . "\n";
648
		}
649
	} // End data_table_header()
650
651
	/**