Code Duplication    Length = 12-12 lines in 2 locations

maintenance/language/checkLanguage.inc 2 locations

@@ 75-86 (lines=12) @@
72
			$this->wikiCode = $options['wikilang'];
73
		}
74
75
		if ( isset( $options['whitelist'] ) ) {
76
			$this->checks = explode( ',', $options['whitelist'] );
77
		} elseif ( isset( $options['blacklist'] ) ) {
78
			$this->checks = array_diff(
79
				isset( $options['easy'] ) ? $this->easyChecks() : $this->defaultChecks(),
80
				explode( ',', $options['blacklist'] )
81
			);
82
		} elseif ( isset( $options['easy'] ) ) {
83
			$this->checks = $this->easyChecks();
84
		} else {
85
			$this->checks = $this->defaultChecks();
86
		}
87
88
		if ( isset( $options['output'] ) ) {
89
			$this->output = $options['output'];
@@ 587-598 (lines=12) @@
584
			$this->wikiCode = $options['wikilang'];
585
		}
586
587
		if ( isset( $options['whitelist'] ) ) {
588
			$this->checks = explode( ',', $options['whitelist'] );
589
		} elseif ( isset( $options['blacklist'] ) ) {
590
			$this->checks = array_diff(
591
				isset( $options['easy'] ) ? $this->easyChecks() : $this->defaultChecks(),
592
				explode( ',', $options['blacklist'] )
593
			);
594
		} elseif ( isset( $options['easy'] ) ) {
595
			$this->checks = $this->easyChecks();
596
		} else {
597
			$this->checks = $this->defaultChecks();
598
		}
599
600
		if ( isset( $options['output'] ) ) {
601
			$this->output = $options['output'];