Code Duplication    Length = 3-5 lines in 2 locations

includes/Message.php 2 locations

@@ 1101-1105 (lines=5) @@
1098
		if ( is_array( $param ) ) {
1099
			if ( isset( $param['raw'] ) ) {
1100
				return [ 'after', $param['raw'] ];
1101
			} elseif ( isset( $param['num'] ) ) {
1102
				// Replace number params always in before step for now.
1103
				// No support for combined raw and num params
1104
				return [ 'before', $this->getLanguage()->formatNum( $param['num'] ) ];
1105
			} elseif ( isset( $param['duration'] ) ) {
1106
				return [ 'before', $this->getLanguage()->formatDuration( $param['duration'] ) ];
1107
			} elseif ( isset( $param['expiry'] ) ) {
1108
				return [ 'before', $this->getLanguage()->formatExpiry( $param['expiry'] ) ];
@@ 1111-1113 (lines=3) @@
1108
				return [ 'before', $this->getLanguage()->formatExpiry( $param['expiry'] ) ];
1109
			} elseif ( isset( $param['period'] ) ) {
1110
				return [ 'before', $this->getLanguage()->formatTimePeriod( $param['period'] ) ];
1111
			} elseif ( isset( $param['size'] ) ) {
1112
				return [ 'before', $this->getLanguage()->formatSize( $param['size'] ) ];
1113
			} elseif ( isset( $param['bitrate'] ) ) {
1114
				return [ 'before', $this->getLanguage()->formatBitrate( $param['bitrate'] ) ];
1115
			} elseif ( isset( $param['plaintext'] ) ) {
1116
				return [ 'after', $this->formatPlaintext( $param['plaintext'] ) ];