Code Duplication    Length = 3-3 lines in 2 locations

lib/FilesHooks.php 2 locations

@@ 699-701 (lines=3) @@
696
	protected function shareWithUser($shareWith, $fileSource, $itemType, $fileTarget) {
697
		// User performing the share
698
		$this->shareNotificationForSharer('shared_user_self', $shareWith, $fileSource, $itemType);
699
		if ($this->currentUser->getUID() !== null) {
700
			$this->shareNotificationForOriginalOwners($this->currentUser->getUID(), 'reshared_user_by', $shareWith, $fileSource, $itemType);
701
		}
702
703
		// New shared user
704
		$this->addNotificationsForUser(
@@ 730-732 (lines=3) @@
727
728
		// User performing the share
729
		$this->shareNotificationForSharer('shared_group_self', $shareWith, $fileSource, $itemType);
730
		if ($this->currentUser->getUID() !== null) {
731
			$this->shareNotificationForOriginalOwners($this->currentUser->getUID(), 'reshared_group_by', $shareWith, $fileSource, $itemType);
732
		}
733
734
		$offset = 0;
735
		$users = $group->searchUsers('', self::USER_BATCH_SIZE, $offset);