Code Duplication    Length = 3-3 lines in 2 locations

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

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