Code Duplication    Length = 10-10 lines in 2 locations

includes/class-sensei-analysis-course-list-table.php 2 locations

@@ 194-203 (lines=10) @@
191
			$args['search'] = $this->search;
192
		} // End If Statement
193
194
		switch( $this->view ) {
195
			case 'user' :
196
				$this->items = $this->get_course_statuses( $args );
197
				break;
198
199
			case 'lesson':
200
			default:
201
				$this->items = $this->get_lessons( $args );
202
				break;
203
		}
204
205
		$total_items = $this->total_items;
206
		$total_pages = ceil( $total_items / $per_page );
@@ 262-271 (lines=10) @@
259
		}
260
		$data[] = $column_headers;
261
262
		switch( $this->view ) {
263
			case 'user' :
264
				$this->items = $this->get_course_statuses( $args );
265
				break;
266
267
			case 'lesson':
268
			default:
269
				$this->items = $this->get_lessons( $args );
270
				break;
271
		}
272
273
		// Process each row
274
		foreach( $this->items AS $item) {