Code Duplication    Length = 9-11 lines in 2 locations

lib/ShareByCircleProvider.php 2 locations

@@ 236-244 (lines=9) @@
233
	 * @param IShare $share
234
	 * @param string $userId
235
	 */
236
	public function deleteFromSelf(IShare $share, $userId) {
237
		$childId = $this->getShareChildId($share, $userId);
238
239
		$qb = $this->getBaseUpdateSql();
240
		$qb->set('permissions', $qb->createNamedParameter(0));
241
		$this->limitToShare($qb, $childId);
242
243
		$qb->execute();
244
	}
245
246
247
	/**
@@ 256-266 (lines=11) @@
253
	 * @return IShare
254
	 *
255
	 */
256
	public function move(IShare $share, $userId) {
257
258
		$childId = $this->getShareChildId($share, $userId);
259
260
		$qb = $this->getBaseUpdateSql();
261
		$qb->set('file_target', $qb->createNamedParameter($share->getTarget()));
262
		$this->limitToShare($qb, $childId);
263
		$qb->execute();
264
265
		return $share;
266
	}
267
268
269
	/**