Code Duplication    Length = 4-6 lines in 2 locations

apps/files_sharing/lib/External/Manager.php 2 locations

@@ 366-369 (lines=4) @@
363
			WHERE `mountpoint_hash` = ? AND `user` = ?');
364
		$result = $getShare->execute(array($hash, $this->uid));
365
366
		if ($result) {
367
			$share = $getShare->fetch();
368
			$this->sendFeedbackToRemote($share['remote'], $share['share_token'], $share['remote_id'], 'decline');
369
		}
370
		$getShare->closeCursor();
371
372
		$query = $this->connection->prepare('
@@ 422-427 (lines=6) @@
419
			WHERE `user` = ?');
420
		$result = $getShare->execute(array($uid));
421
422
		if ($result) {
423
			$shares = $getShare->fetchAll();
424
			foreach($shares as $share) {
425
				$this->sendFeedbackToRemote($share['remote'], $share['share_token'], $share['remote_id'], 'decline');
426
			}
427
		}
428
429
		$query = $this->connection->prepare('
430
			DELETE FROM `*PREFIX*share_external`