Code Duplication    Length = 3-3 lines in 2 locations

lib/FilesHooks.php 2 locations

@@ 606-608 (lines=3) @@
603
604
		// User performing the share
605
		$this->shareNotificationForSharer($actionSharer, $shareWith, $fileSource, $itemType);
606
		if ($this->currentUser->getUID() !== null) {
607
			$this->shareNotificationForOriginalOwners($this->currentUser->getUID(), $actionOwner, $shareWith, $fileSource, $itemType);
608
		}
609
610
		// New shared user
611
		$this->addNotificationsForUser(
@@ 648-650 (lines=3) @@
645
646
		// User performing the share
647
		$this->shareNotificationForSharer($actionSharer, $shareWith, $fileSource, $itemType);
648
		if ($this->currentUser->getUID() !== null) {
649
			$this->shareNotificationForOriginalOwners($this->currentUser->getUID(), $actionOwner, $shareWith, $fileSource, $itemType);
650
		}
651
652
		$offset = 0;
653
		$users = $group->searchUsers('', self::USER_BATCH_SIZE, $offset);