Code Duplication    Length = 9-11 lines in 2 locations

lib/ShareByCircleProvider.php 2 locations

@@ 213-221 (lines=9) @@
210
	 * @param IShare $share
211
	 * @param string $userId
212
	 */
213
	public function deleteFromSelf(IShare $share, $userId) {
214
		$childId = $this->getShareChildId($share, $userId);
215
216
		$qb = $this->getBaseUpdateSql();
217
		$qb->set('permissions', $qb->createNamedParameter(0));
218
		$this->limitToShare($qb, $childId);
219
220
		$qb->execute();
221
	}
222
223
224
	/**
@@ 233-243 (lines=11) @@
230
	 * @return IShare
231
	 *
232
	 */
233
	public function move(IShare $share, $userId) {
234
235
		$childId = $this->getShareChildId($share, $userId);
236
237
		$qb = $this->getBaseUpdateSql();
238
		$qb->set('file_target', $qb->createNamedParameter($share->getTarget()));
239
		$this->limitToShare($qb, $childId);
240
		$qb->execute();
241
242
		return $share;
243
	}
244
245
246
	/**