Code Duplication    Length = 9-11 lines in 2 locations

lib/ShareByCircleProvider.php 2 locations

@@ 218-226 (lines=9) @@
215
	 * @param IShare $share
216
	 * @param string $userId
217
	 */
218
	public function deleteFromSelf(IShare $share, $userId) {
219
		$childId = $this->getShareChildId($share, $userId);
220
221
		$qb = $this->getBaseUpdateSql();
222
		$qb->set('permissions', $qb->createNamedParameter(0));
223
		$this->limitToShare($qb, $childId);
224
225
		$qb->execute();
226
	}
227
228
229
	/**
@@ 238-248 (lines=11) @@
235
	 * @return IShare
236
	 *
237
	 */
238
	public function move(IShare $share, $userId) {
239
240
		$childId = $this->getShareChildId($share, $userId);
241
242
		$qb = $this->getBaseUpdateSql();
243
		$qb->set('file_target', $qb->createNamedParameter($share->getTarget()));
244
		$this->limitToShare($qb, $childId);
245
		$qb->execute();
246
247
		return $share;
248
	}
249
250
251
	/**