Code Duplication    Length = 3-3 lines in 2 locations

lib/FilesHooks.php 2 locations

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