Code Duplication    Length = 14-14 lines in 2 locations

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

@@ 167-180 (lines=14) @@
164
            $args['search'] = esc_html( $_GET['s'] );
165
        }
166
167
		switch ( $this->type ) {
168
			case 'courses':
169
				$this->items = $this->get_courses( $args );
170
				break;
171
172
			case 'lessons':
173
				$this->items = $this->get_lessons( $args );
174
				break;
175
176
			case 'users':
177
			default :
178
				$this->items = $this->get_learners( $args );
179
				break;
180
		}
181
182
		$total_items = $this->total_items;
183
		$total_pages = ceil( $total_items / $per_page );
@@ 236-249 (lines=14) @@
233
		}
234
		$data[] = $column_headers;
235
236
		switch ( $this->type ) {
237
			case 'courses':
238
				$this->items = $this->get_courses( $args );
239
				break;
240
241
			case 'lessons':
242
				$this->items = $this->get_lessons( $args );
243
				break;
244
245
			case 'users':
246
			default :
247
				$this->items = $this->get_learners( $args );
248
				break;
249
		}
250
251
		// Process each row
252
		foreach( $this->items AS $item) {