Code Duplication    Length = 3-3 lines in 2 locations

lib/FilesHooks.php 2 locations

@@ 798-800 (lines=3) @@
795
		$this->shareNotificationForSharer('unshared_user_self', $share->getSharedWith(), $share->getNodeId(), $share->getNodeType());
796
797
		// Owner
798
		if ($this->currentUser->getUID() !== null) {
799
			$this->shareNotificationForOriginalOwners($this->currentUser->getUID(), 'unshared_user_by', $share->getSharedWith(), $share->getNodeId(), $share->getNodeType());
800
		}
801
802
		// Recipient
803
		$this->addNotificationsForUser(
@@ 826-828 (lines=3) @@
823
824
		// User performing the share
825
		$this->shareNotificationForSharer('unshared_group_self', $share->getSharedWith(), $share->getNodeId(), $share->getNodeType());
826
		if ($this->currentUser->getUID() !== null) {
827
			$this->shareNotificationForOriginalOwners($this->currentUser->getUID(), 'unshared_group_by', $share->getSharedWith(), $share->getNodeId(), $share->getNodeType());
828
		}
829
830
		$offset = 0;
831
		$users = $group->searchUsers('', self::USER_BATCH_SIZE, $offset);