Code Duplication    Length = 8-9 lines in 2 locations

includes/specials/SpecialMostlinkedcategories.php 1 location

@@ 41-49 (lines=9) @@
38
		return false;
39
	}
40
41
	public function getQueryInfo() {
42
		return [
43
			'tables' => [ 'category' ],
44
			'fields' => [ 'title' => 'cat_title',
45
				'namespace' => NS_CATEGORY,
46
				'value' => 'cat_pages' ],
47
			'conds' => [ 'cat_pages > 0' ],
48
		];
49
	}
50
51
	function sortDescending() {
52
		return true;

includes/specials/pagers/CategoryPager.php 1 location

@@ 50-57 (lines=8) @@
47
		$this->linkRenderer = $linkRenderer;
48
	}
49
50
	function getQueryInfo() {
51
		return [
52
			'tables' => [ 'category' ],
53
			'fields' => [ 'cat_title', 'cat_pages' ],
54
			'conds' => [ 'cat_pages > 0' ],
55
			'options' => [ 'USE INDEX' => 'cat_title' ],
56
		];
57
	}
58
59
	function getIndexField() {
60
		return 'cat_title';