Code Duplication    Length = 8-8 lines in 2 locations

apps/files_trashbin/command/expiretrash.php 1 location

@@ 101-108 (lines=8) @@
98
		}
99
	}
100
101
	function expireTrashForUser(IUser $user) {
102
		$uid = $user->getUID();
103
		if ($user->getLastLogin() === 0 || !$this->setupFS($uid)) {
104
			return;
105
		}
106
		$dirContent = Helper::getTrashFiles('/', $uid, 'mtime');
107
		Trashbin::deleteExpiredFiles($dirContent, $uid);
108
	}
109
110
	/**
111
	 * Act on behalf on trash item owner

apps/files_trashbin/lib/backgroundjob/expiretrash.php 1 location

@@ 78-85 (lines=8) @@
75
			return;
76
		}
77
78
		$this->callForAllUsers(function(IUser $user) {
79
			$uid = $user->getUID();
80
			if (!$this->setupFS($uid)) {
81
				return;
82
			}
83
			$dirContent = Helper::getTrashFiles('/', $uid, 'mtime');
84
			Trashbin::deleteExpiredFiles($dirContent, $uid);
85
		});
86
		
87
		\OC_Util::tearDownFS();
88
	}