Code Duplication    Length = 3-3 lines in 2 locations

lib/FilesHooks.php 2 locations

@@ 599-601 (lines=3) @@
596
597
		// User performing the share
598
		$this->shareNotificationForSharer($actionSharer, $shareWith, $fileSource, $itemType);
599
		if ($this->currentUser->getUID() !== null) {
600
			$this->shareNotificationForOriginalOwners($this->currentUser->getUID(), $actionOwner, $shareWith, $fileSource, $itemType);
601
		}
602
603
		// New shared user
604
		$this->addNotificationsForUser(
@@ 641-643 (lines=3) @@
638
639
		// User performing the share
640
		$this->shareNotificationForSharer($actionSharer, $shareWith, $fileSource, $itemType);
641
		if ($this->currentUser->getUID() !== null) {
642
			$this->shareNotificationForOriginalOwners($this->currentUser->getUID(), $actionOwner, $shareWith, $fileSource, $itemType);
643
		}
644
645
		$offset = 0;
646
		$users = $group->searchUsers('', self::USER_BATCH_SIZE, $offset);