Code Duplication    Length = 5-5 lines in 2 locations

maintenance/language/checkLanguage.inc 2 locations

@@ 613-617 (lines=5) @@
610
		$extensions = new PremadeMediawikiExtensionGroups();
611
		$extensions->addAll();
612
		if ( $extension == 'all' ) {
613
			foreach ( MessageGroups::singleton()->getGroups() as $group ) {
614
				if ( strpos( $group->getId(), 'ext-' ) === 0 && !$group->isMeta() ) {
615
					$this->extensions[] = new ExtensionLanguages( $group );
616
				}
617
			}
618
		} elseif ( $extension == 'wikimedia' ) {
619
			$wikimedia = MessageGroups::getGroup( 'ext-0-wikimedia' );
620
			foreach ( $wikimedia->wmfextensions() as $extension ) {
@@ 625-629 (lines=5) @@
622
				$this->extensions[] = new ExtensionLanguages( $group );
623
			}
624
		} elseif ( $extension == 'flaggedrevs' ) {
625
			foreach ( MessageGroups::singleton()->getGroups() as $group ) {
626
				if ( strpos( $group->getId(), 'ext-flaggedrevs-' ) === 0 && !$group->isMeta() ) {
627
					$this->extensions[] = new ExtensionLanguages( $group );
628
				}
629
			}
630
		} else {
631
			$extensions = explode( ',', $extension );
632
			foreach ( $extensions as $extension ) {