Code Duplication    Length = 10-11 lines in 2 locations

includes/api/ApiHelp.php 2 locations

@@ 549-559 (lines=11) @@
546
									$type = null;
547
									break;
548
549
								case 'namespace':
550
									$namespaces = MWNamespace::getValidNamespaces();
551
									$count = count( $namespaces );
552
									$info[] = $context->msg( 'api-help-param-list' )
553
										->params( $multi ? 2 : 1 )
554
										->params( $context->getLanguage()->commaList( $namespaces ) )
555
										->parse();
556
									$hintPipeSeparated = false;
557
									// No type message necessary, we have a list of values.
558
									$type = null;
559
									break;
560
561
								case 'tags':
562
									$tags = ChangeTags::listExplicitlyDefinedTags();
@@ 561-570 (lines=10) @@
558
									$type = null;
559
									break;
560
561
								case 'tags':
562
									$tags = ChangeTags::listExplicitlyDefinedTags();
563
									$count = count( $tags );
564
									$info[] = $context->msg( 'api-help-param-list' )
565
										->params( $multi ? 2 : 1 )
566
										->params( $context->getLanguage()->commaList( $tags ) )
567
										->parse();
568
									$hintPipeSeparated = false;
569
									$type = null;
570
									break;
571
572
								case 'limit':
573
									if ( isset( $settings[ApiBase::PARAM_MAX2] ) ) {