Code Duplication    Length = 8-8 lines in 2 locations

includes/Preferences.php 2 locations

@@ 579-586 (lines=8) @@
576
577
		// Skin selector, if there is at least one valid skin
578
		$skinOptions = self::generateSkinOptions( $user, $context );
579
		if ( $skinOptions ) {
580
			$defaultPreferences['skin'] = [
581
				'type' => 'radio',
582
				'options' => $skinOptions,
583
				'label' => ' ',
584
				'section' => 'rendering/skin',
585
			];
586
		}
587
588
		$config = $context->getConfig();
589
		$allowUserCss = $config->get( 'AllowUserCss' );
@@ 648-655 (lines=8) @@
645
	static function datetimePreferences( $user, IContextSource $context, &$defaultPreferences ) {
646
		# # Date and time #####################################
647
		$dateOptions = self::getDateOptions( $context );
648
		if ( $dateOptions ) {
649
			$defaultPreferences['date'] = [
650
				'type' => 'radio',
651
				'options' => $dateOptions,
652
				'label' => ' ',
653
				'section' => 'rendering/dateformat',
654
			];
655
		}
656
657
		// Info
658
		$now = wfTimestampNow();