Code Duplication    Length = 5-5 lines in 2 locations

includes/specials/SpecialAllPages.php 1 location

@@ 176-180 (lines=5) @@
173
174
		if ( !$fromList || !$toList ) {
175
			$out = $this->msg( 'allpagesbadtitle' )->parseAsBlock();
176
		} elseif ( !array_key_exists( $namespace, $namespaces ) ) {
177
			// Show errormessage and reset to NS_MAIN
178
			$out = $this->msg( 'allpages-bad-ns', $namespace )->parse();
179
			$namespace = NS_MAIN;
180
		} else {
181
			list( $namespace, $fromKey, $from ) = $fromList;
182
			list( , $toKey, $to ) = $toList;
183

includes/specials/SpecialPrefixindex.php 1 location

@@ 174-178 (lines=5) @@
171
172
		if ( !$prefixList || !$fromList ) {
173
			$out = $this->msg( 'allpagesbadtitle' )->parseAsBlock();
174
		} elseif ( !array_key_exists( $namespace, $namespaces ) ) {
175
			// Show errormessage and reset to NS_MAIN
176
			$out = $this->msg( 'allpages-bad-ns', $namespace )->parse();
177
			$namespace = NS_MAIN;
178
		} else {
179
			list( $namespace, $prefixKey, $prefix ) = $prefixList;
180
			list( /* $fromNS */, $fromKey, ) = $fromList;
181