Code Duplication    Length = 3-3 lines in 2 locations

lib/FilesHooks.php 2 locations

@@ 580-582 (lines=3) @@
577
	protected function shareWithUser($shareWith, $fileSource, $itemType, $fileTarget) {
578
		// User performing the share
579
		$this->shareNotificationForSharer('shared_user_self', $shareWith, $fileSource, $itemType);
580
		if ($this->currentUser->getUID() !== null) {
581
			$this->shareNotificationForOriginalOwners($this->currentUser->getUID(), 'reshared_user_by', $shareWith, $fileSource, $itemType);
582
		}
583
584
		// New shared user
585
		$this->addNotificationsForUser(
@@ 611-613 (lines=3) @@
608
609
		// User performing the share
610
		$this->shareNotificationForSharer('shared_group_self', $shareWith, $fileSource, $itemType);
611
		if ($this->currentUser->getUID() !== null) {
612
			$this->shareNotificationForOriginalOwners($this->currentUser->getUID(), 'reshared_group_by', $shareWith, $fileSource, $itemType);
613
		}
614
615
		$offset = 0;
616
		$users = $group->searchUsers('', self::USER_BATCH_SIZE, $offset);