Code Duplication    Length = 3-3 lines in 2 locations

lib/private/files/cache/scanner.php 2 locations

@@ 260-262 (lines=3) @@
257
	 * @return array an array of the meta data of the scanned file or folder
258
	 */
259
	public function scan($path, $recursive = self::SCAN_RECURSIVE, $reuse = -1, $lock = true) {
260
		if ($reuse === -1) {
261
			$reuse = ($recursive === self::SCAN_SHALLOW) ? self::REUSE_ETAG | self::REUSE_SIZE : self::REUSE_ETAG;
262
		}
263
		if ($lock) {
264
			$this->lockingProvider->acquireLock('scanner::' . $this->storageId . '::' . $path, ILockingProvider::LOCK_EXCLUSIVE);
265
			$this->storage->acquireLock($path, ILockingProvider::LOCK_SHARED, $this->lockingProvider);
@@ 325-327 (lines=3) @@
322
	 * @return int the size of the scanned folder or -1 if the size is unknown at this stage
323
	 */
324
	protected function scanChildren($path, $recursive = self::SCAN_RECURSIVE, $reuse = -1, $folderData = null, $lock = true) {
325
		if ($reuse === -1) {
326
			$reuse = ($recursive === self::SCAN_SHALLOW) ? self::REUSE_ETAG | self::REUSE_SIZE : self::REUSE_ETAG;
327
		}
328
		$this->emit('\OC\Files\Cache\Scanner', 'scanFolder', array($path, $this->storageId));
329
		$size = 0;
330
		$childQueue = array();