Code Duplication    Length = 11-12 lines in 2 locations

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

@@ 57-67 (lines=11) @@
54
	 * @since  1.7.0
55
	 * @return array $columns, the array of columns to use with the table
56
	 */
57
	function get_sortable_columns() {
58
		$columns = array(
59
			'title' => array( 'title', false ),
60
			'started' => array( 'started', false ),
61
			'completed' => array( 'completed', false ),
62
			'status' => array( 'status', false ),
63
			'grade' => array( 'grade', false ),
64
		);
65
		$columns = apply_filters( 'sensei_analysis_lesson_columns_sortable', $columns, $this );
66
		return $columns;
67
	}
68
69
	/**
70
	 * Prepare the table with different parameters, pagination, columns and table elements

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

@@ 57-68 (lines=12) @@
54
	 * @since  1.7.0
55
	 * @return array $columns, the array of columns to use with the table
56
	 */
57
	function get_sortable_columns() {
58
		$columns = array(
59
			'title' => array( 'title', false ),
60
			'started' => array( 'started', false ),
61
			'completed' => array( 'completed', false ),
62
			'status' => array( 'status', false ),
63
//			'grade' => array( 'grade', false ),
64
			'percent' => array( 'percent', false )
65
		);
66
		$columns = apply_filters( 'sensei_analysis_user_profile_columns_sortable', $columns );
67
		return $columns;
68
	}
69
70
	/**
71
	 * Prepare the table with different parameters, pagination, columns and table elements