Code Duplication    Length = 3-3 lines in 2 locations

lib/FilesHooks.php 2 locations

@@ 678-680 (lines=3) @@
675
		$this->shareNotificationForSharer('unshared_user_self', $share->getSharedWith(), $share->getNodeId(), $share->getNodeType());
676
677
		// Owner
678
		if ($this->currentUser->getUID() !== null) {
679
			$this->shareNotificationForOriginalOwners($this->currentUser->getUID(), 'unshared_user_by', $share->getSharedWith(), $share->getNodeId(), $share->getNodeType());
680
		}
681
682
		// Recipient
683
		$this->addNotificationsForUser(
@@ 706-708 (lines=3) @@
703
704
		// User performing the share
705
		$this->shareNotificationForSharer('unshared_group_self', $share->getSharedWith(), $share->getNodeId(), $share->getNodeType());
706
		if ($this->currentUser->getUID() !== null) {
707
			$this->shareNotificationForOriginalOwners($this->currentUser->getUID(), 'unshared_group_by', $share->getSharedWith(), $share->getNodeId(), $share->getNodeType());
708
		}
709
710
		$offset = 0;
711
		$users = $group->searchUsers('', self::USER_BATCH_SIZE, $offset);