Code Duplication    Length = 9-11 lines in 2 locations

lib/ShareByCircleProvider.php 2 locations

@@ 231-239 (lines=9) @@
228
	 * @param IShare $share
229
	 * @param string $userId
230
	 */
231
	public function deleteFromSelf(IShare $share, $userId) {
232
		$childId = $this->getShareChildId($share, $userId);
233
234
		$qb = $this->getBaseUpdateSql();
235
		$qb->set('permissions', $qb->createNamedParameter(0));
236
		$this->limitToShare($qb, $childId);
237
238
		$qb->execute();
239
	}
240
241
242
	/**
@@ 251-261 (lines=11) @@
248
	 * @return IShare
249
	 *
250
	 */
251
	public function move(IShare $share, $userId) {
252
253
		$childId = $this->getShareChildId($share, $userId);
254
255
		$qb = $this->getBaseUpdateSql();
256
		$qb->set('file_target', $qb->createNamedParameter($share->getTarget()));
257
		$this->limitToShare($qb, $childId);
258
		$qb->execute();
259
260
		return $share;
261
	}
262
263
264
	/**