Code Duplication    Length = 3-3 lines in 3 locations

lib/FilesHooks.php 3 locations

@@ 800-802 (lines=3) @@
797
		$this->shareNotificationForSharer('unshared_user_self', $share->getSharedWith(), $share->getNodeId(), $share->getNodeType());
798
799
		// Owner
800
		if ($this->currentUser->getUID() !== null) {
801
			$this->shareNotificationForOriginalOwners($this->currentUser->getUID(), 'unshared_user_by', $share->getSharedWith(), $share->getNodeId(), $share->getNodeType());
802
		}
803
804
		// Recipient
805
		$this->addNotificationsForUser(
@@ 824-826 (lines=3) @@
821
		$this->shareNotificationForSharer('self_unshared', $share->getSharedWith(), $share->getNodeId(), $share->getNodeType());
822
823
		// Owner
824
		if ($this->currentUser->getUID() !== null) {
825
			$this->shareNotificationForOriginalOwners($this->currentUser->getUID(), 'self_unshared_by', $share->getSharedWith(), $share->getNodeId(), $share->getNodeType());
826
		}
827
	}
828
829
	/**
@@ 844-846 (lines=3) @@
841
842
		// User performing the share
843
		$this->shareNotificationForSharer('unshared_group_self', $share->getSharedWith(), $share->getNodeId(), $share->getNodeType());
844
		if ($this->currentUser->getUID() !== null) {
845
			$this->shareNotificationForOriginalOwners($this->currentUser->getUID(), 'unshared_group_by', $share->getSharedWith(), $share->getNodeId(), $share->getNodeType());
846
		}
847
848
		$offset = 0;
849
		$users = $group->searchUsers('', self::USER_BATCH_SIZE, $offset);