Code Duplication    Length = 5-5 lines in 2 locations

lib/private/Share/Helper.php 2 locations

@@ 101-105 (lines=5) @@
98
			unset($ids[0]);
99
		}
100
101
		if (!empty($changeParent)) {
102
			$idList = "'".\implode("','", $changeParent)."'";
103
			$query = \OC_DB::prepare('UPDATE `*PREFIX*share` SET `parent` = ? WHERE `id` IN ('.$idList.')');
104
			$query->execute([$newParent]);
105
		}
106
107
		if (!empty($ids)) {
108
			$idList = "'".\implode("','", $ids)."'";
@@ 107-111 (lines=5) @@
104
			$query->execute([$newParent]);
105
		}
106
107
		if (!empty($ids)) {
108
			$idList = "'".\implode("','", $ids)."'";
109
			$query = \OC_DB::prepare('DELETE FROM `*PREFIX*share` WHERE `id` IN ('.$idList.')');
110
			$query->execute();
111
		}
112
113
		return $deletedItems;
114
	}