Code Duplication    Length = 8-9 lines in 2 locations

src/wp-admin/includes/class-wp-media-list-table.php 1 location

@@ 330-338 (lines=9) @@
327
	 *
328
	 * @return array
329
	 */
330
	protected function get_sortable_columns() {
331
		return array(
332
			'title'    => 'title',
333
			'author'   => 'author',
334
			'parent'   => 'parent',
335
			'comments' => 'comment_count',
336
			'date'     => array( 'date', true ),
337
		);
338
	}
339
340
	/**
341
	 * Handles the checkbox column output.

src/wp-admin/includes/class-wp-posts-list-table.php 1 location

@@ 619-626 (lines=8) @@
616
	 *
617
	 * @return array
618
	 */
619
	protected function get_sortable_columns() {
620
		return array(
621
			'title'    => 'title',
622
			'parent'   => 'parent',
623
			'comments' => 'comment_count',
624
			'date'     => array( 'date', true )
625
		);
626
	}
627
628
	/**
629
	 * @global WP_Query $wp_query