Code Duplication    Length = 11-12 lines in 2 locations

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

@@ 40-50 (lines=11) @@
37
	 * @since  1.7.0
38
	 * @return array $columns, the array of columns to use with the table
39
	 */
40
	function get_columns() {
41
		$columns = array(
42
			'title' => __( 'Learner', 'woothemes-sensei' ),
43
			'started' => __( 'Date Started', 'woothemes-sensei' ),
44
			'completed' => __( 'Date Completed', 'woothemes-sensei' ),
45
			'status' => __( 'Status', 'woothemes-sensei' ),
46
			'grade' => __( 'Grade', 'woothemes-sensei' ),
47
		);
48
		$columns = apply_filters( 'sensei_analysis_lesson_columns', $columns, $this );
49
		return $columns;
50
	}
51
52
	/**
53
	 * get_columns Define the columns that are going to be used in the table

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

@@ 39-50 (lines=12) @@
36
	 * @since  1.7.0
37
	 * @return array $columns, the array of columns to use with the table
38
	 */
39
	function get_columns() {
40
		$columns = array(
41
			'title' => __( 'Course', 'woothemes-sensei' ),
42
			'started' => __( 'Date Started', 'woothemes-sensei' ),
43
			'completed' => __( 'Date Completed', 'woothemes-sensei' ),
44
			'status' => __( 'Status', 'woothemes-sensei' ),
45
//			'grade' => __( 'Grade', 'woothemes-sensei' ),
46
			'percent' => __( 'Percent Complete', 'woothemes-sensei' ),
47
		);
48
		$columns = apply_filters( 'sensei_analysis_user_profile_columns', $columns );
49
		return $columns;
50
	}
51
52
	/**
53
	 * Define the columns that are going to be used in the table