Code Duplication    Length = 3-3 lines in 2 locations

lib/FilesHooks.php 2 locations

@@ 593-595 (lines=3) @@
590
591
		// User performing the share
592
		$this->shareNotificationForSharer($actionSharer, $shareWith, $fileSource, $itemType);
593
		if ($this->currentUser->getUID() !== null) {
594
			$this->shareNotificationForOriginalOwners($this->currentUser->getUID(), $actionOwner, $shareWith, $fileSource, $itemType);
595
		}
596
597
		// New shared user
598
		$this->addNotificationsForUser(
@@ 635-637 (lines=3) @@
632
633
		// User performing the share
634
		$this->shareNotificationForSharer($actionSharer, $shareWith, $fileSource, $itemType);
635
		if ($this->currentUser->getUID() !== null) {
636
			$this->shareNotificationForOriginalOwners($this->currentUser->getUID(), $actionOwner, $shareWith, $fileSource, $itemType);
637
		}
638
639
		$offset = 0;
640
		$users = $group->searchUsers('', self::USER_BATCH_SIZE, $offset);