Code Duplication    Length = 5-5 lines in 2 locations

includes/Status.php 2 locations

@@ 224-228 (lines=5) @@
221
		}
222
		if ( count( $rawErrors ) == 1 ) {
223
			$s = $this->getErrorMessage( $rawErrors[0], $lang )->plain();
224
			if ( $shortContext ) {
225
				$s = wfMessage( $shortContext, $s )->inLanguage( $lang )->plain();
226
			} elseif ( $longContext ) {
227
				$s = wfMessage( $longContext, "* $s\n" )->inLanguage( $lang )->plain();
228
			}
229
		} else {
230
			$errors = $this->getErrorMessageArray( $rawErrors, $lang );
231
			foreach ( $errors as &$error ) {
@@ 235-239 (lines=5) @@
232
				$error = $error->plain();
233
			}
234
			$s = '* ' . implode( "\n* ", $errors ) . "\n";
235
			if ( $longContext ) {
236
				$s = wfMessage( $longContext, $s )->inLanguage( $lang )->plain();
237
			} elseif ( $shortContext ) {
238
				$s = wfMessage( $shortContext, "\n$s\n" )->inLanguage( $lang )->plain();
239
			}
240
		}
241
		return $s;
242
	}