Code Duplication    Length = 11-13 lines in 2 locations

includes/specials/SpecialLinkSearch.php 1 location

@@ 101-113 (lines=13) @@
98
				'dir' => 'ltr',
99
			]
100
		];
101
		if ( !$this->getConfig()->get( 'MiserMode' ) ) {
102
			$fields += [
103
				'namespace' => [
104
					'type' => 'namespaceselect',
105
					'name' => 'namespace',
106
					'label-message' => 'linksearch-ns',
107
					'default' => $namespace,
108
					'id' => 'namespace',
109
					'all' => '',
110
					'cssclass' => 'namespaceselector',
111
				],
112
			];
113
		}
114
		$hiddenFields = [
115
			'title' => $this->getPageTitle()->getPrefixedDBkey(),
116
		];

includes/specials/pagers/ImageListPager.php 1 location

@@ 515-525 (lines=11) @@
512
			'default' => $this->mLimit,
513
		];
514
515
		if ( !$this->getConfig()->get( 'MiserMode' ) ) {
516
			$fields['ilsearch'] = [
517
				'type' => 'text',
518
				'name' => 'ilsearch',
519
				'id' => 'mw-ilsearch',
520
				'label-message' => 'listfiles_search_for',
521
				'default' => $this->mSearch,
522
				'size' => '40',
523
				'maxlength' => '255',
524
			];
525
		}
526
527
		$this->getOutput()->addModules( 'mediawiki.userSuggest' );
528
		$fields['user'] = [