Code Duplication    Length = 4-4 lines in 3 locations

includes/filerepo/file/LocalFile.php 3 locations

@@ 2750-2753 (lines=4) @@
2747
		}
2748
2749
		$result = $this->file->repo->fileExistsBatch( $files );
2750
		if ( in_array( null, $result, true ) ) {
2751
			return Status::newFatal( 'backend-fail-internal',
2752
				$this->file->repo->getBackend()->getName() );
2753
		}
2754
2755
		foreach ( $triplets as $file ) {
2756
			if ( $result[$file[0]] ) {
@@ 3099-3102 (lines=4) @@
3096
		}
3097
3098
		$result = $this->file->repo->fileExistsBatch( $files );
3099
		if ( in_array( null, $result, true ) ) {
3100
			return Status::newFatal( 'backend-fail-internal',
3101
				$this->file->repo->getBackend()->getName() );
3102
		}
3103
3104
		$filteredTriplets = [];
3105
		foreach ( $triplets as $file ) {
@@ 2414-2417 (lines=4) @@
2411
		}
2412
2413
		$result = $this->file->repo->fileExistsBatch( $files );
2414
		if ( in_array( null, $result, true ) ) {
2415
			return Status::newFatal( 'backend-fail-internal',
2416
				$this->file->repo->getBackend()->getName() );
2417
		}
2418
2419
		foreach ( $batch as $batchItem ) {
2420
			if ( $result[$batchItem[0]] ) {