Code Duplication    Length = 8-8 lines in 4 locations

includes/Preferences.php 4 locations

@@ 536-543 (lines=8) @@
533
				];
534
			}
535
536
			if ( $config->get( 'EnotifWatchlist' ) ) {
537
				$defaultPreferences['enotifwatchlistpages'] = [
538
					'type' => 'toggle',
539
					'section' => 'personal/email',
540
					'label-message' => 'tog-enotifwatchlistpages',
541
					'disabled' => $disableEmailPrefs,
542
				];
543
			}
544
			if ( $config->get( 'EnotifUserTalk' ) ) {
545
				$defaultPreferences['enotifusertalkpages'] = [
546
					'type' => 'toggle',
@@ 544-551 (lines=8) @@
541
					'disabled' => $disableEmailPrefs,
542
				];
543
			}
544
			if ( $config->get( 'EnotifUserTalk' ) ) {
545
				$defaultPreferences['enotifusertalkpages'] = [
546
					'type' => 'toggle',
547
					'section' => 'personal/email',
548
					'label-message' => 'tog-enotifusertalkpages',
549
					'disabled' => $disableEmailPrefs,
550
				];
551
			}
552
			if ( $config->get( 'EnotifUserTalk' ) || $config->get( 'EnotifWatchlist' ) ) {
553
				if ( $config->get( 'EnotifMinorEdits' ) ) {
554
					$defaultPreferences['enotifminoredits'] = [
@@ 553-560 (lines=8) @@
550
				];
551
			}
552
			if ( $config->get( 'EnotifUserTalk' ) || $config->get( 'EnotifWatchlist' ) ) {
553
				if ( $config->get( 'EnotifMinorEdits' ) ) {
554
					$defaultPreferences['enotifminoredits'] = [
555
						'type' => 'toggle',
556
						'section' => 'personal/email',
557
						'label-message' => 'tog-enotifminoredits',
558
						'disabled' => $disableEmailPrefs,
559
					];
560
				}
561
562
				if ( $config->get( 'EnotifRevealEditorAddress' ) ) {
563
					$defaultPreferences['enotifrevealaddr'] = [
@@ 562-569 (lines=8) @@
559
					];
560
				}
561
562
				if ( $config->get( 'EnotifRevealEditorAddress' ) ) {
563
					$defaultPreferences['enotifrevealaddr'] = [
564
						'type' => 'toggle',
565
						'section' => 'personal/email',
566
						'label-message' => 'tog-enotifrevealaddr',
567
						'disabled' => $disableEmailPrefs,
568
					];
569
				}
570
			}
571
		}
572
	}