Code Duplication    Length = 9-11 lines in 2 locations

lib/ShareByCircleProvider.php 2 locations

@@ 206-214 (lines=9) @@
203
	 * @param IShare $share
204
	 * @param string $userId
205
	 */
206
	public function deleteFromSelf(IShare $share, $userId) {
207
		$childId = $this->getShareChildId($share, $userId);
208
209
		$qb = $this->getBaseUpdateSql();
210
		$qb->set('permissions', $qb->createNamedParameter(0));
211
		$this->limitToShare($qb, $childId);
212
213
		$qb->execute();
214
	}
215
216
217
	/**
@@ 226-236 (lines=11) @@
223
	 * @return IShare
224
	 *
225
	 */
226
	public function move(IShare $share, $userId) {
227
228
		$childId = $this->getShareChildId($share, $userId);
229
230
		$qb = $this->getBaseUpdateSql();
231
		$qb->set('file_target', $qb->createNamedParameter($share->getTarget()));
232
		$this->limitToShare($qb, $childId);
233
		$qb->execute();
234
235
		return $share;
236
	}
237
238
239
	/**