Code Duplication    Length = 3-3 lines in 2 locations

lib/FilesHooks.php 2 locations

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