Code Duplication    Length = 7-9 lines in 2 locations

includes/filerepo/FileRepo.php 2 locations

@@ 981-987 (lines=7) @@
978
	 * @param string $dir Virtual URL (or storage path) of directory to clean
979
	 * @return Status
980
	 */
981
	public function quickCleanDir( $dir ) {
982
		$status = $this->newGood();
983
		$status->merge( $this->backend->clean(
984
			[ 'dir' => $this->resolveToStoragePath( $dir ) ] ) );
985
986
		return $status;
987
	}
988
989
	/**
990
	 * Import a batch of files from the local file system into the repo.
@@ 1335-1343 (lines=9) @@
1332
	 * @param string $dir Virtual URL (or storage path) of directory to clean
1333
	 * @return Status
1334
	 */
1335
	public function cleanDir( $dir ) {
1336
		$this->assertWritableRepo(); // fail out if read-only
1337
1338
		$status = $this->newGood();
1339
		$status->merge( $this->backend->clean(
1340
			[ 'dir' => $this->resolveToStoragePath( $dir ) ] ) );
1341
1342
		return $status;
1343
	}
1344
1345
	/**
1346
	 * Checks existence of a a file