Code Duplication    Length = 3-3 lines in 2 locations

lib/private/Files/Cache/Scanner.php 2 locations

@@ 326-328 (lines=3) @@
323
	 * @return array an array of the meta data of the scanned file or folder
324
	 */
325
	public function scan($path, $recursive = self::SCAN_RECURSIVE, $reuse = -1, $lock = true) {
326
		if ($reuse === -1) {
327
			$reuse = ($recursive === self::SCAN_SHALLOW) ? self::REUSE_ETAG | self::REUSE_SIZE : self::REUSE_ETAG;
328
		}
329
		if ($lock) {
330
			if ($this->storage->instanceOfStorage('\OCP\Files\Storage\ILockingStorage')) {
331
				$this->storage->acquireLock('scanner::' . $path, ILockingProvider::LOCK_EXCLUSIVE, $this->lockingProvider);
@@ 398-400 (lines=3) @@
395
	 * @return int the size of the scanned folder or -1 if the size is unknown at this stage
396
	 */
397
	protected function scanChildren($path, $recursive = self::SCAN_RECURSIVE, $reuse = -1, $folderId = null, $lock = true) {
398
		if ($reuse === -1) {
399
			$reuse = ($recursive === self::SCAN_SHALLOW) ? self::REUSE_ETAG | self::REUSE_SIZE : self::REUSE_ETAG;
400
		}
401
		$this->emit('\OC\Files\Cache\Scanner', 'scanFolder', array($path, $this->storageId));
402
		$size = 0;
403
		if (!is_null($folderId)) {