Code Duplication    Length = 5-5 lines in 2 locations

includes/Status.php 2 locations

@@ 233-237 (lines=5) @@
230
		}
231
		if ( count( $rawErrors ) == 1 ) {
232
			$s = $this->getErrorMessage( $rawErrors[0], $lang )->plain();
233
			if ( $shortContext ) {
234
				$s = wfMessage( $shortContext, $s )->inLanguage( $lang )->plain();
235
			} elseif ( $longContext ) {
236
				$s = wfMessage( $longContext, "* $s\n" )->inLanguage( $lang )->plain();
237
			}
238
		} else {
239
			$errors = $this->getErrorMessageArray( $rawErrors, $lang );
240
			foreach ( $errors as &$error ) {
@@ 244-248 (lines=5) @@
241
				$error = $error->plain();
242
			}
243
			$s = '* ' . implode( "\n* ", $errors ) . "\n";
244
			if ( $longContext ) {
245
				$s = wfMessage( $longContext, $s )->inLanguage( $lang )->plain();
246
			} elseif ( $shortContext ) {
247
				$s = wfMessage( $shortContext, "\n$s\n" )->inLanguage( $lang )->plain();
248
			}
249
		}
250
		return $s;
251
	}