Code Duplication    Length = 10-10 lines in 2 locations

includes/Status.php 2 locations

@@ 212-221 (lines=10) @@
209
		$lang = $this->languageFromParam( $lang );
210
211
		$rawErrors = $this->sv->getErrors();
212
		if ( count( $rawErrors ) == 0 ) {
213
			if ( $this->sv->isOK() ) {
214
				$this->sv->fatal( 'internalerror_info',
215
					__METHOD__ . " called for a good result, this is incorrect\n" );
216
			} else {
217
				$this->sv->fatal( 'internalerror_info',
218
					__METHOD__ . ": Invalid result object: no error text but not OK\n" );
219
			}
220
			$rawErrors = $this->sv->getErrors(); // just added a fatal
221
		}
222
		if ( count( $rawErrors ) == 1 ) {
223
			$s = $this->getErrorMessage( $rawErrors[0], $lang )->plain();
224
			if ( $shortContext ) {
@@ 258-267 (lines=10) @@
255
		$lang = $this->languageFromParam( $lang );
256
257
		$rawErrors = $this->sv->getErrors();
258
		if ( count( $rawErrors ) == 0 ) {
259
			if ( $this->sv->isOK() ) {
260
				$this->sv->fatal( 'internalerror_info',
261
					__METHOD__ . " called for a good result, this is incorrect\n" );
262
			} else {
263
				$this->sv->fatal( 'internalerror_info',
264
					__METHOD__ . ": Invalid result object: no error text but not OK\n" );
265
			}
266
			$rawErrors = $this->sv->getErrors(); // just added a fatal
267
		}
268
		if ( count( $rawErrors ) == 1 ) {
269
			$s = $this->getErrorMessage( $rawErrors[0], $lang );
270
			if ( $shortContext ) {