Code Duplication    Length = 7-8 lines in 2 locations

lib/private/Files/Cache/Wrapper/CacheWrapper.php 1 location

@@ 269-275 (lines=7) @@
266
	 * @param array $entry (optional) meta data of the folder
267
	 * @return int
268
	 */
269
	public function calculateFolderSize($path, $entry = null) {
270
		if ($this->getCache() instanceof Cache) {
271
			return $this->getCache()->calculateFolderSize($path, $entry);
272
		} else {
273
			return 0;
274
		}
275
	}
276
277
	/**
278
	 * get all file ids on the files on the storage

lib/private/Files/Cache/Wrapper/CacheJail.php 1 location

@@ 268-275 (lines=8) @@
265
	 * @param array $entry (optional) meta data of the folder
266
	 * @return int
267
	 */
268
	public function calculateFolderSize($path, $entry = null) {
269
		if ($this->getCache() instanceof Cache) {
270
			return $this->getCache()->calculateFolderSize($this->getSourcePath($path), $entry);
271
		} else {
272
			return 0;
273
		}
274
275
	}
276
277
	/**
278
	 * get all file ids on the files on the storage