Code Duplication    Length = 8-9 lines in 2 locations

includes/api/ApiQueryAllLinks.php 2 locations

@@ 50-57 (lines=8) @@
47
				$this->useIndex = 'pl_namespace';
48
				$this->indexTag = 'l';
49
				break;
50
			case 'alltransclusions':
51
				$prefix = 'at';
52
				$this->table = 'templatelinks';
53
				$this->tablePrefix = 'tl_';
54
				$this->dfltNamespace = NS_TEMPLATE;
55
				$this->useIndex = 'tl_namespace';
56
				$this->indexTag = 't';
57
				break;
58
			case 'allfileusages':
59
				$prefix = 'af';
60
				$this->table = 'imagelinks';
@@ 58-66 (lines=9) @@
55
				$this->useIndex = 'tl_namespace';
56
				$this->indexTag = 't';
57
				break;
58
			case 'allfileusages':
59
				$prefix = 'af';
60
				$this->table = 'imagelinks';
61
				$this->tablePrefix = 'il_';
62
				$this->fieldTitle = 'to';
63
				$this->dfltNamespace = NS_FILE;
64
				$this->hasNamespace = false;
65
				$this->indexTag = 'f';
66
				break;
67
			case 'allredirects':
68
				$prefix = 'ar';
69
				$this->table = 'redirect';