Code Duplication    Length = 3-3 lines in 2 locations

lib/FilesHooks.php 2 locations

@@ 629-631 (lines=3) @@
626
627
		// User performing the share
628
		$this->shareNotificationForSharer($actionSharer, $shareWith, $fileSource, $itemType);
629
		if ($this->currentUser->getUID() !== null) {
630
			$this->shareNotificationForOriginalOwners($this->currentUser->getUID(), $actionOwner, $shareWith, $fileSource, $itemType);
631
		}
632
633
		// New shared user
634
		$this->addNotificationsForUser(
@@ 671-673 (lines=3) @@
668
669
		// User performing the share
670
		$this->shareNotificationForSharer($actionSharer, $shareWith, $fileSource, $itemType);
671
		if ($this->currentUser->getUID() !== null) {
672
			$this->shareNotificationForOriginalOwners($this->currentUser->getUID(), $actionOwner, $shareWith, $fileSource, $itemType);
673
		}
674
675
		$offset = 0;
676
		$users = $group->searchUsers('', self::USER_BATCH_SIZE, $offset);