Code Duplication    Length = 3-5 lines in 2 locations

includes/Message.php 2 locations

@@ 1083-1087 (lines=5) @@
1080
		if ( is_array( $param ) ) {
1081
			if ( isset( $param['raw'] ) ) {
1082
				return [ 'after', $param['raw'] ];
1083
			} elseif ( isset( $param['num'] ) ) {
1084
				// Replace number params always in before step for now.
1085
				// No support for combined raw and num params
1086
				return [ 'before', $this->getLanguage()->formatNum( $param['num'] ) ];
1087
			} elseif ( isset( $param['duration'] ) ) {
1088
				return [ 'before', $this->getLanguage()->formatDuration( $param['duration'] ) ];
1089
			} elseif ( isset( $param['expiry'] ) ) {
1090
				return [ 'before', $this->getLanguage()->formatExpiry( $param['expiry'] ) ];
@@ 1093-1095 (lines=3) @@
1090
				return [ 'before', $this->getLanguage()->formatExpiry( $param['expiry'] ) ];
1091
			} elseif ( isset( $param['period'] ) ) {
1092
				return [ 'before', $this->getLanguage()->formatTimePeriod( $param['period'] ) ];
1093
			} elseif ( isset( $param['size'] ) ) {
1094
				return [ 'before', $this->getLanguage()->formatSize( $param['size'] ) ];
1095
			} elseif ( isset( $param['bitrate'] ) ) {
1096
				return [ 'before', $this->getLanguage()->formatBitrate( $param['bitrate'] ) ];
1097
			} elseif ( isset( $param['plaintext'] ) ) {
1098
				return [ 'after', $this->formatPlaintext( $param['plaintext'] ) ];