Code Duplication    Length = 5-6 lines in 2 locations

includes/upload/UploadBase.php 1 location

@@ 481-486 (lines=6) @@
478
479
		$error = true;
480
		Hooks::run( 'UploadVerifyFile', [ $this, $mime, &$error ] );
481
		if ( $error !== true ) {
482
			if ( !is_array( $error ) ) {
483
				$error = [ $error ];
484
			}
485
			return $error;
486
		}
487
488
		wfDebug( __METHOD__ . ": all clear; passing.\n" );
489

includes/specials/SpecialUpload.php 1 location

@@ 434-438 (lines=5) @@
431
						. "</li>\n";
432
				}
433
			} else {
434
				if ( $args === true ) {
435
					$args = [];
436
				} elseif ( !is_array( $args ) ) {
437
					$args = [ $args ];
438
				}
439
				$msg = "\t<li>" . $this->msg( $warning, $args )->parse() . "</li>\n";
440
			}
441
			$warningHtml .= $msg;