Code Duplication    Length = 3-3 lines in 2 locations

lib/FilesHooks.php 2 locations

@@ 688-690 (lines=3) @@
685
	protected function shareWithUser($shareWith, $fileSource, $itemType, $fileTarget) {
686
		// User performing the share
687
		$this->shareNotificationForSharer('shared_user_self', $shareWith, $fileSource, $itemType);
688
		if ($this->currentUser->getUID() !== null) {
689
			$this->shareNotificationForOriginalOwners($this->currentUser->getUID(), 'reshared_user_by', $shareWith, $fileSource, $itemType);
690
		}
691
692
		// New shared user
693
		$this->addNotificationsForUser(
@@ 719-721 (lines=3) @@
716
717
		// User performing the share
718
		$this->shareNotificationForSharer('shared_group_self', $shareWith, $fileSource, $itemType);
719
		if ($this->currentUser->getUID() !== null) {
720
			$this->shareNotificationForOriginalOwners($this->currentUser->getUID(), 'reshared_group_by', $shareWith, $fileSource, $itemType);
721
		}
722
723
		$offset = 0;
724
		$users = $group->searchUsers('', self::USER_BATCH_SIZE, $offset);