Code Duplication    Length = 3-5 lines in 2 locations

includes/Message.php 2 locations

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