Code Duplication    Length = 9-11 lines in 2 locations

lib/ShareByCircleProvider.php 2 locations

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