Code Duplication    Length = 9-11 lines in 2 locations

lib/ShareByCircleProvider.php 2 locations

@@ 183-191 (lines=9) @@
180
	 * @param IShare $share
181
	 * @param string $userId
182
	 */
183
	public function deleteFromSelf(IShare $share, $userId) {
184
		$childId = $this->getShareChildId($share, $userId);
185
186
		$qb = $this->getBaseUpdateSql();
187
		$qb->set('permissions', $qb->createNamedParameter(0));
188
		$this->limitToShare($qb, $childId);
189
190
		$qb->execute();
191
	}
192
193
194
	/**
@@ 203-213 (lines=11) @@
200
	 * @return IShare
201
	 *
202
	 */
203
	public function move(IShare $share, $userId) {
204
205
		$childId = $this->getShareChildId($share, $userId);
206
207
		$qb = $this->getBaseUpdateSql();
208
		$qb->set('file_target', $qb->createNamedParameter($share->getTarget()));
209
		$this->limitToShare($qb, $childId);
210
		$qb->execute();
211
212
		return $share;
213
	}
214
215
216
	/**