Code Duplication    Length = 8-8 lines in 2 locations

includes/Preferences.php 2 locations

@@ 590-597 (lines=8) @@
587
588
		// Skin selector, if there is at least one valid skin
589
		$skinOptions = self::generateSkinOptions( $user, $context );
590
		if ( $skinOptions ) {
591
			$defaultPreferences['skin'] = [
592
				'type' => 'radio',
593
				'options' => $skinOptions,
594
				'label' => ' ',
595
				'section' => 'rendering/skin',
596
			];
597
		}
598
599
		$config = $context->getConfig();
600
		$allowUserCss = $config->get( 'AllowUserCss' );
@@ 659-666 (lines=8) @@
656
	static function datetimePreferences( $user, IContextSource $context, &$defaultPreferences ) {
657
		# # Date and time #####################################
658
		$dateOptions = self::getDateOptions( $context );
659
		if ( $dateOptions ) {
660
			$defaultPreferences['date'] = [
661
				'type' => 'radio',
662
				'options' => $dateOptions,
663
				'label' => ' ',
664
				'section' => 'rendering/dateformat',
665
			];
666
		}
667
668
		// Info
669
		$now = wfTimestampNow();