Code Duplication    Length = 3-3 lines in 2 locations

lib/FilesHooks.php 2 locations

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